摘要: <script> let temp = document.createElement("script"); temp.type = "text/javascript"; const callback = function(res){ alert(res); } temp.src = "http:// 阅读全文
posted @ 2020-12-22 20:32 `Duet` 阅读(50) 评论(0) 推荐(0) 编辑
摘要: function ajaxRequest(method, data, withCookie){ let xhr = new XMLHttpRequest(); if(withCookie true){ //允许发送Cookie xhr.withCredentials = true; } let re 阅读全文
posted @ 2020-12-22 18:10 `Duet` 阅读(75) 评论(0) 推荐(0) 编辑