粘贴图片使用
- 通过document.addEventListener('paste', function (event) {}) 改写原本的粘贴事件
- 查找粘贴版里的图片内容, 存在则上传图片到我自己的服务器
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片粘贴</title>
<script src="https://cdn.jsdelivr.分类目录归档:Frontend
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片粘贴</title>
<script src="https://cdn.jsdelivr.安装
npm install --save vue3-slide-verify
使用
<template>
<div>
<slide-verify ref="block" :slider-text="text" :accuracy="accuracy" @again="onAgain" @success="onSuccess"
@fail="onFail" @refresh=&xxx.vue
<template>
<notebookmain v-model:editor_content="editor_content_ref" v-model:editor_title="editor_title_ref"></notebookmain>
</template>
<script>@import url('https://fonts.googleapis.com/css?family=Short+Stack:400');
html {font-size: 100%;} /*16px*/
body {
background: white;
font-family: 'Short Stack', cursive;
font-weight: 400;
line-height: 1.75;
color: #000000;
}
p {margin-bottom: 1rem;}
h1, h2, h3, | Command | Windows/Linux | macOS |
|---|---|---|
| Bold | Control B | Cmd B |
| Italicize | Control I | Cmd I |
| Underline | Control U | Cmd U |
| Strikethrough | Control Shift X | Cmd Shift X |
| Highlight | Control Shift H | Cmd Shift H |
| Code | Control E | Cmd E |
| Apply normal text style | Control Alt 0 | Cmd |
|---|
<div>
<ul class="navul">
<li class="navli">
<a href="#">后端</a>
<ul>
<li><a>python</a></li>
<li><a>python</a></li在vue3 - 方式1
<template>
<div ref="chen_ref">我是标签</div>
</template>
<script>
import {ref} from '...vue'
export default{
setup(){
...
const chen_ref = ref(null)
const get_dom = () => {
在最外文件夹下创建.env.development文件
ENV = 'development'
VITE_BASE_URL='http://192.168.50.213:8000'
npm install axios
main.js
import { createApp } from 'vue'
import App from './App.vue'
import router from './router.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'
import './assets/ma