分配标签
使用ppio.template.assignTags(JS)/ ppio.template.assign_tags(Python)为已有的 Template 构建分配一个或多个标签。
移除标签
使用ppio.template.removeTags(JS)/ ppio.template.remove_tags(Python)按名称从 Template 中移除一个或多个标签。
在构建时分配标签
你也可以在构建 Template 时通过ppio.template.build 的 tags 选项分配标签。
assignTags / assign_tags 会返回标签信息。removeTags / remove_tags 无返回值。两者都既接受单个标签字符串,也接受标签列表。