0
我看到它
function(element)
{
element.$tmp.myTitle = 'title';
element.$tmp.myText = 'text';
}
有人知道?
当我把这个功能在mootools1.2使用它没有定义$ TMP
$ TMP?
使用了插件的提示MooTools的
我看到它
function(element)
{
element.$tmp.myTitle = 'title';
element.$tmp.myText = 'text';
}
有人知道?
当我把这个功能在mootools1.2使用它没有定义$ TMP
$ TMP?
使用了插件的提示MooTools的
它在mootools的1.1用于值存储DOM元素(在你的情况提示)上。由于mootools 1.2,store()和retrieve()方法用于此目的,因此它会阻止您创建由循环引用引起的内存泄漏。
http://mootools.net/blog/2008/01/22/whats-new-in-12-element-storage/
非常感谢你 – Chameron 2010-08-09 04:12:43