1.
function Devchange (value) {
$ ("#multipleLeft"). empty ();
Reportremote.getdeviceflow (value,function (data) {
if (data!=null && data.length > 0 && data! = "NoData") {
var recdata = eval ("(" + Data + ")");
for (i = 0,length = recdata.length;i<length; i++) {
$ ("#multipleLeft"). Append ("<option value = '" +recdata[i].ref_cuid+ " >" +recdata[i].ne_cn_name+ "< /option> ");
}
}
});
};
2.
function Devchange (value) {
$ ("#multipleLeft"). empty ();
Reportremote.getdeviceflow (value,function (data) {
if (data!=null && data.length > 0 && data! = "NoData") {
var recdata = eval ("(" + Data + ")");
for (i = 0,length = recdata.length;i<length; i++) {
$ ("#multipleLeft"). Append ("<option value = '" +recdata[i].ref_cuid+ ">" +recdata[i].ne_cn_name+ "< /option> ");
}
}
});
};
Today encountered in writing JS, in order to look beautiful, written 1, and then in the obtained value as a parameter call back to the background method is empty, has been debugging for 3 hours, to warning.
Small details Bug