随笔分类 - javascript+jquery
摘要:1.js运行三部曲语法分析 --> 预编译 -->解释执行 1.1预编译 ① 预编译前奏 —— 全局和局部的概念 console.log(a); function a(a){ var a=234; function a(){ } } var a=123;//全局和局部的概念1.任何变量,如果变量未经
阅读全文
摘要:<script> //第一种:扩展Jquery原型对象的方法 (function($) { $.fn.logText = function() { console.log(this.text()); } })(jQuery); $(function() { //自定义的原型方法,也就是jquery插
阅读全文
摘要:jsp: <td> <input type="password" name="psw" id="psw" class="psw" placeholder="请输入您的原密码"/> <i for="psw" id="a" class="passwordIcon"></i> </td> js: $(".
阅读全文
摘要:全选: /*全选按钮*/function selectAll(e){//根据全选按钮的text值为条件判断 var btC=$(e).text(); var $check=$(".col-lg-12"); var inp=$(".col-lg-12").find("label input[type=
阅读全文
摘要:链接:https://juejin.im/entry/57a1b817c4c971005af56343
阅读全文
摘要:<script> var r, arr = ['apple', 'strawberry', 'banana', 'pear', 'apple', 'orange', 'orange', 'strawberry']; r=arr.filter(function(element,index,self){
阅读全文
摘要:高效的 jQuery 代码编写技巧总结 阅读 638收藏 512017-2-22 原文链接:http://gcdn.gcpowertools.com.cn/showtopic-28514-1-3.html?utm_source=gold.xitu.io&utm_medium=referral&utm
阅读全文

浙公网安备 33010602011771号