function __construct($action = '#', $method = 'post')
 {
     parent::__construct('form');
     $this->attr('method', $method);
     $this->attr('action', $action);
     $this->attr('onsubmit', 'ui_submit(this)');
     $this->appendText('<button type="submit" onclick="return ui_submit(this.parentElement);">' . TEXT_SUBMIT . '</button>');
     // return false 防止表单提交,则无法触发onsubmit,不能用form的onsubmit方法,无法阻止
     // 添加域容器 需要 label 和表单元素在宽屏幕上显示正常
     // $this->append('action',$action);
     // <div data-role="fieldcontain">
 }