我编程如下:jQuery的添加if语句发布功能
$.post("helmscript.php", { voorhoofdomtrek: voorhoofdomtrek, leverancier: leverancier, categorie:categorie
}, func......
不过,我需要一个if语句像这样的职位功能:
$.post("helmscript.php", { if (variableX == true) {voorhoofdomtrek: voorhoofdomtrek,} leverancier: leverancier, categorie:categorie
}, func......
但是一个如果在后声明功能不起作用。你们能帮忙吗?
为什么不在''.post'方法之前设置您的检查? –
请说明你真正想做什么,阻止你在帖子外面做这件事。 – MisterMiyagi