上一页 1 ··· 6 7 8 9 10
摘要: Document 获取验证码 阅读全文
posted @ 2017-10-09 09:47 abcByme 阅读(882) 评论(0) 推荐(1)
摘要: 倒计时 还剩 阅读全文
posted @ 2017-09-30 18:02 abcByme 阅读(869) 评论(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 阅读(803) 评论(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 阅读(309) 评论(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 阅读(325) 评论(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 阅读(967) 评论(0) 推荐(0)
摘要: 仿微信抢红包 javascript实现仿微信抢红包 红包个数:个 总 金 额:元 发红包 参考《微信红包的架构设计简介》文章 ... 阅读全文
posted @ 2017-09-29 14:18 abcByme 阅读(2282) 评论(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 阅读(374) 评论(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 阅读(311) 评论(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 阅读(654) 评论(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 阅读(422) 评论(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 阅读(736) 评论(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 阅读(1782) 评论(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 阅读(2149) 评论(3) 推荐(0)
摘要: (function() { 'use strict' angular.module('myApp') .controller('catesDetailCtr', ['$scope', '$state', '$rootScope', 'MyServer', 'ipCookie', function($ 阅读全文
posted @ 2017-09-25 09:46 abcByme 阅读(256) 评论(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 阅读(1233) 评论(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 阅读(709) 评论(0) 推荐(0)
摘要: 测试副本 aId cId developer ... 阅读全文
posted @ 2017-09-19 20:51 abcByme 阅读(428) 评论(0) 推荐(0)
摘要: $rootScope.getTokenOther = function(formdata) { // console.log("getTokenOther formdata", formdata); MyServer.otherlogin(formdata, function(data) { con 阅读全文
posted @ 2017-09-19 20:48 abcByme 阅读(819) 评论(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 阅读(365) 评论(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 阅读(700) 评论(1) 推荐(0)
摘要: 第一种 .div{ position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%,-50%);} 第二种: .div{ justify-content: center; align-items: cent 阅读全文
posted @ 2016-08-25 17:05 abcByme 阅读(322) 评论(0) 推荐(0)
摘要: 一。取消浏览器对事件的默认行为(响应)(比如标签的跳转等)并停止事件的继续传播。 function stopEvent (evt) { var evt = evt || window.event; if (evt.preventDefault) { evt.preventDefault(); evt 阅读全文
posted @ 2016-08-03 11:09 abcByme 阅读(690) 评论(1) 推荐(0)
摘要: height、clientHeight、scrollHeight、offsetHeight区别 我们来实现test中的onclick事件 function justAtest() { var test= document.getElementById("test"); var test2=docum 阅读全文
posted @ 2016-05-31 13:04 abcByme 阅读(317) 评论(0) 推荐(0)
摘要: /* 用途:检查输入手机号码是否正确 输入: s:字符串 返回: 如果通过验证返回true,否则返回false */ function checkMobile(s) { var regu = /^[1][3][0-9]{9}$/; var re = new RegExp(regu); if (re. 阅读全文
posted @ 2016-04-30 21:41 abcByme 阅读(730) 评论(6) 推荐(0)
摘要: 1、原生的js,好比全真教的武功,一步步从基础开始(先练气再御剑),很长一段时间内和jquery有很大差距,掌握以后发现jquery只不过是另外一种武功,看一遍既会。且当学原生到一定程度之后,可以自创武功。但原生见效很慢,属于前期慢后期快,成长性高。2、jquery,好比华山派的剑宗,直接取实用的部 阅读全文
posted @ 2016-04-30 20:11 abcByme 阅读(187) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10