var value = "ID=advIcon1&CLASS=advIcon&PAGE=43&TOP=2%&LEFT=15%&WIDTH=20%&HEIGHT=10%&RSC=http://www.canon.com.hk/40th/index.html?source=seriesbanner&ICON=http://203.80.1.28/FlippingBook/Dev/Frontend/source/adv/tc_bn_314.jpg&ALT=Cannon Adv"
我想实现的是
&RSC=http://www.canon.com.hk/40th/index.html?source=seriesbanner
到
&RSC=http://www.canon.com.hk/40th/index.html?source#seriesbanner
&RSC
替换和之间的所有“=”&ICON
value = value.replace (/&RSC=%[=]+%&ICON/,/&RSC=%[#]+%&ICON/);
以上是我尝试过的代码,但无法正常工作,如何解决问题?谢谢