js canvas生成图片
// 用到的库 https://html2canvas.hertzen.com/ // div转图片 <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> <script type="text/javascript">
// 用到的库 https://html2canvas.hertzen.com/ // div转图片 <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> <script type="text/javascript">
// 打印图片 function printThisWindow(url) { let iframe = document.createElement('IFRAME') let doc = null iframe.setAttribute('class', 'print-iframe') iframe.setAttr
main.js中import store from './store' const app = new Vue({ store, ...App })store/index.js中import Vue from "vue"; import Vuex from "vuex"; import * as actions from "./
const XLSX = require("xlsx"); import Papa from "papaparse"; export const ChenUtil = { // tree treeUtil: { generateTreeData: function (data, nodeId, parentNodeKey) {
let uid = 1 $(function () { var lockReconnect = false;//避免重复连接 window.ws = null; //WebSocket的引用 var wsUrl = `host:9508?type=admin&uid=` + uid; layui.use(['