作者: Straws | 来源:发表于2018-06-03 15:50 被阅读0次

    var pattern = /<(img)(.?)(/>|></img>|>)/g,
    PlainTxt = ue.getPlainTxt();
    var match1 = PlainTxt.match(pattern);
    if(match1==null){
    img = "nopic";
    }else{
    var pattern2 = /(src)=("|')(.
    ?)("|')/g,
    PlainTxt2 = match1[0];
    var match2 = PlainTxt2.match(pattern2);
    if(match2==null){
    img = "nopic";

    相关文章

      网友评论

          本文标题:

          本文链接:https://www.haomeiwen.com/subject/qkaxsftx.html