简体   繁体   中英

how to extend a javascript library?

I am new to programming and I want to know if I can expand a library of javascript and override methods?

Suppose we have installed library dropzone. we can extend it and override methods?

Thanks in advance!

Yes, you can.

I do normally change the functions in the library itself. This does of course only work if you have installed the library locally and you do want to have the method changed in all your code.

If you still need to access the original function, or other people will also read your code, then take a look at this similar question here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM