10 2012 档案
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"></head> <body> <div style="width: 350px; height: 46px; padding:10px; -webkit-border-image: url(image/whiteButton.png) 8 stretch ; border-width: 8px;">-webkit-border-image效果</div> <
阅读全文
摘要:var obj = { name: function() { alert('你好'); }, sex:'男'};function clone(obj) { var str = JSON.stringify(obj, function (key, value) { return (typeof value == 'function' ? value.toString().replace(/^function(.*)/g, "jsonFunction$1") : value); }); return JSON.parse(str,
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body><div id="test"&g
阅读全文
摘要:/** *获取页面元素的滚动位置 @param {DOM} el Dom元素 *return {Object} 元素滚动位置对象 */ function getScroll (el) { var d = el, doc = document, body = doc.body, docElement = doc.documentElement, l, ...
阅读全文
摘要:function typeOf(value) { var type,toString=Object.prototype.toString, typeToString; if (value === null) { return 'null'; } type = typeof value; if (type === 'undefined' || type === 'string' || type === '...
阅读全文

浙公网安备 33010602011771号