Knockoutjs:在IE7中不起作用 [英] Knockoutjs: Not working in IE7

查看:66
本文介绍了Knockoutjs:在IE7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在小提琴中找到我的代码: http://jsfiddle.net/vdcUA/55/

Please find my code in the fiddle : http://jsfiddle.net/vdcUA/55/

这不适用于IE7或更具体地说是IE8兼容模式

This is not working in IE7 or more specifically IE8-Compatible mode

我在代码中使用了基因敲除插件.

I have used the knockoutjs plugin in the code.

请建议如何克服这个问题...

Please suggest how to over come this ...

谢谢,Naveen

推荐答案

像IE7一样,需要tbody才能通过JavaScript插入/删除行.将tbody标记添加到表中并在其上放置模板绑定即可正常工作: http://jsfiddle.net /rniemeyer/P6aDk/

Looks like IE7 requires a tbody to insert/remove rows via JavaScript. Adding a tbody tag to your table and putting your template binding on it works properly: http://jsfiddle.net/rniemeyer/P6aDk/

这篇关于Knockoutjs:在IE7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆