简体   繁体   English

从原型迁移到Jquery Rails,empty()函数不起作用

[英]Migrating from prototye to Jquery Rails, empty() functions not working

I am migrating a rails 3 application from prototype to Jquery, .empty() function is not working on a dhtmlx grid object. 我正在将Rails 3应用程序从原型迁移到Jquery,.empty()函数在dhtmlx网格对象上不起作用。

Below is the part of code which is generating error. 以下是产生错误的代码部分。

tree = new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);
tree.filterState.empty() // Line generating error

However when i console.log the values is an proper string and has the value which it is supposed to have. 但是,当我console.log时,值是一个正确的字符串,并且具有它应该具有的值。

How do i make it work in Jquery? 我如何使其在Jquery中工作?

Can anyone also direct me to guidelines are points to be covered / implemented when migrating from prototype to Jquery 从原型迁移到Jquery时,任何人都可以将我引向准则是要涵盖/实现的要点

Any help would be appreciated. 任何帮助,将不胜感激。 Thanks. 谢谢。

Check out the below link. 查看以下链接。 It might be helpful. 这可能会有所帮助。 http://randomactsofcoding.blogspot.com/2008/09/migrating-to-jquery.html http://randomactsofcoding.blogspot.com/2008/09/migrating-to-jquery.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM