|
本帖最后由 jqw1992 于 2014-9-26 10:01 编辑
我采集了下来以后成这样:
[ol] {"is_filter": true, "id": "fashion", "name": "Fashion"}, {"is_filter": false, "id": "womensfashion", "name": "Women's Fashion"}, {"is_filter": true, "id": "women", "name": "Women"}, {"is_filter": false, "id": "dres", "name": "Dress"}, {"is_filter": false, "id": "sexy", "name": "sexy"}, {"is_filter": false, "id": "sexydres", "name": "Sexy Dress"}, {"is_filter": false, "id": "skirt", "name": "Skirts"}, {"is_filter": false, "id": "partydres", "name": "Party Dress"}, {"is_filter": false, "id": "printed", "name": "printed"}, {"is_filter": false, "id": "slimfit", "name": "Slim Fit"}, {"is_filter": false, "id": "trend", "name": "Trend"}, {"is_filter": false, "id": "sexyskirt", "name": "sexy skirt"}, {"is_filter": false, "id": "longdres", "name": "long dress"}, {"is_filter": false, "id": "nightclubsskirt", "name": "Nightclubs Skirt"}, {"is_filter": false, "id": "topsale", "name": "top sales"}, {"is_filter": false, "id": "womensiameseskirt", "name": "Women Siamese Skirt"}[/ol]复制代码
然后我想用正则还是什么把它变成
Fashion,Women's Fashion,....【就是对于“name”后面的 东西提取出来。】这个不知道怎么写,谢谢指导一下;我觉得应该是正则写的,但是写不来,昨天折腾到2点多还没有出来。。。
|
|