摘要: function ****ysisTime(time) { const _d1 = new Date(); const dateDiffer = Math.abs(_d1.getTime() - time); //准换年 const year = Math.floor(dateDiffer / (1 阅读全文
posted @ 2022-11-10 13:06 默永 阅读(22) 评论(0) 推荐(0) 编辑
摘要: (网页跳转到指定位置)有时候,我们想阅读页面中某段精彩的内容,但由于页面太长,用户需要自己滚动页面,查找起来非常麻烦 ,这样体验非常不好,所以我们要实现点击某段文字或者图片跳转到页面指定位置,方便用户的阅读。 方法一 利用 id 为标记的 锚点 这里作为锚点的标签可以是任意元素。 <p id="ti 阅读全文
posted @ 2022-11-10 09:15 默永 阅读(271) 评论(0) 推荐(0) 编辑