随笔分类 -  javaScript

摘要:数组操作首先要注意且牢记splice、sort、reverse这3个常用方法是对数组自身的操作,会改变数组自身。其他会改变自身的方法是增删push/pop/unshift/shift、填充fill和复制填充copyWithin。 先说数组常用方法,后说使用误区。 数组常用方法 先献上数组方法懒人图一 阅读全文
posted @ 2020-09-13 18:07 剑圣_LLX 阅读(101) 评论(0) 推荐(0)
摘要:wxShare.js 调用: 完整代码解释 请移步 https://github.com/lianglixiong/wechat.js 阅读全文
posted @ 2019-06-11 17:23 剑圣_LLX 阅读(247) 评论(0) 推荐(0)
摘要:监听 触摸 触摸前后 GitHub地址:https://github.com/lianglixiong 阅读全文
posted @ 2018-06-22 11:01 剑圣_LLX 阅读(416) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-22 10:44 剑圣_LLX 阅读(151) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-22 10:43 剑圣_LLX 阅读(309) 评论(0) 推荐(0)
摘要:输入 session存储数据 session读取数据 session清除数据 local存储数据 local读取数据 local清除数据 阅读全文
posted @ 2018-06-22 10:41 剑圣_LLX 阅读(162) 评论(0) 推荐(0)
摘要:1.纯粹的函数调用 2.作为对象方法的调用 3.作为构造函数调用 4.apply调用 apply调用拓展 this在nodejs中的指向 函数调用1 函数调用2 函数调用3 对象方法的调用1 构造函数调用1 构造函数调用2 概念 GitHub地址:https://github.com/liangli 阅读全文
posted @ 2018-06-22 10:38 剑圣_LLX 阅读(181) 评论(0) 推荐(0)
摘要:Javascript深浅拷贝 数组中存放函数 数组对象的深拷贝 阅读全文
posted @ 2018-06-22 10:28 剑圣_LLX 阅读(149) 评论(0) 推荐(0)
摘要:jQuery的JSONP的方法 原生jsonp方法 阅读全文
posted @ 2018-06-22 10:22 剑圣_LLX 阅读(105) 评论(0) 推荐(0)
摘要:申请和调用的区别 继承的优化 调用实现多重继承 调用实现继承 github地址:https://github.com/lianglixiong/javascript-note/tree/master 阅读全文
posted @ 2018-06-22 10:13 剑圣_LLX 阅读(149) 评论(0) 推荐(0)
摘要:闭包的概念 闭包的运行机制 闭包的运行机制2 例子 阅读全文
posted @ 2018-06-22 09:59 剑圣_LLX 阅读(116) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript"> // 初阶部分 // 字符串可以保存为变量, 函数说他也可以 var 阅读全文
posted @ 2018-06-22 09:51 剑圣_LLX 阅读(123) 评论(0) 推荐(0)