Promise 在360瀏覽器兼容模式下無法運行
解決方案
npm install babel-polyfill --save
修改
entry: {
app: ['./node_modules/babel-polyfill/dist/polyfill.js','./src/main.js']
},
利用babel-polyfill 把promise語法轉換成ES5語法
解決方案
npm install babel-polyfill --save
修改
entry: {
app: ['./node_modules/babel-polyfill/dist/polyfill.js','./src/main.js']
},
利用babel-polyfill 把promise語法轉換成ES5語法
/* 下載表格 */ export const downloadFile = (url, fileName = '表格.xlsx') => { axios({ url: url, headers: {
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8">
截取location.search,轉換爲一個對象: function formatSearch(se){ if (typeof se !== "undefined") {
直接上代碼 <script type="text/javascript"> let array = [1, 22, 13, 7, 2, 224, 354, 5, 3, 6] //sort排序