uni-app nodesRef.fields(object,callback)在app端获取不到input的value的值

hrirmatl  于 3个月前  发布在  uni-app
关注(0)|答案(2)|浏览(40)

这个问题已经好几年没解决了。nodesRef.fields(object,callback)在app端获取不到input的value的值
var K = { id:true,
context:true,
dataset: true,
size: true,
rect: true,
computedStyle: ["fontFamily", "fontSize", "fontStyle", "fontWeight"],
node: true,
properties: ["checked", "color", "disabled", "icon", "mode", "placeholder", "placeholderStyle",
"placeholderClass", "plain", "src", "style", "type", "value" ,"data-class"
]
};
uni.createSelectorQuery().selectAll("#banner")
.fields(K, data => {
console.log("得到节点信息" + JSON.stringify(data));
}).exec();

相关问题