这个问题已经好几年没解决了。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();
2条答案
按热度按时间mzillmmw1#
https://ask.dcloud.net.cn/question/163535
k10s72fa2#
能验证一下么,我这边都试了,都不好使