vue 字符串此变数组
时间: 2023-08-19 07:10:01 浏览: 111
在Vue中,将字符串转换为数组可以使用split方法。例如,使用str.split(',')可以将以逗号分隔的字符串转换为数组。这样做不会改变原始字符串,而是返回一个新的数组。\[1\]
#### 引用[.reference_title]
- *1* [vue 字符串、数组之间的相互转换](https://blog.csdn.net/m0_58352785/article/details/125301352)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [判断路由(vue中路由前置守卫),字符串转换为数组,tinymce富文本插件](https://blog.csdn.net/weixin_44672169/article/details/116757699)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [vue学习—Convert HTML string to AST,如何将html字符串转换为ast数组结构](https://blog.csdn.net/weixin_33918114/article/details/88611579)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文