开发者

How to make changes in Plugin online

I am using this in my application.In this I'm using a <div id="ssc_listAndMapDiv">.

Now according to my requirement I have to put one div i开发者_运维技巧n this div.But as the Javascript file is online, how can I make changes in this js file.


see .append()

$('#ssc_listAndMapDiv').append('<div> you div here</div>');


If youve got the licences to do that, you can simply save the js locally (right click on THIS and save destination as... and modify the local script... it seems that its a compressed javascript so you may search for uncompressing methods or another version of that js whitout compression.

see also > http://jsbeautifier.org/ to decompress the js


Your question is extremely vague. It would help tremendously if you put in more information, such as what you're trying to accomplish, what's not working, and why you're looking to change the JavaScript file.

Now, if you really do need to change the plugin itself, then, if the license allows, you need to download a non-minified version and make your changes accordingly.

If you need to add something to make the plugin work (such as something in $(document).ready()), then you don't have to edit the plugin's JavaScript, just have your own JavaScript file that you put those commands in and link to it in your HTML after the library files.


You can use Chrome(-ium) dev tools to make changes in files real-time. About it you can watch in youtube @ http://www.youtube.com/watch?v=N8SS-rUEZPg

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜