onShow() {
uni.setStorageSync("save", "0");
if(this.IsFirst == true)
{
this.IsFirst = false;
}
else
{
this.next();//条码框焦点
}
},
methods: {
next()
{
console.log(this.focusState);
this.focusState = false;
this.$nextTick(function() {
this.focusState = true;
});
},
黑咖 (作者)
谢谢回复,我原先按你这么写也试过不行。
2023-02-07 15:15