上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: $('.wh_item_date').eq(24).css('pointer-events', 'none') //选取第24个带有类名wh_item_date 的元素,dom对象转化成jq对象,可用jq的方法 $('.wh_item_date')[24... 阅读全文
posted @ 2021-01-20 10:54 neverthelessing 阅读(62) 评论(0) 推荐(0)
摘要: updated () { this.$nextTick(function () { $('.solid-line:last').css('display', 'none') }) }, 注意是在 父组件 里使用的,来操作子组件的元素... 阅读全文
posted @ 2021-01-18 17:13 neverthelessing 阅读(60) 评论(0) 推荐(0)
摘要: 需求如下:三个盒子,click改变图片、文字颜色、背景颜色。hover改变图片和文字颜色,两个事件的两张图片是不一样的。 其中click点击之后下面展示不同内容。 思路:data里的每个数据都有绑定一个id。 click绑定事件, @click="click... 阅读全文
posted @ 2021-01-15 09:34 neverthelessing 阅读(284) 评论(0) 推荐(0)
摘要: 比较推荐的办法: 1.display:flex。 如果想正常纵向排列,加上flex-direction:column; .parent{display:flex;justify-content:center;align-items:center;} 2.定位+... 阅读全文
posted @ 2021-01-08 14:35 neverthelessing 阅读(118) 评论(0) 推荐(0)
摘要: 高性能日历组件 https://github.com/zwhGithub/vue-calendar VUE周日历的实现 https://www.cnblogs.com/OIMM/p/13035873.html vscode保存自动换行https://... 阅读全文
posted @ 2021-01-08 10:10 neverthelessing 阅读(22) 评论(0) 推荐(0)
摘要: 1.安装XShell和Xftp。 2.安装nginx。Ubuntu服务器的话,直接 apt-get install nginx 3.域名解析。需要在你购买域名的地方找到解析域名,注意需要实名认证。 4.修改配置。 url访问的默认路径是安装的路径html文件夹... 阅读全文
posted @ 2020-12-27 17:25 neverthelessing 阅读(391) 评论(0) 推荐(0)
摘要: 题目: 给定一个大小为 n 的数组,找到其中的多数元素。多数元素是指在数组中出现次数大于 ⌊ n/2 ⌋ 的元素。 你可以假设数组是非空的,并且给定的数组总是存在多数元素。 输入: [2,2,1,1,1,2,2]输出: 2 知识点: 底角括号⌊⌋的意义为向下取... 阅读全文
posted @ 2020-12-27 09:51 neverthelessing 阅读(32) 评论(0) 推荐(0)
摘要: 题目:给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。 你的算法应该具有线性时间复杂度。 你可以不使用额外空间来实现吗? 输入: [4,1,2,1,2] 输出: 4 知识点: 异或运算符:数学符号⊕ ... 阅读全文
posted @ 2020-12-26 15:03 neverthelessing 阅读(43) 评论(0) 推荐(0)
摘要: 当路由发生变化的时候,就会执行里面的语句,to.path和this.$route.path都可以获取到当前的路由 watch: { $route(to, from) { console.log(to.path) console... 阅读全文
posted @ 2020-12-24 16:58 neverthelessing 阅读(76) 评论(0) 推荐(0)
摘要: 控制元素被控制元素 data() { return { sign: true, } }, created() {//添加全局点击事件,注意里面需要使用箭头函数 if (typeof window !== 'undefined... 阅读全文
posted @ 2020-12-23 17:03 neverthelessing 阅读(404) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 14 下一页