gpt4 book ai didi

javascript - 如何在javascript中拆分字符串

转载 作者:数据小太阳 更新时间:2023-10-29 05:42:30 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How do I split this string with JavaScript?

如何在 javascript 中拆分字符串?

示例 str = "this is part 1 one wall this is part 2 "
现在我想将 str 分成两部分,用单词 wall

分隔

所以我希望输出是:

st1 ="this is part 1 "
st2 ="this is part 2 "

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com