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> < 阅读全文
posted @ 2012-10-29 13:29 静水渊 阅读(752) 评论(2) 推荐(0)
摘要: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, 阅读全文
posted @ 2012-10-25 09:29 静水渊 阅读(297) 评论(0) 推荐(0)
摘要:<!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 阅读全文
posted @ 2012-10-13 11:22 静水渊 阅读(659) 评论(0) 推荐(1)
摘要:/** *获取页面元素的滚动位置 @param {DOM} el Dom元素 *return {Object} 元素滚动位置对象 */ function getScroll (el) { var d = el, doc = document, body = doc.body, docElement = doc.documentElement, l, ... 阅读全文
posted @ 2012-10-13 10:59 静水渊 阅读(1117) 评论(1) 推荐(0)
摘要:function typeOf(value) { var type,toString=Object.prototype.toString, typeToString; if (value === null) { return 'null'; } type = typeof value; if (type === 'undefined' || type === 'string' || type === '... 阅读全文
posted @ 2012-10-12 13:55 静水渊 阅读(169) 评论(0) 推荐(0)