随笔分类 -  Web 前端

摘要:1 <template> 2 <div id="main" class="main" v-on:scroll.passive="handleScroll"> 3 <div class="top"> 4 <span v-if="!isFixed" class="iconfont iconarrowle 阅读全文
posted @ 2021-03-30 15:37 Young汨 阅读(244) 评论(0) 推荐(0)
摘要:效果展示: 阅读全文
posted @ 2018-02-27 09:55 Young汨 阅读(392) 评论(0) 推荐(0)
摘要:需求如下: 审核操作的时候,选择“通过” 就不需要验证审核意见,但是选择的是“不通过”,那么需要进行审核意见验证 阅读全文
posted @ 2018-02-26 14:11 Young汨 阅读(947) 评论(0) 推荐(0)
摘要:原文:https://www.cnblogs.com/sivkun/p/7123963.html 解释: \b : 匹配单词边界,就是位于字符\w([a-zA-Z0-9_])和\W[^a-zA-Z0-9_]之间的位置,或者位于字符\w和字符串的开头或者结束之间的位置。 \B : 匹配非单词边界 通过 阅读全文
posted @ 2018-01-17 17:57 Young汨 阅读(349) 评论(0) 推荐(0)
摘要:首先,为什么我会提出这样的方式来进行操作呢?原因还是需求导致: 在做项目中,有这样一个需求,在进行网页中图片查看的时候,需要对图片的操作有支持旋转和缩放这些操作,看似这样的网上插件有很多,对!但是对于IE8 的支持都不行啊~~~因为虽然很多 插件可以在 IE8进行图片旋转,比如jquery的rota 阅读全文
posted @ 2017-12-26 13:57 Young汨 阅读(2553) 评论(1) 推荐(0)
摘要:1、prop方法获取、设置checked属性 当input控件checkbox设置了checked属性时,无论checked=”“或 checked=”checked”,$(obj).prop(“checked”)的结果都是true; 当input控件checkbox没设置checked属性时,$( 阅读全文
posted @ 2017-05-27 16:28 Young汨 阅读(404) 评论(0) 推荐(0)
摘要:Web开发者通常用lorem ipsum text来做占位符,占位符就是占着位置的一些文字,没有实际意义。 为什么叫lorem ipsum text呢? 是因为lorem ipsum是古罗马西塞罗谚语的前两个单词。 从公元16世纪开始lorem ipsum text就被当做占位符了,这种传统延续到了 阅读全文
posted @ 2017-02-17 14:17 Young汨 阅读(638) 评论(0) 推荐(0)
摘要:1 2 3 4 5 Filter 6 7 23 24 25 26 27 {{1288323623006 | date:'yyyy-MM-dd HH:mm:ss Z'}} 28 {{'young' | myFilter}} 29 30 31 32 46 47 48 阅读全文
posted @ 2017-02-10 15:13 Young汨 阅读(481) 评论(0) 推荐(0)
摘要:1 2 3 4 5 Service 6 7 8 9 10 11 Get 12 13 14 {{user.id}} 15 {{user.name}} 16 {{user.age}} 17 18 19 20 21 22 93 94 95 阅读全文
posted @ 2017-02-10 15:03 Young汨 阅读(381) 评论(0) 推荐(0)
摘要:index.html book.html: 注意: 阅读全文
posted @ 2017-02-10 13:53 Young汨 阅读(2157) 评论(0) 推荐(1)
摘要:更好的方法:闭合浮动 阅读全文
posted @ 2016-12-02 14:38 Young汨 阅读(289) 评论(0) 推荐(0)
摘要:首先这两个文件是必须要引用的,还有就是引用 jQuery 文件就不说了: <link href="/css/plugins/jsTree/style.min.css" rel="stylesheet" /> <script src="/js/plugins/jsTree/jstree.min.js" 阅读全文
posted @ 2016-02-29 16:55 Young汨 阅读(30926) 评论(3) 推荐(1)
摘要:节点属性在文档对象模型 (DOM) 中,每个节点都是一个对象。DOM 节点有三个重要的属性 :1. nodeName : 节点的名称2. nodeValue :节点的值3. nodeType :节点的类型一、nodeName 属性: 节点的名称,是只读的。1. 元素节点的 nodeName 与标签名... 阅读全文
posted @ 2016-01-20 17:21 Young汨 阅读(1021) 评论(0) 推荐(0)
摘要:sort()方法使数组中的元素按照一定的顺序排列。 语法: arrayObject.sort(方法函数) 参数说明: 1.如果不指定,则按unicode码顺序排列。 2.如果指定,则按所指定的排序方法排序。 注意:该函数要比较两个值,然后返回一个用于说明这两个值的相对顺序的数字。比较... 阅读全文
posted @ 2016-01-20 17:02 Young汨 阅读(227) 评论(0) 推荐(0)
摘要:时间格式化的方法: 1 Date.prototype.Format = function (fmt) { //author: meizz 2 var o = { 3 "M+": this.getMonth() + 1, //月份 ... 阅读全文
posted @ 2016-01-20 16:45 Young汨 阅读(2642) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 75 76 77 78 79 80 81 82 83 84 85 86 87 88 测试效果图: 阅读全文
posted @ 2015-11-19 15:31 Young汨 阅读(252) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 91 92 120 121 122 123 124 125 126 Start/Restart Animation127 128 129 130 ... 阅读全文
posted @ 2015-10-19 10:12 Young汨 阅读(880) 评论(0) 推荐(0)
摘要:在使用 Jquery 的方法的验证并且修改 原Form 表单的提交方式的时候,需要引用的文件有 如下的代码为页面添加了相应的验证和修改了提示信息,并且重写了表单提交的方法和添加自定义的身份证验证方法jQuery.validator.addMethod("isIDCard", ... 阅读全文
posted @ 2015-09-08 13:42 Young汨 阅读(443) 评论(0) 推荐(0)
摘要:效果:页码分页的前端写法 阅读全文
posted @ 2015-07-01 14:39 Young汨 阅读(2767) 评论(0) 推荐(0)
摘要:1.富文本容易出现 span 标签干扰,使用前先替换div2.find("span:eq(0)").html(item.Comment.replace('span', 'div')); 阅读全文
posted @ 2015-06-26 15:33 Young汨 阅读(236) 评论(0) 推荐(0)