this.content = this.content.match(/http.*\.(mp4|png|jpg)/gi);
正则匹配以http开头mp4/png/jpg结尾的字符串
最新推荐文章于 2024-06-04 16:40:42 发布
this.content = this.content.match(/http.*\.(mp4|png|jpg)/gi);