11月 272019
 

这个是所有action的基类

这里面定义了,如果action类存在dialog方法,则使用swal显示结果,就是弹出对话框:

 

response的swal()方法就是设置

插件,这个插件定义的太简单,只有type和title,swal原本支持html的,但是,这里定义的太简单不支持html属性的设置

该response类还不能自定义插件

 

Action类中的response() 函数直接new了上面的response类,所以,注入的机会都没了:

好在该response方法是public的,而且也不长,适当的时候可以重写,使用一个自定义的扩展的reponse类来增强功能

 

action 的form表单应该在点击完提交按钮后,提交按钮变灰才行哦

 Posted by at 下午 4:54

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据