2020年4月23日
摘要: 1.输入正整数keyup事件 调用方法前阻止事件冒泡 function setPositiveNumber (input) { if(input.value.length == 1) { input.value = input.value.replace(/[^1-9]/g, ''); } else 阅读全文
posted @ 2020-04-23 10:02 猫尾草 阅读(153) 评论(0) 推荐(0) 编辑
  2020年3月26日
摘要: 实现列表滚动的插件事例。 * { margin: 0; padding: 0; } .panel { overflow: hidden; margin: 100px auto; padding: 0 30px; width: 300px; height: 200px; border: 1px sol 阅读全文
posted @ 2020-03-26 14:41 猫尾草 阅读(180) 评论(0) 推荐(0) 编辑
  2020年2月25日
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-02-25 18:30 猫尾草 阅读(170) 评论(0) 推荐(0) 编辑
  2020年1月2日
摘要: 1 $.ajax({ 2 url: CONTEXTPATH + ..., 3 data: JSON.stringify(data), 4 dataType: 'json', 5 contentType: 'application/json; charset=UTF-8', 6 type: 'post 阅读全文
posted @ 2020-01-02 09:06 猫尾草 阅读(1159) 评论(0) 推荐(0) 编辑
  2019年12月31日
摘要: 1.css文件中引入外部字体 @font-face { font-family: 'hwhp'; src: url('../font/hwhp.ttf') format('truetype'), url('../font/hwhp.eot'), url('../font/hwhp.woff') fo 阅读全文
posted @ 2019-12-31 11:35 猫尾草 阅读(3056) 评论(0) 推荐(0) 编辑
  2019年11月28日
摘要: define([ 'jquery', 'echarts' ], function($, echarts) { var chartModel = { chartArr: [], // x y轴颠倒图表默认配置项 chartReverseOpt: { tooltip : { trigger: 'axis 阅读全文
posted @ 2019-11-28 10:43 猫尾草 阅读(311) 评论(0) 推荐(0) 编辑
  2019年11月19日
摘要: 1.输入整数 keyUpVal: function (e) { var input = $(e.currentTarget).get(0); input.value = input.value.replace(/[^\d]/g, ''); // 清除“数字”和“.”以外的字符 input.value 阅读全文
posted @ 2019-11-19 16:03 猫尾草 阅读(477) 评论(0) 推荐(0) 编辑
  2019年11月5日
摘要: 通过jQuery和art-template.js实现日历功能。 css如下: .clearfix { display: block; zoom: 1; } .clearfix:after { content: " "; display: block; font-size: 0; height: 0; 阅读全文
posted @ 2019-11-05 14:00 猫尾草 阅读(195) 评论(0) 推荐(0) 编辑
  2019年8月29日
摘要: 1.富文本编辑器宽度自适应设置 初始化富文本编辑器是 设置属性 2.富文本编辑器取消自动保存功能 在ueditor.all.js中找到 UE.registerUI('autosave', function(editor) { 这个方法并注释掉。 阅读全文
posted @ 2019-08-29 17:28 猫尾草 阅读(587) 评论(0) 推荐(0) 编辑
  2019年8月16日
摘要: 1.已存储用户信息为例 在store文件下的index.js中写入 2.在页面中设置用户信息 3.页面中获取用户信息 直接通过this.userInfo得到用户信息 阅读全文
posted @ 2019-08-16 09:29 猫尾草 阅读(188) 评论(0) 推荐(0) 编辑