会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GetcharZp
菜到安详
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
15
16
17
18
19
20
21
22
23
···
65
下一页
2019年11月27日
微擎检验表单提交
摘要: 微擎检验表单提交 checksubmit('submit') $_W['ispost'] $_W['isajax'] if (checksubmit('submit')) { exit('表单提交了'); }if ($_W['ispost']) { exit('post 方式提交');}if ($_
阅读全文
posted @ 2019-11-27 09:44 GetcharZp
阅读(603)
评论(0)
推荐(0)
2019年11月26日
jquery 判断是否为空
摘要: jquery 判断是否为空 if(my_val == null || my_val == undefined || my_val==""){ console.log("我为空"); }
阅读全文
posted @ 2019-11-26 14:21 GetcharZp
阅读(1998)
评论(0)
推荐(0)
2019年11月21日
jquery 保留两位小数
摘要: jquery 通过 toFixed 保留两位小数 <script> var num = 12.21654; console.log(num.toFixed(2)) </script>
阅读全文
posted @ 2019-11-21 16:42 GetcharZp
阅读(5675)
评论(0)
推荐(0)
通过 position:fixed 实现底部导航
摘要: 通过 position:fixed 实现底部导航 HTML <div id="footer">页脚</div> CSS #footer { clear: both; height: 35px; width: 100%; background-color: gray; position: fixed;
阅读全文
posted @ 2019-11-21 14:41 GetcharZp
阅读(427)
评论(0)
推荐(0)
2019年11月20日
thinkphp在模板中使用php的函数
摘要: thinkphp在模板中使用php的函数 使用 {:函数名} 的形式 例如: // 获取 session 中存的值 {:session('admin.loginname')} // 输出当前日期 {:date('Y-m-d H:i:s', time())}
阅读全文
posted @ 2019-11-20 23:16 GetcharZp
阅读(545)
评论(0)
推荐(0)
thinkphp 5.1 去掉 .html 后缀
摘要: thinkphp 5.1 去掉 .html 后缀
阅读全文
posted @ 2019-11-20 23:06 GetcharZp
阅读(537)
评论(0)
推荐(0)
2019年11月16日
thinkphp 6.0 在 initialize 中重定向无效
摘要: thinkphp 6.0 在 initialize 中重定向无效 改用 header() 函数 实例: // header('location:/index.php/模块/控制器/方法'); header('location:/index.php/admin/login/login');
阅读全文
posted @ 2019-11-16 13:54 GetcharZp
阅读(582)
评论(0)
推荐(0)
使用 layUI做一些简单的表单验证
摘要: 使用 layUI做一些简单的表单验证 <form method="post" class="layui-form" > <input name="username" placeholder="用户名" type="text" lay-verify="required" class="layui-in
阅读全文
posted @ 2019-11-16 00:03 GetcharZp
阅读(324)
评论(0)
推荐(0)
2019年11月15日
thinkphp 获取前端传递过来的参数
摘要: thinkphp 获取前端传递过来的参数 use think\facade\Request; // 获取当前请求的name变量 Request::param('name'); // 获取当前请求的所有变量(经过过滤) Request::param(); // 获取当前请求未经过滤的所有变量 Requ
阅读全文
posted @ 2019-11-15 23:15 GetcharZp
阅读(1484)
评论(0)
推荐(0)
jquery 向页面追加HTML
摘要: jquery 向页面追加HTML append 函数 例子: <div id="append-test"></div> <script type="text/javascript"> $("#append-test").append("<span>Append</span>"); </script>
阅读全文
posted @ 2019-11-15 15:12 GetcharZp
阅读(4049)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
65
下一页
公告