随笔分类 -  javaScript

vue tinymce Cannot read properties of undefined (reading ‘open‘)
摘要:目录 背景解决方案参考 背景 在页面直接使用tinymce <Editor>标签会报错 解决方案 先用v-if把代码包裹起来。 // displayEditContainer默认值是0 <span v-if="displayEditContainer"> <Editor placeholder="x 阅读全文

posted @ 2023-02-11 20:30 愤怒的苹果ext 阅读(90) 评论(0) 推荐(0) 编辑

Cannot set headers after they are sent to the client nuxt
摘要:目录 背景解决方案方案一方案二 背景 使用axios在created时请求2个接口,代码如下。 然后报错如下: ERROR Cannot set headers after they are sent to the client 14:54:29 at new NodeError (node:int 阅读全文

posted @ 2023-01-27 15:07 愤怒的苹果ext 阅读(55) 评论(0) 推荐(0) 编辑

nuxt-link跳转到当前页面,不同query参数值不加载
摘要:目录 背景解决方案参考 背景 例如地址是这样的http://localhost:81/xxx,现在加上参数http://localhost:81/?act=0。默认情况下是不会加载的。 解决方案 使用watchQuery。文档地址:https://nuxtjs.org/docs/components 阅读全文

posted @ 2023-01-09 19:30 愤怒的苹果ext 阅读(155) 评论(0) 推荐(0) 编辑

小心pointer-events: none;
摘要:我发现点击事件不生效。 一开始我以为是swiper的问题,后面发现是css属性pointer-events: none;阻止了。 去掉后就可以点击了。 阅读全文

posted @ 2023-01-03 19:30 愤怒的苹果ext 阅读(18) 评论(0) 推荐(0) 编辑

Vue Swiper横向循环焦点轮播
摘要:目录 效果代码 效果 Swiper横向循环焦点,并且有层叠的效果。如下图所示。 代码 Html <div class="home_carousel"> <div ref="swiperRef" class="swiper-container swiper-container-horizontal"> 阅读全文

posted @ 2022-12-30 20:45 愤怒的苹果ext 阅读(232) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示