我看到了
function(element)
{
element.$tmp.myTitle = 'title';
element.$tmp.myText = 'text';
}有人知道吗?
当我在mootools1.2中使用这个函数时,它没有定义$tmp
$tmp?
用于Tips插件mootools
发布于 2010-07-17 20:04:15
它在mootools 1.1中用来存储DOM元素(本例中的工具提示)上的值。自mootools 1.2以来,store()和retrieve()方法用于此目的,因为它将防止由循环引用导致的内存泄漏。
http://mootools.net/blog/2008/01/22/whats-new-in-12-element-storage/
https://stackoverflow.com/questions/3270304
复制相似问题