没有样式就是最好的样式
来自我佛山人的例子,说明了一切…
str="redidea red redred red5 redideabbs"
alert([str,str.replace(/red(?:idea|5)/gi,"blue"),str.replace(/red(?=idea|5)/gi,"blue"),str.replace(/red(?!idea|5)/gi,"blue")].join(” “))
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
Name (*)
E-mail (*)
URI
Message
Notify me of followup comments via e-mail
Copyright © 2007 - 郭爽的网页设计资料 - is proudly powered by WordPress Gossip City Theme is created by: Design Disease brought to you by Celebrific.
Leave a reply