为什么 Flexigird 不能在 IE 上运行

发布于 2024-08-30 01:08:59 字数 359 浏览 2 评论 0原文

我有一个带有 Flexigrid 的页面,它适用于 FF、Chrome、Opera(IE 除外)。 它指出错误位于“if(!btn.separator)”行,该行为空或不是对象。

好吧,该块内的所有内容在 IE 上都是错误,因为我认为错误出在“btn”对象上..

有没有人遇到过这个错误?

this is from the latest version of flexigrid 

for(i=0;i< p.buttons.length;i++){
var btnfor = p.buttons[i]; if(!btn.分隔符) { //在这里做事 } }

谢谢 尤鲁宾斯

I have a page with a flexigrid on it and it works on FF,Chrome,Opera except IE.
it points out that the error is at line of "if(!btn.separator)" which is null or not an object.

Well, every thing inside that block is an error on IE cause i think the error is on the "btn" objects..

has anyone ever encountered this error?

this is from the latest version of flexigrid 

for(i=0;i< p.buttons.length;i++){
var btnfor = p.buttons[i];
if(!btn.separator)
{
//do things here
}
}

Thanks
Jrubins

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慕巷 2024-09-06 01:08:59

感谢您的回复。但我只是能够解决我的问题。

通过使用 for (i in p.buttons) 而不是 for(i=0;i< p.buttons.length;i++)

可能是索引“i”数据类型为 object 而不是 int?。

thanks for a reply. but i was just able to fix my problem.

by using for (i in p.buttons) instead of for(i=0;i< p.buttons.length;i++)

probably it was the index "i" data type as object and not int?.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文