VUE截取字符串split('/')[0]
2018-08-27 本文已影响92人
九四年的风
this.currentMarket.name = 'BTC/USDT';
this.currentMarket.name = this.currentMarket.name.split('/')
(2) ["BTC", "USDT"]
0:"BTC"
1:"USDT"
length:2
proto:Array(0)
this.currentMarket.name = 'BTC/USDT';
this.currentMarket.name = this.currentMarket.name.split('/')
(2) ["BTC", "USDT"]
0:"BTC"
1:"USDT"
length:2
proto:Array(0)