function Fun_GetMid(url) {
var re = /http:\/\/(e\.)?weibo.com\/[\d]+?\/[\w]+/i;
var mc = url.match(re);
var val = mc[0];
var index = val.lastIndexOf("/");
var mid = val.substr(index + 1);
alert(mid);
}
js 正则获得微博 MID
最新推荐文章于 2021-04-21 23:48:57 发布