|
@@ -1,14 +1,25 @@
|
|
|
- <h1>解决Vue 加载失效问题</h1>
|
|
|
- <br/>
|
|
|
- <ul>
|
|
|
- <li>is_my = function(func){</li>
|
|
|
- <li>let if_script = setInterval(function () {</li>
|
|
|
- <li>if($('script[src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"]').is($('script'))){</li>
|
|
|
- <li>setTimeout(function () {</li>
|
|
|
- <li> func();</li>
|
|
|
- <li> },300);</li>
|
|
|
- <li> clearInterval(if_script);</li>
|
|
|
- <li> }</li>
|
|
|
- <li> })</li>
|
|
|
- <li> }</li>
|
|
|
- </ul>
|
|
|
+ <h1>解决Vue 加载失效问题</h1>
|
|
|
+ ```
|
|
|
+ ---之定义函数名 is_my()
|
|
|
+
|
|
|
+ is_my = function(func){
|
|
|
+
|
|
|
+ let if_script = setInterval(function () {
|
|
|
+
|
|
|
+ if($('script[src="https://www.gitinn.com/pan-chinese/_blogs/raw/master/vue.js"]').is($('script'))){
|
|
|
+
|
|
|
+ setTimeout(function () {
|
|
|
+
|
|
|
+ func();
|
|
|
+
|
|
|
+ },300);
|
|
|
+
|
|
|
+ clearInterval(if_script);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+```
|