rt,用weui写的移动端页面如下:
此主题相关图片如下:qq截图20210809160817.jpg

点击查询可以查询可以显示 查询结果。
狐表中关键代码如下:
With wb.AddInputGroup("page1",Functions.Execute("CreateId"))
With .AddInputCell("inputBtn") '通过InputCell增加输入框
With .AddInput("chaxunIntput","text",1) '增加输入框,1表示显示在中间
If filter > "" Then
.Value = filter
End If
End With
.AddVcodeButton("vcodeBtn","查询",2).Attribute=" & pgname & "',1)"""
End With
End With
js代码如下:
function showFilterList(pgname,ye) {
var vcodeBtn = document.getElementById("vcodeBtn");
var filter = document.getElementById("chaxunIntput").value;
if (!filter){
vcodeBtn.href = "List.htm?page=" + pgname + "&ye=" + ye + "&filter="+filter;
}else{
vcodeBtn.href = "List.htm?page=" + pgname + "&ye=" + ye;
}
}
点击查询按钮后,控制台出现 :Cannot read property 'value' of null
请问我该怎么改?