$(function () {
$(".items").on('click', 'a', function () {
//nothing gets executed here, alert wont come
alert("doesn't work")
}, function () {
//this function gets executed
alert("works")
});
});
最初の関数が機能しないのはなぜ.on()
ですか。このように機能するはずがないのですか? 私の代替手段は何ですか?