jQuery綁定click事件,特殊效果,鏈式調用

綁定click事件 給元素綁定click事件,能夠用以下方法:javascript $('#btn1').click(function(){ // 內部的this指的是原生對象 // 使用jquery對象用 $(this) }) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</tit
相關文章
相關標籤/搜索