2020年9月5日

引入ico图标

摘要: 代码: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> 注意: 1. 她(它)不是iconfont字体哦。2. 位置是放到 head 标签中间。3. 后面的type="image/x-icon" 属性可以省略。4. 阅读全文

posted @ 2020-09-05 15:26 蔚l来 阅读(273) 评论(0) 推荐(0) 编辑

2020年9月2日

laydate的常规使用,设置日期最大不能超过当前日期

摘要: <script> layui.use('laydate', function(){ var laydate = layui.laydate; //执行一个laydate实例 laydate.render({ elem: '#birthDate', //指定元素 max: getNowFormatDa 阅读全文

posted @ 2020-09-02 13:55 蔚l来 阅读(1360) 评论(0) 推荐(0) 编辑

关于SQL时间类型的模糊查询

摘要: 1.Convert转成String,在用Like查询。select * from table1 where convert(varchar,date,120) like '2006-04-01%' 2.Betweenselect * from table1 where time between '2 阅读全文

posted @ 2020-09-02 11:42 蔚l来 阅读(1182) 评论(0) 推荐(0) 编辑

2020年8月31日

checkbox复选框的post传值

摘要: <html xmlns="http://www.jb51.net/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>php获取 checkbox复选框值的 阅读全文

posted @ 2020-08-31 12:14 蔚l来 阅读(1420) 评论(0) 推荐(0) 编辑

2020年8月28日

layui表单验证

摘要: 在表单元素上加上 lay-verify="" 属性值 <input type="text" lay-verify="email"> 还同时支持多条规则的验证,如下: <input type="text" lay-verify="required|phone|number"> 阅读全文

posted @ 2020-08-28 09:38 蔚l来 阅读(213) 评论(0) 推荐(0) 编辑

2020年8月26日

访问控制

摘要: public(公有):公有的类成员可以在任何地方被访问。 protected(受保护):受保护的类成员则可以被其自身以及其子类访问。 private(私有):私有的类成员则只能被其定义所在的类访问。 属性的访问控制: 类属性必须定义为公有,受保护,私有之一。如果用 var 定义,则被视为公有。 方法 阅读全文

posted @ 2020-08-26 14:40 蔚l来 阅读(189) 评论(0) 推荐(0) 编辑

2020年8月24日

解决UEditor 编辑器遮挡下拉列表等控件

摘要: var ue = UE.getEditor('container',{ zIndex:'0' //设置层级关系 }); 阅读全文

posted @ 2020-08-24 15:52 蔚l来 阅读(347) 评论(0) 推荐(0) 编辑

图片上传

摘要: <?php $arr=[]; if ($_FILES) { if ($_FILES['file']['type'] == 'file/png' || $_FILES['file']['type'] == 'file/jpg' || $_FILES['file']['type'] == 'file/j 阅读全文

posted @ 2020-08-24 15:47 蔚l来 阅读(99) 评论(0) 推荐(0) 编辑

2020年8月19日

$_REQUEST,$_GET 与$_POST

摘要: $_REQUEST 用于收集HTML表单提交的数据。(post/get) $_POST 被广泛应用于收集表单数据,在HTML form标签的指定该属性:"method="post"。无长度限制 $_GET 同样被广泛应用于收集表单数据,在HTML form标签的指定该属性:"method="get" 阅读全文

posted @ 2020-08-19 11:06 蔚l来 阅读(174) 评论(0) 推荐(0) 编辑

2020年8月17日

php 取整函数

摘要: php中的几种四舍五入取整、向上取整、向下取整、小数截取方法 echo intval(4.5);echo "<br />";//直接取整,舍弃小数保留整数 echo round(4.5);echo "<br />";//四舍五入取整 echo ceil(4.5);echo "<br />";//有小 阅读全文

posted @ 2020-08-17 10:25 蔚l来 阅读(155) 评论(0) 推荐(0) 编辑

导航