问题描述
|
我需要以下if代码中的if语句,但如果存在,则无效。有什么办法可以做别的事情吗?
var ele = new Element(\'li\').adopt(
new Element(\'span.title\',{text:row.title}),new Element(\'span.subtitle\').adopt(
// Need this to work,but its invalid where it is atm
if(row.subtitle = 1)
{
new Element(\'img\',{src:\'images/subTitle.png\'})
}
),new Element(\'span.bold\',{text:row.bold}),);
ele.iject(...
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)