[导读]:原地址: PC地址:http://www.rig-china.com/prosort_175.html [?] 对应移动端地址为:http://m.rig-china.com/productslist_175.html [?] 书写格式一: http://www.rig-china.com/prosort_(\d+).html http://m.rig-chin...
原地址:
PC地址:http://www.rig-china.com/prosort_175.html[?]
对应移动端地址为:http://m.rig-china.com/productslist_175.html[?]
书写格式一:
http://www.rig-china.com/prosort_(\d+).html http://m.rig-china.com/productslist_${1}.html
书写格式二:
http://www.rig-china.com/([a-zA-Z]+)_([0-9]+).html http://m.rig-china.com/${1}_${2}.html
到底用哪种啊??我都纳闷了。
2种都可以,只是第二种包括的范围更广,第一种只能用于这种的,如果遇到这种的就不行了,而第二种可以满足
只要能完美的适配用哪种都行,不影响
###第二种,因为字母,和数字都需要适配
本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/83865.html