摘要: 定义 export default { uname: "li", hello: function () { console.log("hello"); } } 引入 <body> <script type="module"> import * as m from "./app.js" import 阅读全文
posted @ 2021-08-01 20:22 贾正直 阅读(95) 评论(0) 推荐(0)
摘要: 问题 Access to script at 'file:///C:/Users/limakilo0000/OneDrive/limakilo2020.github.io/app.js' from origin 'null' has been blocked by CORS policy: Cros 阅读全文
posted @ 2021-08-01 20:06 贾正直 阅读(112) 评论(0) 推荐(0)
摘要: 基本用法 let p = new Promise(function (resovle, reject) { let data = "yes or not"; // resovle(data); reject(data); //调用then第二个方法 }) p.then(function (value 阅读全文
posted @ 2021-08-01 15:01 贾正直 阅读(30) 评论(0) 推荐(0)