摘要: 原文链接:http://www.cnblogs.com/kongxy/p/4581223.html JS中的this对象详解 声明:文章转载自上面地址,版权归阿孔所有,这里仅供本人学习笔记使用 this关键字虽然会根据环境变化,但是它始终代表的是调用当前函数的那个对象。这就引出了JS中函数调用的问题 阅读全文
posted @ 2017-03-21 13:44 Marydon 阅读(268) 评论(0) 推荐(0) 编辑
摘要: CreateTime--2016年12月8日15:28:40Author:Marydonjs&jquery规避报错信息的两种方式 <script type="text/javascript"> $(function() { /*方法一:捕获异常*/ try { $('div[id=TreeConta 阅读全文
posted @ 2017-03-21 09:52 Marydon 阅读(429) 评论(0) 推荐(0) 编辑
摘要: CreateTime--2016年10月31日14:22:25Author:Marydonif-else的多种用法: //方式一 function test1 (t) { var bl = t || "测试1"; console.log(bl); } test1(); //方式二 function 阅读全文
posted @ 2017-03-21 09:43 Marydon 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 场景: <script type="text/javascript"> var name = "lisi"; function test1 () { var name = "zhang"; function test2 () { console.log(this.name); } alert(nam 阅读全文
posted @ 2017-03-21 09:16 Marydon 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: UpdateTime--2017年6月5日17:00:37 1.语法 <a href="url">跳转</a> 2.跳转路径携带参数 方式一:EL表达式 <a style="color: #199ED8;font-weight: bolder;margin-right: 15px;" href="$ 阅读全文
posted @ 2017-03-21 08:58 Marydon 阅读(1865) 评论(0) 推荐(0) 编辑