js计算两点之间的距离和角度
计算距离const calculateDistance = (x1: number, y1: number, x2: number, y2: number) => { const dx = x2 - x1; const dy = y2 - y1; const distance = Math.s...
计算距离const calculateDistance = (x1: number, y1: number, x2: number, y2: number) => { const dx = x2 - x1; const dy = y2 - y1; const distance = Math.s...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> ...
import { BASE_API_URL, TOKEN_NAME } from '@/constant'; import { message } from 'ant-design-vue'; import axios fro...
{ "name": "01", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "dev": "parcel src/index.htm...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>使用Konva绘制圆环旋转动画</title> <script src="...
tooltip: { trigger: 'axis', formatter: function (params) { var res = `${params[0].name} <br/>` for (const item...
const customRequest = async (option: any) => { const formData = new FormData(); const type = option.file.type; ...
用来上传用户的头像,由于图片比较小,所以使用base64方式存储。 const beforeUpload = async (file: RcFile) => { const { size }...
普通函数: function add(a,b){return a+b};箭头函数:(a,b)=>a+b;这里就不详细说明箭头函数的简写规则,2者区别主要分为以下几个方面...