标签

addTags("name值", "标题" [, "提示", "默认值", "额外css类"])

标识符:tags

参数 含义 类型
name name值 string
title 标题 string
tips 提示 string
default 默认值 string/array
extra_class 额外css类 string

举个栗子

return ZBuilder::make("form")
    ->addTags("tags", "标签")
    ->fetch();

默认值

多个默认值用英文逗号隔开,也可以是数组

return ZBuilder::make("form")
    ->addTags("tags", "标签", "", "javascript,css,html")
    ->fetch();

文章导航