摘要:
1.将BgAnimation.html页面放入public目录中,如图: 2.BgAnimation.html页面中引用的js路径如图: 3.在需要引用html的vue组件中,通过ifram将BgAnimation.html引入至组件,如图: 阅读全文
摘要:
<template> <div> <input type="file" @change="handleFileChange" /> <button @click="modifyFile">Modify File</button> </div> </template> <script> export 阅读全文
摘要:
const previewImageRatio = previewImageWidth / previewImageHeight; // 原图宽高比例 let thumbnailHeight,thumbnailWidth;// 缩略图高和宽 if(previewImageRatio > 1){ th 阅读全文
摘要:
vue引入子页面时,页面加载父级页面时,会加载子页面所有js。 阅读全文
摘要:
下载gitnvm:通过安装包可以安装nvm进行版本切换nvm下载node:nvm install 14.21.3查看nvm下载的所有node:nvm list切换nvm版本:nvm use 14.21.3安装vue :npm install -g vue-cli (vue 2.9.6版本) 1.关于 阅读全文
摘要:
在小黑盒的调试页面中,当页面多次加载数据时,选项卡会导致浏览器页面卡死,目前没有找到原因。 阅读全文
摘要:
for(let i=0;i<selectedGroup.children.length;i++){ let group = selectedGroup.children[i]; delete shapeList[group.myShapeIndex];//删除指定下标元素,不改变shapeList长 阅读全文
摘要:
$ vue init webpack vuetext1 安装vue-cli,初始化vue项目的命令? Target directory exists. Continue? (Y/n) y 找到了vuetext1这个目录是否要继续? Target directory exists. Continue? 阅读全文
摘要:
什么是Jsonp?和json有什么关系?jsonp是怎么实现跨域访问的? 首先解释一下,为什么Ajax不能跨域访问,浏览器为什么限制跨域访问。 假设浏览器支持跨域访问,a56爆大奖在线娱乐们可以在A站通过XmlHttpRequest访问B站,这时候已经通过了B站的验证,得到了B站的Cookie,然后a56爆大奖在线娱乐们就可以随意访问 阅读全文