Sfoglia il codice sorgente

常错词数字判断

dev
jyt 2 anni fa
parent
commit
de5d4b492b
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +6
    -1
      pages/mine/details2.vue

+ 6
- 1
pages/mine/details2.vue Vedi File

@@ -221,7 +221,7 @@
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">常错词:</viwe>
<viwe class="tian-view-t3">
<input type="text" v-model="thewrongword" :disabled="true" class="tian-input" placeholder="请输入" />
<input type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" />
</viwe>
</view>
<view class="tian-view">
@@ -604,6 +604,7 @@
fdFlag2:null,
tap: true,
isSw:false,
isNum:false
};
},
computed: {
@@ -1564,6 +1565,10 @@
Oftenthewrongword() {
this.reswrongword = "";
this.isshow2 = true;
let reg = /^[0-9]+$/
if(reg.test(this.thewrongword)){
this.isNum = true
}
},
//加精华
Addtheessence() {


Caricamento…
Annulla
Salva