彻底领悟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 Choice B: false Choice C: null 阅读全文
posted @ 2008-12-01 22:26 lola 阅读(19327) 评论(13) 推荐(8) 编辑