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)

上一篇 下一篇

猜你喜欢

热点阅读