摘要: 1.0 定义:有权访问另一个函数作用域内变量的函数都是闭包。 2.0 Js语言特殊之处在于函数内部可以直接读取全局变量 <script type="text/javascript"> var n=100; function parent(){ alert(n); } parent();//100< 阅读全文
posted @ 2018-01-30 16:11 lieaiwen 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 同样是B类的实例化,第二种方式可以向构造函数传递参数;; 看看第二个例子 2.0 <script> var x= 1; function f(){ var x=2; alert(x); alert(this.x); x=3; } var a= f(); var b=new f(); </script 阅读全文
posted @ 2018-01-29 14:42 lieaiwen 阅读(261) 评论(0) 推荐(0) 编辑
摘要: <body> <div id="we">4</div>s <script> window.onload = function(){ var we = document.getElementById("we") console.log(we.innerHTML); var int=setInterva 阅读全文
posted @ 2018-01-26 16:10 lieaiwen 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 我以前看的方法很多,我就不一一说了,实用,自己记一个用起来就行啦! <style> .we{ width:0; height:0; border-left:100px solid red; border-right:100px solid red; border-top:100px solid re 阅读全文
posted @ 2018-01-25 14:42 lieaiwen 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: 我最近会经常用你的,因为我要用你做笔记啦! 阅读全文
posted @ 2018-01-15 16:20 lieaiwen 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 1.0 <Script language="javascript"> function GetRequest() { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf( 阅读全文
posted @ 2017-12-12 16:04 lieaiwen 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1.0 获取url参数,,在html页面里面 console.log(this.$route.query.id) 2.0 这个网址的方法你可以看看 http://blog.csdn.net/dihuiqin/article/details/52161259 阅读全文
posted @ 2017-11-27 21:44 lieaiwen 阅读(85) 评论(0) 推荐(0) 编辑
摘要: white-space: nowrap; 阅读全文
posted @ 2017-09-15 17:34 lieaiwen 阅读(123) 评论(0) 推荐(0) 编辑
摘要: <scroll-view scroll-x class="scroll-header"> <view id="green" class="scroll-view-item bc_green"></view> <view id="red" class="scroll-view-item bc_red" 阅读全文
posted @ 2017-09-08 09:51 lieaiwen 阅读(20664) 评论(0) 推荐(2) 编辑
摘要: 1.0 git status 查看修改的东西 2.0 git add -A 增加所有的修改的东西 3.0 git commit -m "说明" 对本次分支的说明 4.0 git branch -a 查看所有分支 5.0 git push origin zhenglei 推送到想要推送的分支 6.0 阅读全文
posted @ 2017-08-30 14:02 lieaiwen 阅读(1070) 评论(0) 推荐(0) 编辑