我看到了
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/
关于javascript - Mootools1.1什么是element。$ tmp?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3270304/