随笔分类 -  js

about js more
摘要:1.html <div id="wrap"></div> 2.js 2.1 使用 3.参考网址 echarts中关于自定义legend图例文字 带时间轴的折线图echart echarts之legend-改变图例的图标为自定义图片 阅读全文
posted @ 2019-01-17 19:45 justSmile2 阅读(712) 评论(0) 推荐(0)
摘要:代码已写好,只可惜协议不是 https 的。。 不过不影响大家对美的追求,传送门 阅读全文
posted @ 2019-01-07 17:29 justSmile2 阅读(205) 评论(0) 推荐(0)
摘要:焦点:使浏览器能够区分用户输入的对象,当一个元素有焦点的时候,那么他就可以接收用户的输入只有能够响应用户操作额元素才可以接收焦点事件,比如:a button input... onfocus:当元素获取到焦点的时候触发 onblur:当元素失去焦点的时候 obj.focus():给指定的元素设置焦点 阅读全文
posted @ 2019-01-03 16:12 justSmile2 阅读(20126) 评论(0) 推荐(0)
摘要:测试代码: var arr0 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; var ranNum0 = 5; console.log(getDiffArr(arr0, ranNum0)); var arr0 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; v 阅读全文
posted @ 2018-12-29 17:50 justSmile2 阅读(650) 评论(0) 推荐(0)
摘要:test 阅读全文
posted @ 2018-12-08 16:37 justSmile2 阅读(3011) 评论(0) 推荐(0)
摘要:1.// 摇号( 随机抽取不重复数组 ) 2.字符串 / 数组 乱序 3.删除数组 指定项数组 阅读全文
posted @ 2018-12-04 11:42 justSmile2 阅读(136) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-11-28 19:19 justSmile2 阅读(118) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-11-28 19:19 justSmile2 阅读(734) 评论(0) 推荐(0)
摘要:慎用。 技术,应该分享。。 阅读全文
posted @ 2018-11-28 19:02 justSmile2 阅读(101) 评论(0) 推荐(0)
摘要:搜狐IP地址查询接口(默认GBK):http://pv.sohu.com/cityjson 搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8 搜狐另外的IP地址查询接口:http://txt.go.sohu.com/ip/soip http 阅读全文
posted @ 2018-11-20 10:32 justSmile2 阅读(1170) 评论(0) 推荐(0)
摘要:Object 是函数 函数也是对象,对象(除了null)都有 __proto__ 属性,指向其原型函数,通过 __proto__ 属性形成原型链。 构造函数的 constructor 都指向 Function Function 的 prototype 指向一个特殊匿名函数,且这个特殊匿名函数的 __ 阅读全文
posted @ 2018-11-14 19:58 justSmile2 阅读(206) 评论(0) 推荐(0)
摘要://一、Object.create //Object.create 方法是JavaScript中用于创建对象的一个方法 , 接收两个参数,第一个表示要继承的对象,第二个参数(可选)表示也是一个对象,用于对新创建的对象进行初始化 。 //1.初始化对象 var Obj = { name: 'mini', age: 3, ... 阅读全文
posted @ 2018-11-14 11:05 justSmile2 阅读(368) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-12 13:04 justSmile2 阅读(45) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-09 20:24 justSmile2 阅读(12) 评论(0) 推荐(0)
摘要:isPrototypeOf() 判断某个 proptotype 对象和某个实例之间的关系 alert(Cat.prototype.isPrototypeOf(cat1)); //true alert(Cat.prototype.isPrototypeOf(cat2)); //true hasOwnP 阅读全文
posted @ 2018-11-09 19:59 justSmile2 阅读(187) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-08 14:05 justSmile2 阅读(272) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-06 20:03 justSmile2 阅读(13) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-06 19:59 justSmile2 阅读(63) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-11-06 18:13 justSmile2 阅读(7) 评论(0) 推荐(0)