随笔分类 -  前端

摘要:加上 autocomplete="off" 即可解决 阅读全文
posted @ 2021-02-28 20:22 Sea_wxx 阅读(533) 评论(0) 推荐(0) 编辑
摘要:node.js官网下载地址 https://nodejs.org/en/download/ 1、安装node.js,安装完node.js之后,npm也会自动安装 查询是否安装成功的命令: node -v npm -v 验证是否安装成功(出现版本号,安装成功) 2、全局安装脚手架工具vue-cli,命 阅读全文
posted @ 2019-10-10 09:33 Sea_wxx 阅读(154) 评论(0) 推荐(0) 编辑
摘要:data.map(x => {return x.dateStr}); dateStr 是json的属性 阅读全文
posted @ 2019-07-22 18:29 Sea_wxx 阅读(1606) 评论(0) 推荐(0) 编辑
摘要:// 去除收尾指定字符String.prototype.trim = function (char, type) { if (char) { if (type == 'left') { return this.replace(new RegExp('^\\'+char+'+', 'g'), ''); } else if (type =... 阅读全文
posted @ 2019-07-16 10:36 Sea_wxx 阅读(560) 评论(0) 推荐(0) 编辑
摘要:var index = parent.layer.getFrameIndex(window.name);parent.layer.close(index);关闭红框 阅读全文
posted @ 2019-01-11 17:36 Sea_wxx 阅读(1260) 评论(0) 推荐(0) 编辑
摘要://获取当前页var recodePage = $(".layui-laypage-skip .layui-input").val();//获取当前页条数var recodeLimit = $(".layui-laypage-limits").find("option:selected").val( 阅读全文
posted @ 2019-01-07 14:30 Sea_wxx 阅读(5715) 评论(0) 推荐(0) 编辑
摘要:for循环 {{# if (d.gender 0) { }} 女 {{# } else if(d.gender 1) { }} 男{{# } else { }} 人妖{{# } }} 阅读全文
posted @ 2018-12-25 14:59 Sea_wxx 阅读(2891) 评论(0) 推荐(1) 编辑
摘要:editor.txt.html('${model.content}'); 官方用单引号 但是回显的时候出错如图 解决方案 editor.txt.html(`${model.content}`);使用波浪号 `` 反单引号 正常显示 阅读全文
posted @ 2018-12-21 18:08 Sea_wxx 阅读(4170) 评论(1) 推荐(1) 编辑
摘要:初始化加载util 阅读全文
posted @ 2018-09-03 17:54 Sea_wxx 阅读(2503) 评论(0) 推荐(0) 编辑
摘要:var str=‘aaa’; var userId=JSON.stringify(str) ; var url = ‘/user/goEdit?userId=’ + userId ; 那么这个地址是 /user/goEdit?userId="3e29ccfff04440d48eb9dacf8b715 阅读全文
posted @ 2018-08-24 11:19 Sea_wxx 阅读(382) 评论(0) 推荐(0) 编辑
摘要:<%--引入高德地图--%><link rel="stylesheet" href="https://cache.amap.com/lbs/static/main1119.css"/><script type="text/javascript" src="https://webapi.amap.co 阅读全文
posted @ 2018-08-22 18:07 Sea_wxx 阅读(7468) 评论(0) 推荐(0) 编辑
摘要:在 最后需要处理的函数里面 写上 $(".layui-laypage-btn").click(); 即可原理 关闭子 iframe的同时,触发分页的确认按钮 从而可以获取到当前分页 阅读全文
posted @ 2018-08-16 15:21 Sea_wxx 阅读(1076) 评论(0) 推荐(0) 编辑
摘要:需要在body里面加上高度 阅读全文
posted @ 2018-07-23 11:43 Sea_wxx 阅读(451) 评论(0) 推荐(0) 编辑
摘要:type - 基本层类型 类型:Number,默认:0 layer提供了5种层类型。可传入的值有:0(信息框,默认)1(页面层)2(iframe层)3(加载层)4(tips层) layer.closeAll(); //关闭所有层 layer.closeAll(‘dialog’); //关闭信息框 l 阅读全文
posted @ 2018-06-05 16:23 Sea_wxx 阅读(7399) 评论(0) 推荐(0) 编辑
摘要://根据身份证取 省份,生日,性别 function getInfo() { //获取输入身份证号码 var ic = $("#txtCardID").val(); ic = checkId(ic); if (isNaN(ic)) return; var ic = String(ic); //获取出 阅读全文
posted @ 2017-12-05 17:12 Sea_wxx 阅读(335) 评论(0) 推荐(0) 编辑
摘要:var num="320324199202106666"; function checkCardId(num){ num = num.toUpperCase(); //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X。 if (!(/(^\d 阅读全文
posted @ 2017-12-05 15:54 Sea_wxx 阅读(194) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示