随笔分类 - js
摘要:<!DOCTYPE html Document label { display: inline block; width: 80px; height: 30px; text align: right; margin top: 20px; } 出生日期: <! name 改的话 要改css js 年
阅读全文
摘要:<!DOCTYPE html Document (function($){ $.fn.maxHeight = function(){ var max = 0; this.each(function(){ max = Math.max(max,$(this).height()) }) return m
阅读全文
摘要:<!DOCTYPE html extend ;(function($) { $.fn.extend({ "color":function(value){ if( value== undefined){ return this.css("color") }else{ return this.css("
阅读全文
摘要:Installation Using npm: Using script tag(first download one of the "builds" ):
阅读全文
摘要:$.each() 与.each()的区别 $.each()与$(selector).each()不同, 后者专用于jquery对象的遍历, 前者可用于遍历任何的集合(无论是数组或对象) 如果是数组,回调函数每次传入数组的索引和对应的值(值亦可以通过this 关键字获取,但javascript总会包装
阅读全文
摘要:HTML5之FileReader的使用 http://blog.csdn.net/jackfrued/article/details/8967667 MDN : 代码 <!doctype html Image preview example oFReader = new FileReader(),
阅读全文
摘要:js 一个程序运行的时间计算 console.time(timeName) console.timeEnd(timeName) MDN 释义 你可以启动一个计时器(timer)来跟踪某一个操作的占用时长。每一个计时器必须拥有唯一的名字,页面中最多能同时运行10,000个计时器。 当以此计时器名字为参
阅读全文

浙公网安备 33010602011771号