09 2017 档案

摘要:倒计时 还剩 阅读全文
posted @ 2017-09-30 18:02 abcByme 阅读(865) 评论(0) 推荐(0) 编辑
摘要:{ let arr = Array.of(3, 4, 7, 9, 11); console.log('arr', arr); //[3,4,7,9,11] let empty = Array.of(); console.log(empty); //[] } //ES6为Array增加了from函数用来将其他对象转换成数组。 //当然,其他对象也是有要求,也不是所... 阅读全文
posted @ 2017-09-30 17:04 abcByme 阅读(795) 评论(0) 推荐(0) 编辑
摘要:{ //二进制数值都是0b开头,八进制0o console.log(0b111110111) //503 console.log(0o767); //503 } { console.log('15',Number.isFinite(15)); //true console.log('NaN',Number.isFinite(NaN)); //false N... 阅读全文
posted @ 2017-09-30 15:22 abcByme 阅读(301) 评论(0) 推荐(0) 编辑
摘要:{ console.log('a',`\u0061`); //a,a console.log('s',`\u20BB7`); //s ₻7 console.log('s',`\u{20BB7}`) //s 𠮷 }//charCodeAt 和 codePointAt{ let s = 'a'; le 阅读全文
posted @ 2017-09-29 17:38 abcByme 阅读(317) 评论(0) 推荐(0) 编辑
摘要:https://www.mobiscroll.com/ https://github.com/xfhxbb/LCalendar 温馨提示:强烈建议使用:https://github.com/zhoushengmufc/iosselect 不建议使用 demo下载链接:http://download. 阅读全文
posted @ 2017-09-29 16:00 abcByme 阅读(949) 评论(0) 推荐(0) 编辑
摘要:仿微信抢红包 javascript实现仿微信抢红包 红包个数:个 总 金 额:元 发红包 参考《微信红包的架构设计简介》文章 ... 阅读全文
posted @ 2017-09-29 14:18 abcByme 阅读(2265) 评论(0) 推荐(1) 编辑
摘要://默认登记时间为今天 var date = new Date; var year = date.getFullYear(); var month = date.getMonth() + 1; month = month < 10 ? "0" + month : month; var day = d 阅读全文
posted @ 2017-09-28 19:18 abcByme 阅读(368) 评论(0) 推荐(0) 编辑
摘要:{ //es5中 let regex = new RegExp('xyz', 'i'); let regex2 = new RegExp(/xyz/i); console.log(regex.test('xyz123'), regex2.test('xyz123')); // true,true / 阅读全文
posted @ 2017-09-28 19:03 abcByme 阅读(301) 评论(0) 推荐(0) 编辑
摘要:1.结构赋值 { let a,b,c; [a,b] = [1,2]; console.log(a,b); //1,2} { let a,b,rest; [a,b,...rest] = [1,2,3,4,5,6]; console.log(a,b,rest); //3,[4,5,6]} 2.对象结构赋 阅读全文
posted @ 2017-09-28 17:41 abcByme 阅读(647) 评论(0) 推荐(0) 编辑
摘要:一、let 和const 1.let 只在自己声明的块作用域中有效; function test(){ let a = 'a'; var b = 'b'; for(let i =1;i<3;i++){ console.log(i); //正常 1.2 } console.log(a,b); //正常 阅读全文
posted @ 2017-09-28 16:33 abcByme 阅读(415) 评论(0) 推荐(0) 编辑
摘要:转自 http://blog.csdn.net/qq_29676303/article/details/76098196注意 事项 1.es6下创建三个目录 app server tasks 2.在 app下 创建 css js views 3.进入app/js目录 创建index.js(js入口文 阅读全文
posted @ 2017-09-28 14:44 abcByme 阅读(721) 评论(0) 推荐(0) 编辑
摘要:1.npm install -g express-generator 2.进入服务目录(自己定义的文件夹,或者express Myapp && cd Myapp 新建Myapp文件夹并进入) 3.npm install 4.express -e 5.Y 继续 6.npm install instal 阅读全文
posted @ 2017-09-27 14:52 abcByme 阅读(1767) 评论(0) 推荐(0) 编辑
摘要:注: origin为远程仓库名称 master为远程分支名称 //第一次提交所有代码 1.git clone 项目url 2.复制.git 和文件到根目录 3.git add . 4.git commit -m "XXXX(提交说明)" 5.git push -u origin master:xxx 阅读全文
posted @ 2017-09-27 14:47 abcByme 阅读(2108) 评论(3) 推荐(0) 编辑
摘要:(function() { 'use strict' angular.module('myApp') .controller('catesDetailCtr', ['$scope', '$state', '$rootScope', 'MyServer', 'ipCookie', function($ 阅读全文
posted @ 2017-09-25 09:46 abcByme 阅读(251) 评论(0) 推荐(0) 编辑
摘要:// 对象转数组并倒序 // function objToArray(array) { // var arr = []; // for (var a in array) { // var item = { // key: a, // value: array[a] // } // arr.push( 阅读全文
posted @ 2017-09-22 18:43 abcByme 阅读(1226) 评论(1) 推荐(0) 编辑
摘要:{{(value.time+'000' | date:'yyyy-MM-dd HH:mm:ss') : '/'}} .filter('getWeek', function() { return function(input) { var date = new Date(input * 1000); var week = date.getDay(); switch (week) { case 0... 阅读全文
posted @ 2017-09-19 20:54 abcByme 阅读(698) 评论(0) 推荐(0) 编辑
摘要:测试副本 aId cId developer ... 阅读全文
posted @ 2017-09-19 20:51 abcByme 阅读(425) 评论(0) 推荐(0) 编辑
摘要:$rootScope.getTokenOther = function(formdata) { // console.log("getTokenOther formdata", formdata); MyServer.otherlogin(formdata, function(data) { con 阅读全文
posted @ 2017-09-19 20:48 abcByme 阅读(809) 评论(0) 推荐(0) 编辑
摘要:function getobj(objs, key, value) { for (var i in objs) { var obj = $(objs[i]); if (obj.attr(key) == value) { return obj[0]; } } return null; }; //调用 getobj(data, 'cId... 阅读全文
posted @ 2017-09-19 20:46 abcByme 阅读(359) 评论(0) 推荐(0) 编辑
摘要:function toQueryString(obj) { var ret = []; for (var key in obj) { key = encodeURIComponent(key); var values = obj[key]; if (values && values.construc 阅读全文
posted @ 2017-09-19 20:44 abcByme 阅读(689) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示