How to include an external plugin inside of another jQuery plugin being authored
问题 I am building a custom jQuery plugin for a project I am working on. I want to return an object that is custom to another jQuery plugin...rather than having to make sure that each page that uses my plugin also has this other plugin, is it possible to include it in the actual plugin itself? Rather than type the following on each page that uses my plugin: <script type="text/javascript" src="url_to_my_plugin" /> <script type="text/javascript" src="url_to_plugin" /> I wanted to see if there is an