- Randy comp.lang.javascript常见问题 - http:// jibbering .com / faq &新闻组每周 Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices / 见?你今天学到了新东西。 你使用白痴编写的代码,然后你想要这个小组中的某个人 来浏览所有写的代码白痴告诉你如何将b $ b扩展为由白痴写的代码然后不喜欢它们 告诉你问作者写的代码是什么白痴? PS我是否提到prototype.js是由白痴写的代码? 这是Usenet,而不是你的服务台。 - Randy comp.lang.javascript常见问题 - http ://jibbering.com/faq &新闻组每周 Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices / I would like to set up an event observer outside of an object, so Ican''t use this.bindAsEventListener. How can I pass the correct objectreference?I tried something like this, and various other variations, but no luck.This works when I set it up from inside the object, using "this.",Event.observe(targetId,''click'',targetId.select.bin dAsEventListener(this),false); 解决方案What are you referring to? Do not assume the subject line can be, oreven is, read.Try asking the author of that crap known as prototype.js about the code.--Randycomp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weeklyJavascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ What are you referring to? Do not assume the subject line can be, or even is, read. Try asking the author of that crap known as prototype.js about the code. -- Randy comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/See? You learned something new today.You use code written by an idiot and then you want someone in this groupto wade through all that code written by an idiot to tell you how toextend that code written by an idiot and then don''t like it when theytell you to ask the author of that code written by an idiot?P.S. Did I mention that prototype.js is code written by an idiot?This is Usenet, not your help desk.--Randycomp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weeklyJavascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ 这篇关于prototype.js bindAsEventListener没有'this'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-28 18:54