问题描述
|
这是我的jQuery:
if ($(\'div[data-sort= 23 ]\').length > 0) {
$(\'div[data-sort= 23 ]\').after(newdiv);
}
如果我要将数字23设置为等于n,这就是我所做的:
n = 23;
if ($(\'div[data-sort= n ]\').length > 0) {
$(\'div[data-sort= n ]\').after(newdiv);
}
但这是行不通的。谁能告诉我为什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)