摘要: 内容摘自阮一峰老师的es6中对象的扩展,可枚举一段 阅读全文
posted @ 2018-05-15 11:00 小菜波 阅读(263) 评论(0) 推荐(0)
摘要: 内容引用自白色橡树博客 阅读全文
posted @ 2017-11-23 11:09 小菜波 阅读(124) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, 阅读全文
posted @ 2017-10-11 09:47 小菜波 阅读(2163) 评论(0) 推荐(0)
摘要: var c_url=location.href; console.log(c_url) var c_selection=c_url.indexOf('selection'); console.log(c_selection) if(c_selection != -1){ var c_ahref=do 阅读全文
posted @ 2017-10-11 09:44 小菜波 阅读(1145) 评论(0) 推荐(0)
摘要: 简单的转盘抽奖类 阅读全文
posted @ 2017-06-30 21:54 小菜波 阅读(141) 评论(0) 推荐(0)
摘要: function format (num) { return (num.toFixed(2) + '').replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,'); } var num = 11231232345; alert(format(num)); 以上来 阅读全文
posted @ 2017-06-28 17:58 小菜波 阅读(428) 评论(0) 推荐(0)
摘要: function emails(mail) { var filter = /^([a-zA-Z0-9_\.\-])+\@([a-zA-Z0-9\.])+([a-zA-Z0-9]{2,4})$/; if (filter.test(mail)) return true; else { alert('您的 阅读全文
posted @ 2017-06-28 17:55 小菜波 阅读(164) 评论(0) 推荐(0)
摘要: function formatDate(now) { var year=now.getYear(); var month=now.getMonth()+1; var date=now.getDate(); var hour=now.getHours(); var minute=now.getMinu 阅读全文
posted @ 2017-06-28 10:13 小菜波 阅读(781) 评论(0) 推荐(0)
摘要: 一些移动端相关事件 阅读全文
posted @ 2017-06-07 09:30 小菜波 阅读(1122) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>百度搜索</title> //引入相关插件 <script src="https://cdn.bootcss.com/angular.js/1.3.8/angular.js"></s 阅读全文
posted @ 2017-06-03 16:26 小菜波 阅读(288) 评论(0) 推荐(0)