摘要:
彻底领悟javascript中的exec与match方法阅读本文之前,请先看下面一道题:题目17:Read the following javascript code: var someText="web2.0 .net2.0";var pattern=/(\w+)(\d)\.(\d)/g;var outCome_exec=pattern.exec(someText);var outCome_matc=someText.match(pattern);What is outCome_exec[1] and outCome_matc[1]? Choice A: true Cho 阅读全文
摘要:
functionmoveEnd(obj){obj.focus();varlen=obj.value.length;if(document.selection){varsel=obj.createTextRange();sel.moveStart('character',len);sel.collap... 阅读全文