字符串截取(做项目时的总结-待完善)

//确定时,处理隐藏弹出框,城市显示处理后的内容
cityChangeEvent(text) {
    let textSplit = text.split(' ');
    let textCity = textSplit[1];
    console.log(textSplit);
    this.setState({
        city_show: false,
        city: textCity
    })
}

猜你喜欢

转载自blog.csdn.net/boysky0015/article/details/78251075