1
4
2
938
22
3
方法一 numFormat(num) { var c = (num.toString().indexOf ('.') !== -1) ?...
1. 產(chǎn)生原因 其實(shí)很簡(jiǎn)單舶斧,因?yàn)閟tore里的數(shù)據(jù)是保存在運(yùn)行內(nèi)存中的,當(dāng)頁(yè)面刷新時(shí)添忘,頁(yè)面會(huì)重新加載vue實(shí)例,store里面的數(shù)據(jù)就會(huì)被重新賦...