天天看點

Vue3導入方法太麻煩?試試這個不用導入方法的插件!

展開

var __INLINE_SCRIPT__=function(){"use strict";var e=function(e,a,t){function i(e,a){var t=e.match(new RegExp(a+"\\s*=\\s*[\"']?([^\"'\\s>]+)[\"']?"));return t&&t[1]}if(e=a?window.__emojiFormat(function(e){var a;e=e.split(/(<a\s+\w[^>]*>)(.*?)(<\/a>)/);for(var t=0;t<e.length;t++)if(t%4==1){a=!1;var n=i(e[t],"href");/^https?:\/\/mp\.weixin\.qq\.com/.test(n)&&(a=!0);var s='<a target="_blank" data-href="'+(a?n:"javascript:void 0")+'"',r=i(e[t],"data-miniprogram-appid");if(r)s+=' class="weapp_text_link" data-miniprogram-type="text" data-miniprogram-appid="'+r+'" data-miniprogram-path="'+(i(e[t],"data-miniprogram-path")||"")+'" data-miniprogram-nickname="'+(i(e[t],"data-miniprogram-nickname")||"")+'" data-miniprogram-servicetype="'+(i(e[t],"data-miniprogram-servicetype")||"0")+'"',a=!0;else if(a){s+=' class="js_video_desc_link"';var o=i(e[t],"data-itemshowtype");o&&(s+=' data-itemshowtype="'+o+'"')}e[t]=a?s+">":""}else t%4==3?!a&&(e[t]=""):e[t]=e[t].replace(/<.*?>/g,"");return e.join("")}(e).replace(/\r/g,"").replace(/\n/g,"<br>")):e.replace(/\r/g,"").replace(/\n/g,"<br>").replace(/\s/g,"&nbsp;"),1*t==8){var n=document.getElementById("js_image_desc");n&&(n.innerHTML=e)}else{var s=document.getElementById("js_common_share_desc"),r=document.getElementById("js_common_share_desc1");if(!s||!r)return;s.innerHTML=e,r.innerHTML=e,s.style.maxHeight="",s.classList?!s.classList.contains("default")&&s.classList.add("default"):s.className.match(/(\s|^)default(\s|$)/)||(s.className+=" default"),setTimeout((function(){var e=document.getElementById("js_folder_text_switch");r.offsetHeight>s.offsetHeight+1?e.style.display="block":e.style.display="none"}),300)}};if(!window.__second_open__){var a=window.a_value_which_never_exists||"";a?e(a,!0,"5"):e("",!1,"5"),window.__setDesc=e}return e}();