摘要: (一):this 1:在javascript中this指的就是函数运行时所在的上下文(即函数的运行环境); var name = '张三'; var obj = { name: '法外狂徒', action: function () { console.log(this.name + '的行为!') 阅读全文
posted @ 2021-07-13 23:27 be_win 阅读(83) 评论(0) 推荐(0)
摘要: 一:冒泡排序 let arr = [25,36,21,66,77,33,17,120,999,1,100,356]; function babelSort(arr) { let temNum = 0; for(let i=0;i<arr.length-1;i++){ for(let j=0;j<ar 阅读全文
posted @ 2020-03-30 10:41 be_win 阅读(371) 评论(0) 推荐(0)
摘要: 一:基础环境配置 (1)首先要下载node( https://nodejs.org/zh-cn/download/ ); (2)打开终端输入: node --version npm --version (3)若能显示出版本号就说明已经安装ok; (4)安装脚手架(vue-cli) npm insta 阅读全文
posted @ 2019-12-10 11:41 be_win 阅读(18255) 评论(0) 推荐(0)
摘要: 一:数组的声明 (1) 构造函数声明数组: let arr = new Array(); //构造函数声明数组 arr[0] = '侯宝文'; console.log(arr); // ["侯宝文"] console.log(arr.__proto__); //构造函数的原型对象(可以看到内置的AP 阅读全文
posted @ 2019-12-09 15:24 be_win 阅读(250) 评论(0) 推荐(0)
摘要: 一:git下载安装 (1): 下载地址:“http://git-scm.com/downloads"。 (2): 配置名字和邮箱。 git config --global user.name "name"。 git config --global user.email "email"。 二:将新建项 阅读全文
posted @ 2019-12-04 11:36 be_win 阅读(91) 评论(0) 推荐(0)