【发布时间】:2011-09-26 22:15:24
【问题描述】:
我有一个 jQuery 插件,它可以像大多数插件一样使用这种格式
$(somelement).SomePlugin(some options); one of the options is a string.
现在我遇到了这样一种情况,即字符串是在运行时在 ASP.NET 中的代码中确定的,并且每个元素都不同。这可以在服务器控件的 OnItemDataBound 中完成。页面中可能有数十个。
如何在后面的代码中绑定 jQuery 插件?
加法:
每个 'someelement' 可以有不同的 id。
【问题讨论】:
标签: jquery asp.net jquery-plugins