假如字符串是這樣的var str='<p>ddddddd</p><p>ddddddd</p><section>232323232323</section>砝在<section>ddd</section>'想得到這樣的結果['<p>ddddddd</p><p>ddddddd</p>', '<section>232323232323</section>', '砝在', '<section>ddd</section>']就是以<section></section>分。
利用正則表達式拆分字符串
繁華開滿天機
2019-02-05 15:39:14