阅读背景:

范围jquery插件的最佳方法

来源:互联网 

I have a plugin I'm working on that will eventually be used in multiple places on the same page. I have noticed this can lead to issues around not finding the correct one to operate on when the plugin is called. What is the best way to use some sort of context when using this plugin. I have included a context object in my list of options for the plugin, but others such as the datepicker plugin don't require a context object when using them. How do others scope their plugins to avoid this?I have a plugin I'm working on that will eventu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: