MCPcopy Create free account
hub / github.com/TruthHun/BookStack / _ajax

Function _ajax

static/word2md/word2md.js:43–63  ·  view source on GitHub ↗
(url, data, callback)

Source from the content-addressed store, hash-verified

41 })
42 };
43 var _ajax = function (url, data, callback) {
44 $.ajax({
45 "type": 'post',
46 "cache": false,
47 "url": url,
48 "data": data,
49 "dateType": "json",
50 "processData": false,
51 "contentType": false,
52 "mimeType": "multipart/form-data",
53 async: false,
54 success: function (ret) {
55 callback(JSON.parse(ret));
56 result = JSON.parse(ret).url;
57 },
58 error: function (err) {
59 console.log('请求失败')
60 }
61 })
62 return result;
63 };
64 function base64ToBlob(base64, mime) {
65 mime = mime || "";
66 const sliceSize = 1024;

Callers 1

word2md.jsFile · 0.85

Calls 2

parseMethod · 0.80
callbackFunction · 0.50

Tested by

no test coverage detected