如何为这个 dojo 小部件编写函数
我刚刚创建了这个 dojo 小部件,现在我想向它附加一个事件,我可以看看它是如何完成的:
var filteringSelect = new dijit.form.FilteringSelect({
id: "test",
},
"test");
我想向它附加一个 onfocus 函数。
I just created this dojo widget and now I want to attached an event to it can I see how it is done:
var filteringSelect = new dijit.form.FilteringSelect({
id: "test",
},
"test");
I want to attached an onfocus function to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这几乎是您需要阅读的全部内容。
编辑:你可能会发现这个 Dojo 和 Dijit 的入门教程很有用,尤其是这个示例。
EDIT2:更具体地说,您需要做的就是:
It's pretty much all you need to read.
EDIT: you might find this introductory tutorial to Dojo and Dijit useful, especially this sample.
EDIT2: To be more specific, all you need to do is:
请注意 onFocus 中的大写 F,如果您使用 onfocus,则无法正常工作。
Note the CAPITAL F in onFocus, if you use onfocus things wont work.