字符串 按特征码截取

agefworld agefworld 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<tr>
<th valign="top">文章内容</th>
<td>
<textarea class="required" cols="40" id="topic_body" name="topic[body]" rows="20">
</textarea>
<div class="body_count">
<span id="topic_body_count_notice">你还可以输入10000个字符</span>
</div>
</td>
</tr>
<tr>
<th>标签</th>
<td>
<input id="topic_cached_tag_list" name="topic[cached_tag_list]" type="hidden" />
<div id="tags"></div>
<span class="red">最多添加5个标签,多个标签之间用","(英文逗号)分隔</span>
</td>
</tr>

例如上面字符串 特征码如果是 <tr> </tr> 需要把 每个 <tr> 内容写入数组 并输出 ,变化特征码 为 <th> 时 ,输出数组中为 th 内容
...全文
评论 6
收藏 已收藏
分享
返回顶部
agefworld
基础编程 21,889 成员 140,329 内容