d_IV中的未定义文本 [英] Undefind text in d_IV
本文介绍了d_IV中的未定义文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中,出现以下错误.我正在使用此代码在我的项目中显示菜单.
d_iv.text未定义.
以下是供您参考的代码:
Hi,
In my project I am getting the following error. I am using this code to display the menu in my project.
d_iv.text is undefined.
Here is the code for your reference:
var d_iv=_dmvi(id);
var d_lv=0;
while(d_iv.text.charAt(0)=="|")
{
d_lv++;d_iv.text=d_iv.text.substring(1);
}
预先感谢
Thanks in advance
推荐答案
好,很明显,无论dmvi(id)是什么,它都没有text属性.这就是错误的意思.您是否尝试过进行调试?警报(d_iv)找出它是怎么回事?
Well, it''s clear that whatever dmvi(id) is, it does not have a text property. That''s what the error means. Did you try doing some debugging ? How about alert(d_iv) to find out what it is ?
这篇关于d_IV中的未定义文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文