08 2020 档案

摘要:CSS样式上下、左右、上下左右缩写简写优化 一、记忆要领: 上(top) 左(left) 右(right) 下(bottom) 按照上面图形:顺时针排序 即为 margin: top right bottom left 二、举例说明 top right bottom left(值都不同) margi 阅读全文
posted @ 2020-08-13 11:19 碧果果 阅读(858) 评论(0) 推荐(0)
摘要:ps切图工具插件 下载网址:http://www.cutterman.cn/zh/cutterman 安装完插件,关闭ps,重新打开,窗口- 扩展,即可使用 阅读全文
posted @ 2020-08-13 08:37 碧果果 阅读(159) 评论(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 碧果果 阅读(759) 评论(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 碧果果 阅读(5027) 评论(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 碧果果 阅读(1259) 评论(0) 推荐(0)
摘要:// 验证手机号 function isPhoneNo(phone) { var pattern = /^1[34578]\d{9}$/; return pattern.test(phone); } 阅读全文
posted @ 2020-08-06 11:12 碧果果 阅读(320) 评论(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 碧果果 阅读(8357) 评论(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 碧果果 阅读(1583) 评论(0) 推荐(0)
摘要:参考地址:https://www.jb51.net/web/474799.html 当需要href进行传参,参数为中文时,会出现乱码问题,最简单的方法是: 传入的值首先用escape()进行加密,然后在取值页面用unescape()解密,亲测有效。 网上查了一下还有用urlencode进行加密,ur 阅读全文
posted @ 2020-08-04 10:55 碧果果 阅读(532) 评论(0) 推荐(0)
摘要:var initialpageNo = 1; $(".more").click(function() { initialpageNo += 1; }) 阅读全文
posted @ 2020-08-03 11:01 碧果果 阅读(821) 评论(0) 推荐(0)
摘要://点击图片跳转到b页面 并将参数data传到b页面<a href="urlb?data=1"><img src="1.jpg"/></a>//在b页面接收a页面传过来的参数<script>var data = window.location.href.split("?")[1].split("=" 阅读全文
posted @ 2020-08-01 15:17 碧果果 阅读(2362) 评论(0) 推荐(0)
摘要:var rexiao = data.data.rexiao; var rexiaoText = ''; for (var i = 0; i < rexiao.length; i++) { if (rexiao[i].price == undefined) { rexiao[i].price = '0 阅读全文
posted @ 2020-08-01 14:44 碧果果 阅读(854) 评论(0) 推荐(0)
摘要:ajax请求: $(document).ready(function() { $.ajax({ type: "POST", url: url + "appapi/index/indexlist", data: {}, dataType: "json", success: function(data) 阅读全文
posted @ 2020-08-01 11:17 碧果果 阅读(637) 评论(0) 推荐(0)