1. 页面js加载时机
$(function(){})

  2. 常见使用on事件代理

$("p").on("click",function(){
    alert("段落被点击了。");
  });

  3. ajax 请求

$.ajax(
    {
    url:"demo_test.txt",
    data:{},
    success:function(result){
        $("#div1").html(result);
    }
});

  

相关文章:

  • 2021-09-16
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2022-02-15
  • 2021-11-22
  • 2021-08-15
  • 2021-10-05
  • 2022-01-05
  • 2022-12-23
  • 2021-07-19
相关资源
相似解决方案