GitHub 博客园 Nanakon

随笔分类 -  021.JavaScript

~~
摘要: 阅读全文

posted @ 2016-12-23 17:07 jzm17173 阅读(77) 评论(0) 推荐(0)

传参类型
摘要: 阅读全文

posted @ 2016-12-15 10:07 jzm17173 阅读(75) 评论(0) 推荐(0)

insertAdjacentHTML
摘要:/** * insertAdjacentHTML * 支持 insertAdjacentHTML()方法的浏览器有 IE、Firefox 8+、Safari、Opera 和 Chrome */ var element = document.querySelector('#box2') //作为前一个同辈元素插入 element.insertAdjacentHTML("beforebegin... 阅读全文

posted @ 2016-12-15 09:28 jzm17173 阅读(127) 评论(0) 推荐(0)

特性节点Attribute
摘要:深入理解DOM节点类型第六篇——特性节点Attribute 阅读全文

posted @ 2016-12-09 10:01 jzm17173 阅读(123) 评论(0) 推荐(0)

session过期时ajax请求刷新浏览器
摘要:ajax前置处理实现异步请求session过期时跳转登录页面 阅读全文

posted @ 2016-11-17 09:09 jzm17173 阅读(153) 评论(0) 推荐(0)

查找
摘要:1.JavaScript字符串 2.JavaScript数组 3.JavaScript对象 阅读全文

posted @ 2016-11-16 13:41 jzm17173 阅读(95) 评论(0) 推荐(0)

isFinite
摘要:window.isFinite 如果 number 是有限数字(或可转换为有限数字),那么返回 true。否则,如果 number 是 NaN(非数字),或者是正、负无穷大的数,则返回 false 阅读全文

posted @ 2016-11-10 08:57 jzm17173 阅读(81) 评论(0) 推荐(0)

使用innerHTML生成的script节点不会发出请求与执行text属性
摘要: 阅读全文

posted @ 2016-11-03 17:41 jzm17173 阅读(118) 评论(0) 推荐(0)

20161101
摘要: 阅读全文

posted @ 2016-11-01 16:38 jzm17173 阅读(72) 评论(0) 推荐(0)

【ES5】hideProperty
摘要:function hideProperty(host, name, value) { Object.defineProperty(host, name, { value: value, writable: true, enumerable: false, configurable: true }) } var ob... 阅读全文

posted @ 2016-10-31 16:59 jzm17173 阅读(110) 评论(0) 推荐(0)

混淆
摘要:前端如何给 JavaScript 加密 阅读全文

posted @ 2016-10-21 17:09 jzm17173 阅读(88) 评论(0) 推荐(0)

dataset
摘要:HTML5自定义属性对象Dataset简介 阅读全文

posted @ 2016-09-21 09:08 jzm17173 阅读(79) 评论(0) 推荐(0)

属性模块
摘要:如何区分固有属性与自定义属性 阅读全文

posted @ 2016-09-21 08:54 jzm17173 阅读(98) 评论(0) 推荐(0)

【ajax】FormData
摘要: 阅读全文

posted @ 2016-09-20 17:14 jzm17173 阅读(86) 评论(0) 推荐(0)

【ajax】xhr
摘要:jQuery JavaScript框架设计 我们再认真思考一下,既然我们是写框架,那么这些检测其实是放在 IIFE 里面,因此基本不用覆写,检测好哪个可用,就把它加到命名空间上就好了。最后的版本就出来了,使用new Function、eval,反正只用一次,耗不了多少性能 阅读全文

posted @ 2016-09-20 08:57 jzm17173 阅读(103) 评论(0) 推荐(0)

bold, big, blink
摘要: 阅读全文

posted @ 2016-09-19 19:38 jzm17173 阅读(96) 评论(0) 推荐(0)

toLocaleString
摘要: 阅读全文

posted @ 2016-09-16 23:41 jzm17173 阅读(104) 评论(0) 推荐(0)

【ES6】蛋疼
摘要: 阅读全文

posted @ 2016-09-09 17:15 jzm17173 阅读(100) 评论(0) 推荐(0)

【ES6】箭头函数
摘要:let getPrices = () => 4.55 console.log(getPrices()) let arr = ['apple', 'banana', 'orange'] arr.forEach(value => { console.log(value) }) arr.forEach((value, index) => { console.log(value, in... 阅读全文

posted @ 2016-09-08 13:40 jzm17173 阅读(175) 评论(0) 推荐(0)

uid
摘要:var uid = 0 function nextUid() { return ++uid } 阅读全文

posted @ 2016-09-04 21:00 jzm17173 阅读(106) 评论(0) 推荐(0)

导航

轻音