- 博客(8)
- 收藏
- 关注
原创 vue3之vue-quill插件回显问题:空格、有序列表
<template> <QuillEditor theme="snow" toolbar="full" v-model:content="textContent" contentType="html" /> <!-- 预览 加上ql-editor类选择器 --> <span v-html="textContent" :class="['quill', 'ql-editor']"></span></template>.
2021-12-27 10:04:51 1091 1
原创 Js之echarts图片下载
1、使用canvas的toDataURL方法const canvas = document.getElementsByTagName('canvas');const dom = Array.from(canvas)[6];const baseUrl = dom.toDataURL('image/png'); // 获取base64const link = document.createElement('a');link.href = baseUrl;link.setAttribute('do
2021-12-17 17:25:15 922
原创 模糊检索的新思路
参考文章:Creating Your First Vue 3 Project - A Vue Tutorial - LearnVue
2021-12-13 10:32:34 106
原创 vue3之生命周期钩子
Vue 3中,Options API (选项型)和 Composition API (组合型)生命周期钩子的图表:1、使用 Options API,生命周期钩子作为选项暴露在Vue 实例上。 不需要引入任何东西, 例如:<script> export default { mounted() { console.log('mounted!') }, updated() { console.log('updated!')
2021-12-08 14:23:23 868
原创 vue3之fix: [Vue warn]: Write operation failed: computed value is readonly.
<template> <div class="transparency tool-kit" @click.stop> <section class="contain"> <span>透明度</span> <a-slider v-model:value="slideVal" :tooltipVisible="false" @change="changeSlider" /> <span.
2021-12-07 17:54:54 5142
原创 vue3之watch多个源
watchAPI 与选项式 APIthis.$watch(以及相应的watch选项) 完全等效。watch需要侦听特定的数据源,并在单独的回调函数中执行副作用。默认情况下,它也是惰性的——即回调仅在侦听源发生变化时被调用。 与watchEffect相比,watch允许我们: 惰性地执行副作用; 更具体地说明应触发侦听器重新运行的状态; 访问被侦听状态的先前值和当前值。 api:watch(WatcherSource, Callback, [WatchOptio...
2021-12-07 10:50:50 5579
原创 js之dom event onload
Definition and UsageThe onload event occurs when an object has been loaded.onload is most often used within the <body> element to execute a script once a web page has completely loaded all content (including images, script files, CSS files, etc.)
2021-12-02 18:01:20 207
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人