摘要: <!DOCTYPE html extend ;(function($) { $.fn.extend({ "color":function(value){ if( value== undefined){ return this.css("color") }else{ return this.css(" 阅读全文
posted @ 2018-01-03 20:50 mysure 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Installation Using npm: Using script tag(first download one of the "builds" ): 阅读全文
posted @ 2018-01-03 20:49 mysure 阅读(435) 评论(0) 推荐(0) 编辑
摘要: $.each() 与.each()的区别 $.each()与$(selector).each()不同, 后者专用于jquery对象的遍历, 前者可用于遍历任何的集合(无论是数组或对象) 如果是数组,回调函数每次传入数组的索引和对应的值(值亦可以通过this 关键字获取,但javascript总会包装 阅读全文
posted @ 2018-01-03 20:48 mysure 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: 创建新的option element.add(new Option('value','date')) https://www.cnblogs.com/duanhuajian/archive/2013/06/09/3129365.html 阅读全文
posted @ 2017-12-29 00:15 mysure 阅读(163) 评论(0) 推荐(0) 编辑
摘要: js 一个程序运行的时间计算 console.time(timeName) console.timeEnd(timeName) MDN 释义 你可以启动一个计时器(timer)来跟踪某一个操作的占用时长。每一个计时器必须拥有唯一的名字,页面中最多能同时运行10,000个计时器。 当以此计时器名字为参 阅读全文
posted @ 2017-12-24 22:34 mysure 阅读(4829) 评论(0) 推荐(0) 编辑
摘要: HTML5之FileReader的使用 http://blog.csdn.net/jackfrued/article/details/8967667 MDN : 代码 <!doctype html Image preview example oFReader = new FileReader(), 阅读全文
posted @ 2017-12-24 22:34 mysure 阅读(492) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html Document function Queue(){ let item = []; this.enqueue=function(element){ item.enqueue(element); } // rem 第一项 this.dequeue=function(){ 阅读全文
posted @ 2017-12-07 19:34 mysure 阅读(120) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html Document function stack(){ item = [] // 添加栈 this.push = function(element){ item.push(element); } // 移除栈 this.pop = function(){ return i 阅读全文
posted @ 2017-12-07 19:33 mysure 阅读(223) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html 表单联动 province, city{ width: 200px; height: 100px; } p{ cursor: pointer; } p:hover{ background color: gray; } 省份 城市 var x = [ [ ['0','1' 阅读全文
posted @ 2017-12-07 19:31 mysure 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 学习 自 于 http://blog.csdn.net/Elenal/article/details/51493510 <!DOCTYPE html Document 请选择所在的省份 浙江省 山东省 广东省 甘肃省 请选择所在的城市 请选择所在的县区 </form //按照省份的下拉列表的顺序定义 阅读全文
posted @ 2017-12-07 19:27 mysure 阅读(4813) 评论(0) 推荐(1) 编辑