html--css --js
文章平均质量分 57
前端
candy_no_sweets
这个作者很懒,什么都没留下…
展开
-
搜索字符串
match方法能够找出所有匹配的子字符串,并以数组的形式返回。 如果没有找到匹配字符,则返回 null,而不是空数组。 var str="requestPayment:fail [payment微信:-3]User canceled" document.write(str.match(/-3/)) // -3 document.write(str.match(/-2/)) // null str.includes(’’) 有返回true,没有返回false。也不用为记住-1而发愁原创 2021-08-04 12:00:13 · 173 阅读 · 0 评论 -
css基础知识
CSS3 属性整理 border属性 border-radius 圆角 ![](https://img-blog.csdn.net/20170106134147427?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbHl6bmljZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEasv border-radius: 50%; 变成圆 border-radiu原创 2020-10-19 14:38:50 · 2170 阅读 · 0 评论 -
锚点---点击按钮跳到页面的指定的某个位置.js
点击p跳到div的位置 $(".p").click(function() { $("html, body").animate({ scrollTop: $(".div").offset().top }, {duration: 500,easing: "swing"}); return false; });原创 2020-10-19 10:48:17 · 847 阅读 · 0 评论