摘要: CSS样式上下、左右、上下左右缩写简写优化 一、记忆要领: 上(top) 左(left) 右(right) 下(bottom) 按照上面图形:顺时针排序 即为 margin: top right bottom left 二、举例说明 top right bottom left(值都不同) margi 阅读全文
posted @ 2020-08-13 11:19 碧果果 阅读(755) 评论(0) 推荐(0) 编辑
摘要: ps切图工具插件 下载网址:http://www.cutterman.cn/zh/cutterman 安装完插件,关闭ps,重新打开,窗口- 扩展,即可使用 阅读全文
posted @ 2020-08-13 08:37 碧果果 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 如果是html写的代码 就要引入 <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script> 然后在 <script> //初始化一下就可以了, let vConsole = new VConsole( 阅读全文
posted @ 2020-08-10 09:36 碧果果 阅读(633) 评论(0) 推荐(0) 编辑
摘要: $("#img_file").change(function() { jQuery.ajaxFileUpload({ console.log(888) }) <input type="file" name="file" id="img_file"> 不需要点击上传文件按钮,直接判断type="fil 阅读全文
posted @ 2020-08-06 18:16 碧果果 阅读(4848) 评论(0) 推荐(0) 编辑
摘要: <input type="file" id="img_file"> <button id="shangchuan" type="button">点击上传</button> //上传图片的ajax $("#shangchuan").click(function() { console.log(222) 阅读全文
posted @ 2020-08-06 17:05 碧果果 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: // 验证手机号 function isPhoneNo(phone) { var pattern = /^1[34578]\d{9}$/; return pattern.test(phone); } 阅读全文
posted @ 2020-08-06 11:12 碧果果 阅读(293) 评论(0) 推荐(0) 编辑
摘要: //本地缓存,记录token function set(type, value) { localStorage.setItem(type, value); } function get(type) { return localStorage.getItem(type); } 1、定义常量 var t 阅读全文
posted @ 2020-08-05 09:42 碧果果 阅读(8247) 评论(0) 推荐(1) 编辑
摘要: 参考地址:https://www.cnblogs.com/lihuahaiyan/p/6196824.html <input id="private_phone" name="private_phone" pattern="(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d 阅读全文
posted @ 2020-08-04 14:58 碧果果 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://www.jb51.net/web/474799.html 当需要href进行传参,参数为中文时,会出现乱码问题,最简单的方法是: 传入的值首先用escape()进行加密,然后在取值页面用unescape()解密,亲测有效。 网上查了一下还有用urlencode进行加密,ur 阅读全文
posted @ 2020-08-04 10:55 碧果果 阅读(465) 评论(0) 推荐(0) 编辑
摘要: var initialpageNo = 1; $(".more").click(function() { initialpageNo += 1; }) 阅读全文
posted @ 2020-08-03 11:01 碧果果 阅读(790) 评论(0) 推荐(0) 编辑