【发布时间】:2015-10-16 08:38:21
【问题描述】:
在我的段落中,我必须得到括号 []
之间的字符串即)
<p id="mytext">
this is my paragraph but I have [code1] and there is another bracket [code2].
</p>
在我的 JavaScript 上,我遍历了所有字符串并仅获取数组的结果 “code1”和“code2”
提前致谢!
【问题讨论】:
-
那么你尝试了什么?
标签: javascript