阅读背景:

JS Revealing Pattern事件未定义的问题

来源:互联网 

I am using the modular design pattern for JS and I keep running into issues when using arguments bound functions. I have a particular function that I would like to bind to different events to keep from having to write the function for each bound event. The only difference in the function, or the argument, is the table that will be updated. The problem is that when I build a function with the arguments I need and pass those arguments to bound events, I get an undefined error, in the console, on load. Keep in mind, I want to stick with this design pattern for the security it offers.I am using the modular design pattern for JS an




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

分享到: