摘要: 1.匹配所有类似12rem或者12.32rem的字符串中rem前面的数字var xx = "font-size:12rem;width:12.33rem;height:200rem;";xx.match(/(\d+)+(?=rem\b)|(\d+\.)\d+(?=rem\b)/g);结果:["12"... 阅读全文
posted @ 2016-01-11 10:18 樱花飞落ll 阅读(169) 评论(0) 推荐(0)