From d211ee3dbaf5ed0fb36b7792a35fae9f13da1cc3 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 16 Feb 2017 10:41:11 +0800 Subject: [PATCH] =?UTF-8?q?create=5Fjs=5Fbutton=E6=94=B9=E4=B8=BA=E5=A4=9A?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- form/form_button.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/form/form_button.php b/form/form_button.php index d661867..43e5ffc 100644 --- a/form/form_button.php +++ b/form/form_button.php @@ -53,8 +53,17 @@ } };//class UIButton - function create_js_button($text,$js_func) + //function create_js_button($text,$js_func,$style) + function create_js_button() { - echo ''; + $text=func_get_arg(0); + $js_func=func_get_arg(1); + + if(func_num_args()>2) + $style=func_get_arg(2); + else + $style="primary"; + + echo ''; } ?>