在 JavaScript 框架(jQuery、Prototype 等)上实现新层的最佳方式是什么?
+------------+
| JavaScript |
+------------+
| jQuery |
+------------+
| MyLibrary |
+------------+
例如...
MyLibrary = MyLibrary || {};
MyLibrary.animate = function(params) {
// some code
}
MyLibrary.insert = function(params) {
// some code
}
执行
MyLibrary.animate(params);
谢谢您的回复!