yihaocompany / blog

The Blog By Thinkphp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yihao Blog 博客源码开源共享

  • 作者博客地址 欢迎加入群交流:515786911 使用源码后请在您的网站地址链接或说明来源【可选】

layui 中的form使用

       <link rel="stylesheet" href="/src/admin/layui/css/layui.css">
       <script src="https://apps.bdimg.com/libs/jquery/1.8.0/jquery.min.js"></script>
       <script src="/src/admin/layui/layui.js"></script>
       <script>
           layui.use('form', function () {
               var form = layui.form();
               form.on('switch(choice)', function(data){
                   var id=data.elem.value;
                   var homead=0;
                   if(data.elem.checked){
                       homead=1;
                   }
                   var postdata={'id':id,'homead':homead};
                   $.post("/admin/article/homead.html",postdata,function(res){
                       if(res.status){
                           layer.msg(res.info, {time: 2000});
                       }else{
                           layer.msg(res.info, {time: 2000});
                       }
                   },'json');
                   return false;
               });
           });
       </script>

安装验证模块

composer require topthink/think-captcha

分词功能加入

http://www.xunsearch.com/

修改了菜单路由及404

About

The Blog By Thinkphp

License:Apache License 2.0


Languages

Language:PHP 85.3%Language:CSS 9.4%Language:JavaScript 2.9%Language:Smarty 1.6%Language:Hack 0.7%Language:PLpgSQL 0.2%Language:HTML 0.1%