会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晴明的博客园
GitHub
CodePen
CodeWars
博客园
首页
订阅
管理
上一页
1
···
26
27
28
29
30
31
32
33
34
···
37
下一页
2016年3月16日
[js] 基于字符串中的数字进行字符串排序
摘要: #1 #2 #3 #test
阅读全文
posted @ 2016-03-16 11:49 晴明桑
阅读(3477)
评论(0)
推荐(0)
2016年3月14日
[js] PC用图片双层自动轮播
摘要: #
阅读全文
posted @ 2016-03-14 11:49 晴明桑
阅读(187)
评论(0)
推荐(0)
2016年3月8日
[js] 栈 简单使用demo
摘要: # //进制转换 function mulBase(num, base) { var s = []; do { s.push(num % base); console.log(s); num = Math.floor(num /= base); console.warn(num); } while
阅读全文
posted @ 2016-03-08 00:22 晴明桑
阅读(150)
评论(0)
推荐(0)
2016年3月7日
[js] 瀑布流
摘要: #主要是PC端,mobile端使用需要稍微修改 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> html, body, ul, li { border: 0; margin: 0; paddin
阅读全文
posted @ 2016-03-07 11:33 晴明桑
阅读(148)
评论(0)
推荐(0)
[js][插件] 客户端检测
摘要: # var client = function() { //rendering engines var engine = { ie: 0, gecko: 0, webkit: 0, khtml: 0, opera: 0, //complete version ver: null }; //brows
阅读全文
posted @ 2016-03-07 11:09 晴明桑
阅读(148)
评论(0)
推荐(0)
2016年3月5日
[js] querySelector、querySelectorAll、getElementById。封装选择器
摘要: # # # #
阅读全文
posted @ 2016-03-05 15:02 晴明桑
阅读(389)
评论(0)
推荐(0)
2016年3月4日
[js] 继承
摘要: 原型链基本模式 所谓的 伪类 //不能使用对象字面量创建原型方法 //因为不能在子类内部调用超类函数,所以实践中很少会单独使用原型链 # 经典继承(借用构造函数) //1 //2 #注意子函数同名方法的问题 组合继承 原型式继承 原型式继承 ES5 //不能使用对象字面量创建原型方法 寄生组合式继承
阅读全文
posted @ 2016-03-04 02:35 晴明桑
阅读(180)
评论(0)
推荐(0)
2016年3月3日
[js] 数组去重、交集、并集
摘要: 去重 取重 取差,删除重复元素 并集 交集 差集 Array.prototype.indexOf 兼容方法 # ES5去重
阅读全文
posted @ 2016-03-03 20:07 晴明桑
阅读(349)
评论(0)
推荐(0)
[js] indexeddb 使用demo
摘要: 需要在服务器环境下运行才可正常存储。 在IOS手机上兼容性很差。 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <ul id='bg' style="background: li
阅读全文
posted @ 2016-03-03 20:01 晴明桑
阅读(419)
评论(0)
推荐(0)
2016年2月29日
[js] 过滤数组中重复的数字或字符串元素 array 去重
摘要: 利用indexOf、filter Array.prototype.indexOf()、Array.prototype.filter()属于ES5 利用hash 单一数据类型hash很快 字符串和数字混合的话会出错 排序后比较 缺点是除非进行深复制,不然会改变原数组(排序了),而且sort()在有数字
阅读全文
posted @ 2016-02-29 17:02 晴明桑
阅读(3096)
评论(0)
推荐(0)
上一页
1
···
26
27
28
29
30
31
32
33
34
···
37
下一页
公告