摘要:
function randomColor(){ r = Math.floor(Math.random()*255).toString(16); g = Math.floor(Math.random()*255).toString(16); b = Math.floor(Math.random()*... 阅读全文
摘要:
function randomColor(){ r = Math.floor(Math.random()*255).toString(16); g = Math.floor(Math.random()*255).toString(16); b = Math.floor(Math.random()*... 阅读全文
摘要:
================= php生成xml文件头 ================header('Content-Type: text/xml'); echo'' 阅读全文
摘要:
================= php生成xml文件头 ================header('Content-Type: text/xml'); echo'' 阅读全文
摘要:
function numcompare(a,b){return a-b;}nums = new Array(30,10,200,4);sortednums = nums.sort(numcompare);源自《javascript 入门经典》 阅读全文
摘要:
function numcompare(a,b){return a-b;}nums = new Array(30,10,200,4);sortednums = nums.sort(numcompare);源自《javascript 入门经典》 阅读全文
摘要:
=======================常用正则表达式=================================//字符处理;//去左右空格; function trim(s){ return rtrim(ltrim(s)); }//去左空格; function ltrim(s){... 阅读全文
摘要:
=======================常用正则表达式=================================//字符处理;//去左右空格; function trim(s){ return rtrim(ltrim(s)); }//去左空格; function ltrim(s){... 阅读全文
摘要:
document.body.oncontextmenu = function(event){oEvent=event?event:window.event;oEvent.preventDefault();} 阅读全文
摘要:
document.body.oncontextmenu = function(event){oEvent=event?event:window.event;oEvent.preventDefault();} 阅读全文