上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: 对象扩展运算符(…) 当编写一个方法时,我们允许它传入的参数是不确定的。这时候可以使用对象扩展运算符来作参数,看一个简单的列子: function xzdemo(...arg){ console.log(arg[0]); console.log(arg[1]); console.log(arg[2] 阅读全文
posted @ 2017-06-27 23:38 xuanPhoto 阅读(319) 评论(0) 推荐(0)
摘要: 排除与选入 调用选取的结果 html部分 div class="box"> <div class="divColor"> 1 </div> <div class="divColor"> 2 </div> <div class="divColor"> 3 </div> <div class="divC 阅读全文
posted @ 2017-06-26 17:43 xuanPhoto 阅读(165) 评论(0) 推荐(0)
摘要: 首先老规矩哈、全局包安装先 gulpfile.js gulp的配置文件 webpack.config.js webpack的配置文件 下面是package.json的依赖包列表 阅读全文
posted @ 2017-06-24 15:10 xuanPhoto 阅读(238) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-06-22 15:16 xuanPhoto 阅读(191) 评论(0) 推荐(0)
摘要: html打印结果子元素以及自身 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> </head> <style type="text/css"> .demo{width: 300px;height: 200px;border 阅读全文
posted @ 2017-06-21 14:10 xuanPhoto 阅读(172) 评论(0) 推荐(0)
摘要: css html javascript 阅读全文
posted @ 2017-06-20 13:24 xuanPhoto 阅读(275) 评论(0) 推荐(0)
摘要: 随机取数方法 Math.random() 表示0到1之间随机取一个数 0<x<1 小数 Math.random()*5 表示0<x<5 parseInt(Math.random()*5) 0 1 2 3 4 中随机取一个数 公式:表示0到n 的随机取数(整数) parseInt(Math.random()*(n+1)) 阅读全文
posted @ 2017-06-19 12:05 xuanPhoto 阅读(233) 评论(0) 推荐(0)
摘要: pwd 在 Linux 服务器上,你可以使用以下命令查看你当前所在的目录(即“当前位置”) ls -al 查看当前目录下的文件和文件夹 cd ~ 回到用户主目录 cd /xuanPhoto/posts_blogs 切换到某个路径 cd 文件夹名 进入某个文件夹 cd ../ 退出该级目录进入上一级 阅读全文
posted @ 2017-06-15 23:55 xuanPhoto 阅读(265) 评论(0) 推荐(0)
摘要: test function demo(){ return function test(a){ alert($(a).text()) } } demo() 阅读全文
posted @ 2017-06-15 11:36 xuanPhoto 阅读(183) 评论(0) 推荐(0)
摘要: npm install -g yarn 安装完成后,你可以测试下自己的版本 yarn --version 或 yarn -v 开始使用 单独安装包的方式add 不是install,后面不用加 --save-dev, install是安装所有依赖包 他会自动帮你生成package的json文件记录包安 阅读全文
posted @ 2017-06-06 21:53 xuanPhoto 阅读(249) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页