/*定义 .search 搜索*/
$.fn.UiSearch=function(){
    var ui=$(this);
    //任何地方都可以使用断点调试:debugger;
    //调试时,可以在控制台输入ui / this / $('.ui-search').find('a')
    // $('.ui-search').find('a').eq(3) 等等进行调试
     console.log($('.ui-search').find('a').eq(3));
    debugger;
}

/*页面的脚本逻辑*/
$(function(){
    //一定是DOM的某个对象调用了该方法
    $('.ui-search').UiSearch()
})

 

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

错误调试以及debug的使用

 

相关文章:

  • 2021-10-02
  • 2022-12-23
  • 2021-04-18
  • 2021-09-15
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-02-13
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2021-11-16
相关资源
相似解决方案