🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 表单按钮 > 图片演示: ![](https://img.kancloud.cn/d8/1b/d81b5843531d13114c70793bfba5d3ae_1641x433.png) > 说明: 设置表但按钮。可选值:`clear`清空、`reload`重载、`reset`重置、`search`搜索、`submit`提交、`back`返回。 方法:`button($button)` * 参数 **button** (必须) * 类型一:callable 闭包 设置切换栏的键值对,例: ```php button(function(){ return ["back","reset","submit"]; }); ``` * 类型二:array ```php button(["back","reset","submit"]); ``` * 类型三:...string ```php button("back","reset","submit"); ``` > 示例: 设置表单按钮包含:`back`返回、`reload`重载、`clear`清空、`reset`重置、`submit`提交、 * 方法一: ```php $builder=YF('general_example')->button(function(){ return ['back','reload','clear','reset','submit']; }) ``` * 方法二: ```php $builder=YF('general_example')->button(['back','reload','clear','reset','submit']) ``` * 方法三: ```php $builder=YF('general_example')->button('back','reload','clear','reset','submit') ```