|
5精币
Str = 文本_替换 (“{” + listAllPrice, , , 真, “ ”, “+”)
Str = 子文本替换 (listAllPrice, “ selected”, “+selected”, , , 假)
空格如何替换呀 2个都不能替换,,好郁闷
测试文本“{"number":1,"proid":-1,"pronum":1,"finalprice":"59.00","cutprice":"0.00","totalcutprice":"0.00","proshtml":"<option value="-1" selected="selected">不使用优惠</option>","modou":0,"maxModou":0,"otherCalcResult":[],"shoplists":[{"102443-62913399-8-0":{"shopid":102443,"type":8,"processtype":0,"sellerid":62913399,"proid":-1,"pronum":1,"finalprice":"59.00","cutprice":"0.00","freight":"0.00","logistics":"nationalfreepostage","stocklists":[{"stockid":90327916,"number":1,"proid":-1,"pronum":1,"finalprice":"59.00","cutprice":"0.00","totalprice":"59.00","proshtml":"无","otherproshtml":"","nowprice":"59.00"}],"proshtml":"<option value="-1" selected="selected">不使用优惠</option>"}}]}”
|
最佳答案
查看完整内容
空格前面不是有个引号吗? 加上引号一起替换了!
求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。 友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
|