求助,关于自定义数据表查询
var table = new this.Table("info");var find = this.form.get("ht_id").getData();
find = "o.ht_id = '" + find + "'"
table.rowCountWhere( find , function(data){
var test = data.value;
}.bind(this), function(xhr){});
if( test == 1 ){
return true;
}else{
return false;
}
无法赋值test,以下是调试结果
[*]type: "success", data: {value: 1}, message: "", date: "2022-06-19 00:12:53", spent: 21, size: -1,…}
[*]count: 0
[*]data: {value: 1}
[*]date: "2022-06-19 00:12:53"
[*]message: ""
[*]position: 0
[*]size: -1
[*]spent: 21
[*]type: "success"
本帖最后由 论坛管理员 于 2022-6-20 10:33 编辑
您在这个位置增加一下调试信息,debugger看看是否有获取到数据,是否有执行
另外,这个默认是异步调用的,您改一下改成同步。
页:
[1]