目录
事件监听
$(a).b(c,d);
a : the target element being listend to
b : on
c : the type of event being listened for
d : a function with the stoff we want to do
$('#myBtn').on('click',function(){
$('div').hide();
})
简易方法
$('#myBtn').click(function(){
//.....
})
输入框实时监听
$("#searchInput").on("input propertychange", function () {
}