Git Product home page Git Product logo

Comments (5)

kokororin avatar kokororin commented on August 21, 2024 1

OK了,感谢!

from editormd.

DT27 avatar DT27 commented on August 21, 2024

感谢建议!

jQuery的问题我试过,加了判断手动载入jQuery,文件总是在页面加载完才载入。
要让后面代码在jQuery加载完再执行的话,又需要其他插件来控制。以后我加上吧。

空代码我会处理的。

from editormd.

kokororin avatar kokororin commented on August 21, 2024

https://github.com/DT27/EditorMD/blob/master/Plugin.php#L148
改为

if (typeof jQuery === 'undefined')
    document.write("<script src=\"<?php echo $pluginUrl; ?>/lib/jquery.min.js\"></script>");

这样应该没有问题,我之前的插件也是这么处理的😆

from editormd.

DT27 avatar DT27 commented on August 21, 2024

我说怎么之前试一直加载不进来。。。原来是冒号跟斜杠的问题。。。
用这个解决了

window.jQuery || document.write(unescape('%3Cscript%20type%3D%22text/javascript%22%20src%3D%22<?php echo $pluginUrl; ?>/lib/jquery.min.js%22%3E%3C/script%3E'));

马上提交更新

from editormd.

DT27 avatar DT27 commented on August 21, 2024

已经提交了,你试下怎么样。

from editormd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.