mockjs@1.1.0.patch 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. diff --git a/dist/mock.js b/dist/mock.js
  2. index 35d5b9af3eff34324656879705dcb81470fc9697..3e6a52e0fbfdd39d3aaf1592ffd19ecde33320f3 100644
  3. --- a/dist/mock.js
  4. +++ b/dist/mock.js
  5. @@ -126,17 +126,17 @@ return /******/ (function(modules) { // webpackBootstrap
  6. /* 1 */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. - /*
  9. + /*
  10. ## Handler
  11. 处理数据模板。
  12. -
  13. +
  14. * Handler.gen( template, name?, context? )
  15. 入口方法。
  16. * Data Template Definition, DTD
  17. -
  18. +
  19. 处理数据模板定义。
  20. * Handler.array( options )
  21. @@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
  22. * Handler.string( options )
  23. * Handler.function( options )
  24. * Handler.regexp( options )
  25. -
  26. +
  27. 处理路径(相对和绝对)。
  28. * Handler.getValueByKeyPath( key, options )
  29. @@ -177,7 +177,7 @@ return /******/ (function(modules) { // webpackBootstrap
  30. Handle.gen(template, name, options)
  31. context
  32. - currentContext, templateCurrentContext,
  33. + currentContext, templateCurrentContext,
  34. path, templatePath
  35. root, templateRoot
  36. */
  37. @@ -456,7 +456,7 @@ return /******/ (function(modules) { // webpackBootstrap
  38. phed = Handler.placeholder(ph, options.context.currentContext, options.context.templateCurrentContext, options)
  39. // 只有一个占位符,并且没有其他字符
  40. - if (placeholders.length === 1 && ph === result && typeof phed !== typeof result) { //
  41. + if (placeholders.length === 1 && ph === result && typeof phed !== typeof result) { //
  42. result = phed
  43. break
  44. @@ -627,7 +627,7 @@ return /******/ (function(modules) { // webpackBootstrap
  45. }
  46. // 引用的值已经计算好
  47. if (currentContext && (key in currentContext)) return currentContext[key]
  48. -
  49. +
  50. // 尚未计算,递归引用数据模板中的属性
  51. if (templateCurrentContext &&
  52. (typeof templateCurrentContext === 'object') &&
  53. @@ -816,13 +816,13 @@ return /******/ (function(modules) { // webpackBootstrap
  54. var tpl = Mock.heredoc(function() {
  55. /*!
  56. {{email}}{{age}}
  57. - <!-- Mock {
  58. + <!-- Mock {
  59. email: '@EMAIL',
  60. age: '@INT(1,100)'
  61. } -->
  62. *\/
  63. })
  64. -
  65. +
  66. **相关阅读**
  67. * [Creating multiline strings in JavaScript](http://stackoverflow.com/questions/805107/creating-multiline-strings-in-javascript)、
  68. */
  69. @@ -850,7 +850,7 @@ return /******/ (function(modules) { // webpackBootstrap
  70. 解析数据模板(属性名部分)。
  71. * Parser.parse( name )
  72. -
  73. +
  74. ```json
  75. {
  76. parameters: [ name, inc, range, decimal ],
  77. @@ -922,7 +922,7 @@ return /******/ (function(modules) { // webpackBootstrap
  78. /*
  79. ## Mock.Random
  80. -
  81. +
  82. 工具类,用于生成各种随机数据。
  83. */
  84. @@ -1251,7 +1251,7 @@ return /******/ (function(modules) { // webpackBootstrap
  85. 替代图片源
  86. http://fpoimg.com/
  87. - 参考自
  88. + 参考自
  89. http://rensanning.iteye.com/blog/1933310
  90. http://code.tutsplus.com/articles/the-top-8-placeholders-for-web-designers--net-19485
  91. */
  92. @@ -1541,7 +1541,7 @@ return /******/ (function(modules) { // webpackBootstrap
  93. var bg_colour = Math.floor(Math.random() * 16777215).toString(16);
  94. bg_colour = "#" + ("000000" + bg_colour).slice(-6);
  95. document.bgColor = bg_colour;
  96. -
  97. +
  98. http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/
  99. Creating random colors is actually more difficult than it seems. The randomness itself is easy, but aesthetically pleasing randomness is more difficult.
  100. https://github.com/devongovett/color-generator
  101. @@ -1561,7 +1561,7 @@ return /******/ (function(modules) { // webpackBootstrap
  102. http://tool.c7sky.com/webcolor
  103. 网页设计常用色彩搭配表
  104. -
  105. +
  106. https://github.com/One-com/one-color
  107. An OO-based JavaScript color parser/computation toolkit with support for RGB, HSV, HSL, CMYK, and alpha channels.
  108. API 很赞
  109. @@ -1593,7 +1593,7 @@ return /******/ (function(modules) { // webpackBootstrap
  110. color += letters[Math.floor(Math.random() * 16)]
  111. }
  112. return color
  113. -
  114. +
  115. // 随机生成一个无脑的颜色,格式为 '#RRGGBB'。
  116. // _brainlessColor()
  117. var color = Math.floor(
  118. @@ -1959,7 +1959,7 @@ return /******/ (function(modules) { // webpackBootstrap
  119. }
  120. return result.join(' ')
  121. },
  122. - //
  123. + //
  124. cparagraph: function(min, max) {
  125. var len = range(3, 7, min, max)
  126. var result = []
  127. @@ -2282,17 +2282,17 @@ return /******/ (function(modules) { // webpackBootstrap
  128. 随机生成一个 URL。
  129. [URL 规范](http://www.w3.org/Addressing/URL/url-spec.txt)
  130. - http Hypertext Transfer Protocol
  131. - ftp File Transfer protocol
  132. - gopher The Gopher protocol
  133. - mailto Electronic mail address
  134. - mid Message identifiers for electronic mail
  135. - cid Content identifiers for MIME body part
  136. - news Usenet news
  137. - nntp Usenet news for local NNTP access only
  138. - prospero Access using the prospero protocols
  139. + http Hypertext Transfer Protocol
  140. + ftp File Transfer protocol
  141. + gopher The Gopher protocol
  142. + mailto Electronic mail address
  143. + mid Message identifiers for electronic mail
  144. + cid Content identifiers for MIME body part
  145. + news Usenet news
  146. + nntp Usenet news for local NNTP access only
  147. + prospero Access using the prospero protocols
  148. telnet rlogin tn3270 Reference to interactive sessions
  149. - wais Wide Area Information Servers
  150. + wais Wide Area Information Servers
  151. */
  152. url: function(protocol, host) {
  153. return (protocol || this.protocol()) + '://' + // protocol?
  154. @@ -2422,9 +2422,9 @@ return /******/ (function(modules) { // webpackBootstrap
  155. 西南 重庆市 四川省 贵州省 云南省 西藏自治区
  156. 西北 陕西省 甘肃省 青海省 宁夏回族自治区 新疆维吾尔自治区
  157. 港澳台 香港特别行政区 澳门特别行政区 台湾省
  158. -
  159. +
  160. **排序**
  161. -
  162. +
  163. ```js
  164. var map = {}
  165. _.each(_.keys(REGIONS),function(id){
  166. @@ -6527,7 +6527,7 @@ return /******/ (function(modules) { // webpackBootstrap
  167. "0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" /
  168. "a" / "b" / "c" / "d" / "e" / "f" /
  169. "A" / "B" / "C" / "D" / "E" / "F"
  170. -
  171. +
  172. https://github.com/victorquinn/chancejs/blob/develop/chance.js#L1349
  173. */
  174. guid: function() {
  175. @@ -6629,7 +6629,7 @@ return /******/ (function(modules) { // webpackBootstrap
  176. }
  177. function CaptureGroup(n) {
  178. - Group.call(this, "capture-group"), this.index = cgs[this.offset] || (cgs[this.offset] = index++),
  179. + Group.call(this, "capture-group"), this.index = cgs[this.offset] || (cgs[this.offset] = index++),
  180. this.body = n;
  181. }
  182. @@ -6711,7 +6711,7 @@ return /******/ (function(modules) { // webpackBootstrap
  183. }
  184. return r = l ? '"' + u(l) + '"' : "end of input", "Expected " + t + " but " + r + " found.";
  185. }
  186. - this.expected = n, this.found = l, this.offset = u, this.line = t, this.column = r,
  187. + this.expected = n, this.found = l, this.offset = u, this.line = t, this.column = r,
  188. this.name = "SyntaxError", this.message = e(n, l);
  189. }
  190. function u(n) {
  191. @@ -6724,8 +6724,8 @@ return /******/ (function(modules) { // webpackBootstrap
  192. function r(l) {
  193. function u(l, u, t) {
  194. var r, e;
  195. - for (r = u; t > r; r++) e = n.charAt(r), "\n" === e ? (l.seenCR || l.line++, l.column = 1,
  196. - l.seenCR = !1) : "\r" === e || "\u2028" === e || "\u2029" === e ? (l.line++, l.column = 1,
  197. + for (r = u; t > r; r++) e = n.charAt(r), "\n" === e ? (l.seenCR || l.line++, l.column = 1,
  198. + l.seenCR = !1) : "\r" === e || "\u2028" === e || "\u2029" === e ? (l.line++, l.column = 1,
  199. l.seenCR = !0) : (l.column++, l.seenCR = !1);
  200. }
  201. return Mt !== l && (Mt > l && (Mt = 0, Dt = {
  202. @@ -6743,19 +6743,19 @@ return /******/ (function(modules) { // webpackBootstrap
  203. }
  204. function c() {
  205. var l, u, t, r, o;
  206. - return l = qt, u = i(), null !== u ? (t = qt, 124 === n.charCodeAt(qt) ? (r = fl,
  207. - qt++) : (r = null, 0 === Wt && e(sl)), null !== r ? (o = c(), null !== o ? (r = [ r, o ],
  208. - t = r) : (qt = t, t = il)) : (qt = t, t = il), null === t && (t = al), null !== t ? (Lt = l,
  209. - u = hl(u, t), null === u ? (qt = l, l = u) : l = u) : (qt = l, l = il)) : (qt = l,
  210. + return l = qt, u = i(), null !== u ? (t = qt, 124 === n.charCodeAt(qt) ? (r = fl,
  211. + qt++) : (r = null, 0 === Wt && e(sl)), null !== r ? (o = c(), null !== o ? (r = [ r, o ],
  212. + t = r) : (qt = t, t = il)) : (qt = t, t = il), null === t && (t = al), null !== t ? (Lt = l,
  213. + u = hl(u, t), null === u ? (qt = l, l = u) : l = u) : (qt = l, l = il)) : (qt = l,
  214. l = il), l;
  215. }
  216. function i() {
  217. var n, l, u, t, r;
  218. - if (n = qt, l = f(), null === l && (l = al), null !== l) if (u = qt, Wt++, t = d(),
  219. + if (n = qt, l = f(), null === l && (l = al), null !== l) if (u = qt, Wt++, t = d(),
  220. Wt--, null === t ? u = al : (qt = u, u = il), null !== u) {
  221. - for (t = [], r = h(), null === r && (r = a()); null !== r; ) t.push(r), r = h(),
  222. + for (t = [], r = h(), null === r && (r = a()); null !== r; ) t.push(r), r = h(),
  223. null === r && (r = a());
  224. - null !== t ? (r = s(), null === r && (r = al), null !== r ? (Lt = n, l = dl(l, t, r),
  225. + null !== t ? (r = s(), null === r && (r = al), null !== r ? (Lt = n, l = dl(l, t, r),
  226. null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, n = il);
  227. } else qt = n, n = il; else qt = n, n = il;
  228. return n;
  229. @@ -6766,148 +6766,148 @@ return /******/ (function(modules) { // webpackBootstrap
  230. }
  231. function f() {
  232. var l, u;
  233. - return l = qt, 94 === n.charCodeAt(qt) ? (u = pl, qt++) : (u = null, 0 === Wt && e(vl)),
  234. + return l = qt, 94 === n.charCodeAt(qt) ? (u = pl, qt++) : (u = null, 0 === Wt && e(vl)),
  235. null !== u && (Lt = l, u = wl()), null === u ? (qt = l, l = u) : l = u, l;
  236. }
  237. function s() {
  238. var l, u;
  239. - return l = qt, 36 === n.charCodeAt(qt) ? (u = Al, qt++) : (u = null, 0 === Wt && e(Cl)),
  240. + return l = qt, 36 === n.charCodeAt(qt) ? (u = Al, qt++) : (u = null, 0 === Wt && e(Cl)),
  241. null !== u && (Lt = l, u = gl()), null === u ? (qt = l, l = u) : l = u, l;
  242. }
  243. function h() {
  244. var n, l, u;
  245. - return n = qt, l = a(), null !== l ? (u = d(), null !== u ? (Lt = n, l = bl(l, u),
  246. + return n = qt, l = a(), null !== l ? (u = d(), null !== u ? (Lt = n, l = bl(l, u),
  247. null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n, n = il), n;
  248. }
  249. function d() {
  250. var n, l, u;
  251. - return Wt++, n = qt, l = p(), null !== l ? (u = k(), null === u && (u = al), null !== u ? (Lt = n,
  252. - l = Tl(l, u), null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n,
  253. + return Wt++, n = qt, l = p(), null !== l ? (u = k(), null === u && (u = al), null !== u ? (Lt = n,
  254. + l = Tl(l, u), null === l ? (qt = n, n = l) : n = l) : (qt = n, n = il)) : (qt = n,
  255. n = il), Wt--, null === n && (l = null, 0 === Wt && e(kl)), n;
  256. }
  257. function p() {
  258. var n;
  259. - return n = v(), null === n && (n = w(), null === n && (n = A(), null === n && (n = C(),
  260. + return n = v(), null === n && (n = w(), null === n && (n = A(), null === n && (n = C(),
  261. null === n && (n = g(), null === n && (n = b()))))), n;
  262. }
  263. function v() {
  264. var l, u, t, r, o, c;
  265. - return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
  266. - null !== u ? (t = T(), null !== t ? (44 === n.charCodeAt(qt) ? (r = ml, qt++) : (r = null,
  267. - 0 === Wt && e(Rl)), null !== r ? (o = T(), null !== o ? (125 === n.charCodeAt(qt) ? (c = Fl,
  268. - qt++) : (c = null, 0 === Wt && e(Ql)), null !== c ? (Lt = l, u = Sl(t, o), null === u ? (qt = l,
  269. - l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l,
  270. + return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
  271. + null !== u ? (t = T(), null !== t ? (44 === n.charCodeAt(qt) ? (r = ml, qt++) : (r = null,
  272. + 0 === Wt && e(Rl)), null !== r ? (o = T(), null !== o ? (125 === n.charCodeAt(qt) ? (c = Fl,
  273. + qt++) : (c = null, 0 === Wt && e(Ql)), null !== c ? (Lt = l, u = Sl(t, o), null === u ? (qt = l,
  274. + l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l,
  275. l = il)) : (qt = l, l = il), l;
  276. }
  277. function w() {
  278. var l, u, t, r;
  279. - return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
  280. - null !== u ? (t = T(), null !== t ? (n.substr(qt, 2) === Ul ? (r = Ul, qt += 2) : (r = null,
  281. - 0 === Wt && e(El)), null !== r ? (Lt = l, u = Gl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  282. + return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
  283. + null !== u ? (t = T(), null !== t ? (n.substr(qt, 2) === Ul ? (r = Ul, qt += 2) : (r = null,
  284. + 0 === Wt && e(El)), null !== r ? (Lt = l, u = Gl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  285. l = il)) : (qt = l, l = il)) : (qt = l, l = il), l;
  286. }
  287. function A() {
  288. var l, u, t, r;
  289. - return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
  290. - null !== u ? (t = T(), null !== t ? (125 === n.charCodeAt(qt) ? (r = Fl, qt++) : (r = null,
  291. - 0 === Wt && e(Ql)), null !== r ? (Lt = l, u = Bl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  292. + return l = qt, 123 === n.charCodeAt(qt) ? (u = xl, qt++) : (u = null, 0 === Wt && e(yl)),
  293. + null !== u ? (t = T(), null !== t ? (125 === n.charCodeAt(qt) ? (r = Fl, qt++) : (r = null,
  294. + 0 === Wt && e(Ql)), null !== r ? (Lt = l, u = Bl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  295. l = il)) : (qt = l, l = il)) : (qt = l, l = il), l;
  296. }
  297. function C() {
  298. var l, u;
  299. - return l = qt, 43 === n.charCodeAt(qt) ? (u = jl, qt++) : (u = null, 0 === Wt && e($l)),
  300. + return l = qt, 43 === n.charCodeAt(qt) ? (u = jl, qt++) : (u = null, 0 === Wt && e($l)),
  301. null !== u && (Lt = l, u = ql()), null === u ? (qt = l, l = u) : l = u, l;
  302. }
  303. function g() {
  304. var l, u;
  305. - return l = qt, 42 === n.charCodeAt(qt) ? (u = Ll, qt++) : (u = null, 0 === Wt && e(Ml)),
  306. + return l = qt, 42 === n.charCodeAt(qt) ? (u = Ll, qt++) : (u = null, 0 === Wt && e(Ml)),
  307. null !== u && (Lt = l, u = Dl()), null === u ? (qt = l, l = u) : l = u, l;
  308. }
  309. function b() {
  310. var l, u;
  311. - return l = qt, 63 === n.charCodeAt(qt) ? (u = Hl, qt++) : (u = null, 0 === Wt && e(Ol)),
  312. + return l = qt, 63 === n.charCodeAt(qt) ? (u = Hl, qt++) : (u = null, 0 === Wt && e(Ol)),
  313. null !== u && (Lt = l, u = Wl()), null === u ? (qt = l, l = u) : l = u, l;
  314. }
  315. function k() {
  316. var l;
  317. - return 63 === n.charCodeAt(qt) ? (l = Hl, qt++) : (l = null, 0 === Wt && e(Ol)),
  318. + return 63 === n.charCodeAt(qt) ? (l = Hl, qt++) : (l = null, 0 === Wt && e(Ol)),
  319. l;
  320. }
  321. function T() {
  322. var l, u, t;
  323. - if (l = qt, u = [], zl.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null,
  324. - 0 === Wt && e(Il)), null !== t) for (;null !== t; ) u.push(t), zl.test(n.charAt(qt)) ? (t = n.charAt(qt),
  325. + if (l = qt, u = [], zl.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null,
  326. + 0 === Wt && e(Il)), null !== t) for (;null !== t; ) u.push(t), zl.test(n.charAt(qt)) ? (t = n.charAt(qt),
  327. qt++) : (t = null, 0 === Wt && e(Il)); else u = il;
  328. - return null !== u && (Lt = l, u = Jl(u)), null === u ? (qt = l, l = u) : l = u,
  329. + return null !== u && (Lt = l, u = Jl(u)), null === u ? (qt = l, l = u) : l = u,
  330. l;
  331. }
  332. function x() {
  333. var l, u, t, r;
  334. - return l = qt, 40 === n.charCodeAt(qt) ? (u = Kl, qt++) : (u = null, 0 === Wt && e(Nl)),
  335. - null !== u ? (t = R(), null === t && (t = F(), null === t && (t = m(), null === t && (t = y()))),
  336. - null !== t ? (41 === n.charCodeAt(qt) ? (r = Pl, qt++) : (r = null, 0 === Wt && e(Vl)),
  337. - null !== r ? (Lt = l, u = Xl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  338. + return l = qt, 40 === n.charCodeAt(qt) ? (u = Kl, qt++) : (u = null, 0 === Wt && e(Nl)),
  339. + null !== u ? (t = R(), null === t && (t = F(), null === t && (t = m(), null === t && (t = y()))),
  340. + null !== t ? (41 === n.charCodeAt(qt) ? (r = Pl, qt++) : (r = null, 0 === Wt && e(Vl)),
  341. + null !== r ? (Lt = l, u = Xl(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  342. l = il)) : (qt = l, l = il)) : (qt = l, l = il), l;
  343. }
  344. function y() {
  345. var n, l;
  346. - return n = qt, l = c(), null !== l && (Lt = n, l = Yl(l)), null === l ? (qt = n,
  347. + return n = qt, l = c(), null !== l && (Lt = n, l = Yl(l)), null === l ? (qt = n,
  348. n = l) : n = l, n;
  349. }
  350. function m() {
  351. var l, u, t;
  352. - return l = qt, n.substr(qt, 2) === Zl ? (u = Zl, qt += 2) : (u = null, 0 === Wt && e(_l)),
  353. - null !== u ? (t = c(), null !== t ? (Lt = l, u = nu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  354. + return l = qt, n.substr(qt, 2) === Zl ? (u = Zl, qt += 2) : (u = null, 0 === Wt && e(_l)),
  355. + null !== u ? (t = c(), null !== t ? (Lt = l, u = nu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  356. l = il)) : (qt = l, l = il), l;
  357. }
  358. function R() {
  359. var l, u, t;
  360. - return l = qt, n.substr(qt, 2) === lu ? (u = lu, qt += 2) : (u = null, 0 === Wt && e(uu)),
  361. - null !== u ? (t = c(), null !== t ? (Lt = l, u = tu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  362. + return l = qt, n.substr(qt, 2) === lu ? (u = lu, qt += 2) : (u = null, 0 === Wt && e(uu)),
  363. + null !== u ? (t = c(), null !== t ? (Lt = l, u = tu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  364. l = il)) : (qt = l, l = il), l;
  365. }
  366. function F() {
  367. var l, u, t;
  368. - return l = qt, n.substr(qt, 2) === ru ? (u = ru, qt += 2) : (u = null, 0 === Wt && e(eu)),
  369. - null !== u ? (t = c(), null !== t ? (Lt = l, u = ou(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  370. + return l = qt, n.substr(qt, 2) === ru ? (u = ru, qt += 2) : (u = null, 0 === Wt && e(eu)),
  371. + null !== u ? (t = c(), null !== t ? (Lt = l, u = ou(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  372. l = il)) : (qt = l, l = il), l;
  373. }
  374. function Q() {
  375. var l, u, t, r, o;
  376. - if (Wt++, l = qt, 91 === n.charCodeAt(qt) ? (u = iu, qt++) : (u = null, 0 === Wt && e(au)),
  377. - null !== u) if (94 === n.charCodeAt(qt) ? (t = pl, qt++) : (t = null, 0 === Wt && e(vl)),
  378. + if (Wt++, l = qt, 91 === n.charCodeAt(qt) ? (u = iu, qt++) : (u = null, 0 === Wt && e(au)),
  379. + null !== u) if (94 === n.charCodeAt(qt) ? (t = pl, qt++) : (t = null, 0 === Wt && e(vl)),
  380. null === t && (t = al), null !== t) {
  381. - for (r = [], o = S(), null === o && (o = U()); null !== o; ) r.push(o), o = S(),
  382. + for (r = [], o = S(), null === o && (o = U()); null !== o; ) r.push(o), o = S(),
  383. null === o && (o = U());
  384. - null !== r ? (93 === n.charCodeAt(qt) ? (o = fu, qt++) : (o = null, 0 === Wt && e(su)),
  385. - null !== o ? (Lt = l, u = hu(t, r), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  386. + null !== r ? (93 === n.charCodeAt(qt) ? (o = fu, qt++) : (o = null, 0 === Wt && e(su)),
  387. + null !== o ? (Lt = l, u = hu(t, r), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  388. l = il)) : (qt = l, l = il);
  389. } else qt = l, l = il; else qt = l, l = il;
  390. return Wt--, null === l && (u = null, 0 === Wt && e(cu)), l;
  391. }
  392. function S() {
  393. var l, u, t, r;
  394. - return Wt++, l = qt, u = U(), null !== u ? (45 === n.charCodeAt(qt) ? (t = pu, qt++) : (t = null,
  395. - 0 === Wt && e(vu)), null !== t ? (r = U(), null !== r ? (Lt = l, u = wu(u, r), null === u ? (qt = l,
  396. - l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il), Wt--,
  397. + return Wt++, l = qt, u = U(), null !== u ? (45 === n.charCodeAt(qt) ? (t = pu, qt++) : (t = null,
  398. + 0 === Wt && e(vu)), null !== t ? (r = U(), null !== r ? (Lt = l, u = wu(u, r), null === u ? (qt = l,
  399. + l = u) : l = u) : (qt = l, l = il)) : (qt = l, l = il)) : (qt = l, l = il), Wt--,
  400. null === l && (u = null, 0 === Wt && e(du)), l;
  401. }
  402. function U() {
  403. var n, l;
  404. - return Wt++, n = G(), null === n && (n = E()), Wt--, null === n && (l = null, 0 === Wt && e(Au)),
  405. + return Wt++, n = G(), null === n && (n = E()), Wt--, null === n && (l = null, 0 === Wt && e(Au)),
  406. n;
  407. }
  408. function E() {
  409. var l, u;
  410. - return l = qt, Cu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null, 0 === Wt && e(gu)),
  411. + return l = qt, Cu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null, 0 === Wt && e(gu)),
  412. null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u, l;
  413. }
  414. function G() {
  415. var n;
  416. - return n = L(), null === n && (n = Y(), null === n && (n = H(), null === n && (n = O(),
  417. - null === n && (n = W(), null === n && (n = z(), null === n && (n = I(), null === n && (n = J(),
  418. - null === n && (n = K(), null === n && (n = N(), null === n && (n = P(), null === n && (n = V(),
  419. - null === n && (n = X(), null === n && (n = _(), null === n && (n = nl(), null === n && (n = ll(),
  420. + return n = L(), null === n && (n = Y(), null === n && (n = H(), null === n && (n = O(),
  421. + null === n && (n = W(), null === n && (n = z(), null === n && (n = I(), null === n && (n = J(),
  422. + null === n && (n = K(), null === n && (n = N(), null === n && (n = P(), null === n && (n = V(),
  423. + null === n && (n = X(), null === n && (n = _(), null === n && (n = nl(), null === n && (n = ll(),
  424. null === n && (n = ul(), null === n && (n = tl()))))))))))))))))), n;
  425. }
  426. function B() {
  427. @@ -6916,154 +6916,154 @@ return /******/ (function(modules) { // webpackBootstrap
  428. }
  429. function j() {
  430. var l, u;
  431. - return l = qt, 46 === n.charCodeAt(qt) ? (u = ku, qt++) : (u = null, 0 === Wt && e(Tu)),
  432. + return l = qt, 46 === n.charCodeAt(qt) ? (u = ku, qt++) : (u = null, 0 === Wt && e(Tu)),
  433. null !== u && (Lt = l, u = xu()), null === u ? (qt = l, l = u) : l = u, l;
  434. }
  435. function $() {
  436. var l, u;
  437. - return Wt++, l = qt, mu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null,
  438. - 0 === Wt && e(Ru)), null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u,
  439. + return Wt++, l = qt, mu.test(n.charAt(qt)) ? (u = n.charAt(qt), qt++) : (u = null,
  440. + 0 === Wt && e(Ru)), null !== u && (Lt = l, u = bu(u)), null === u ? (qt = l, l = u) : l = u,
  441. Wt--, null === l && (u = null, 0 === Wt && e(yu)), l;
  442. }
  443. function q() {
  444. var n;
  445. - return n = M(), null === n && (n = D(), null === n && (n = Y(), null === n && (n = H(),
  446. - null === n && (n = O(), null === n && (n = W(), null === n && (n = z(), null === n && (n = I(),
  447. - null === n && (n = J(), null === n && (n = K(), null === n && (n = N(), null === n && (n = P(),
  448. - null === n && (n = V(), null === n && (n = X(), null === n && (n = Z(), null === n && (n = _(),
  449. - null === n && (n = nl(), null === n && (n = ll(), null === n && (n = ul(), null === n && (n = tl()))))))))))))))))))),
  450. + return n = M(), null === n && (n = D(), null === n && (n = Y(), null === n && (n = H(),
  451. + null === n && (n = O(), null === n && (n = W(), null === n && (n = z(), null === n && (n = I(),
  452. + null === n && (n = J(), null === n && (n = K(), null === n && (n = N(), null === n && (n = P(),
  453. + null === n && (n = V(), null === n && (n = X(), null === n && (n = Z(), null === n && (n = _(),
  454. + null === n && (n = nl(), null === n && (n = ll(), null === n && (n = ul(), null === n && (n = tl()))))))))))))))))))),
  455. n;
  456. }
  457. function L() {
  458. var l, u;
  459. - return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)),
  460. + return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)),
  461. null !== u && (Lt = l, u = Su()), null === u ? (qt = l, l = u) : l = u, l;
  462. }
  463. function M() {
  464. var l, u;
  465. - return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)),
  466. + return l = qt, n.substr(qt, 2) === Fu ? (u = Fu, qt += 2) : (u = null, 0 === Wt && e(Qu)),
  467. null !== u && (Lt = l, u = Uu()), null === u ? (qt = l, l = u) : l = u, l;
  468. }
  469. function D() {
  470. var l, u;
  471. - return l = qt, n.substr(qt, 2) === Eu ? (u = Eu, qt += 2) : (u = null, 0 === Wt && e(Gu)),
  472. + return l = qt, n.substr(qt, 2) === Eu ? (u = Eu, qt += 2) : (u = null, 0 === Wt && e(Gu)),
  473. null !== u && (Lt = l, u = Bu()), null === u ? (qt = l, l = u) : l = u, l;
  474. }
  475. function H() {
  476. var l, u;
  477. - return l = qt, n.substr(qt, 2) === ju ? (u = ju, qt += 2) : (u = null, 0 === Wt && e($u)),
  478. + return l = qt, n.substr(qt, 2) === ju ? (u = ju, qt += 2) : (u = null, 0 === Wt && e($u)),
  479. null !== u && (Lt = l, u = qu()), null === u ? (qt = l, l = u) : l = u, l;
  480. }
  481. function O() {
  482. var l, u;
  483. - return l = qt, n.substr(qt, 2) === Lu ? (u = Lu, qt += 2) : (u = null, 0 === Wt && e(Mu)),
  484. + return l = qt, n.substr(qt, 2) === Lu ? (u = Lu, qt += 2) : (u = null, 0 === Wt && e(Mu)),
  485. null !== u && (Lt = l, u = Du()), null === u ? (qt = l, l = u) : l = u, l;
  486. }
  487. function W() {
  488. var l, u;
  489. - return l = qt, n.substr(qt, 2) === Hu ? (u = Hu, qt += 2) : (u = null, 0 === Wt && e(Ou)),
  490. + return l = qt, n.substr(qt, 2) === Hu ? (u = Hu, qt += 2) : (u = null, 0 === Wt && e(Ou)),
  491. null !== u && (Lt = l, u = Wu()), null === u ? (qt = l, l = u) : l = u, l;
  492. }
  493. function z() {
  494. var l, u;
  495. - return l = qt, n.substr(qt, 2) === zu ? (u = zu, qt += 2) : (u = null, 0 === Wt && e(Iu)),
  496. + return l = qt, n.substr(qt, 2) === zu ? (u = zu, qt += 2) : (u = null, 0 === Wt && e(Iu)),
  497. null !== u && (Lt = l, u = Ju()), null === u ? (qt = l, l = u) : l = u, l;
  498. }
  499. function I() {
  500. var l, u;
  501. - return l = qt, n.substr(qt, 2) === Ku ? (u = Ku, qt += 2) : (u = null, 0 === Wt && e(Nu)),
  502. + return l = qt, n.substr(qt, 2) === Ku ? (u = Ku, qt += 2) : (u = null, 0 === Wt && e(Nu)),
  503. null !== u && (Lt = l, u = Pu()), null === u ? (qt = l, l = u) : l = u, l;
  504. }
  505. function J() {
  506. var l, u;
  507. - return l = qt, n.substr(qt, 2) === Vu ? (u = Vu, qt += 2) : (u = null, 0 === Wt && e(Xu)),
  508. + return l = qt, n.substr(qt, 2) === Vu ? (u = Vu, qt += 2) : (u = null, 0 === Wt && e(Xu)),
  509. null !== u && (Lt = l, u = Yu()), null === u ? (qt = l, l = u) : l = u, l;
  510. }
  511. function K() {
  512. var l, u;
  513. - return l = qt, n.substr(qt, 2) === Zu ? (u = Zu, qt += 2) : (u = null, 0 === Wt && e(_u)),
  514. + return l = qt, n.substr(qt, 2) === Zu ? (u = Zu, qt += 2) : (u = null, 0 === Wt && e(_u)),
  515. null !== u && (Lt = l, u = nt()), null === u ? (qt = l, l = u) : l = u, l;
  516. }
  517. function N() {
  518. var l, u;
  519. - return l = qt, n.substr(qt, 2) === lt ? (u = lt, qt += 2) : (u = null, 0 === Wt && e(ut)),
  520. + return l = qt, n.substr(qt, 2) === lt ? (u = lt, qt += 2) : (u = null, 0 === Wt && e(ut)),
  521. null !== u && (Lt = l, u = tt()), null === u ? (qt = l, l = u) : l = u, l;
  522. }
  523. function P() {
  524. var l, u;
  525. - return l = qt, n.substr(qt, 2) === rt ? (u = rt, qt += 2) : (u = null, 0 === Wt && e(et)),
  526. + return l = qt, n.substr(qt, 2) === rt ? (u = rt, qt += 2) : (u = null, 0 === Wt && e(et)),
  527. null !== u && (Lt = l, u = ot()), null === u ? (qt = l, l = u) : l = u, l;
  528. }
  529. function V() {
  530. var l, u;
  531. - return l = qt, n.substr(qt, 2) === ct ? (u = ct, qt += 2) : (u = null, 0 === Wt && e(it)),
  532. + return l = qt, n.substr(qt, 2) === ct ? (u = ct, qt += 2) : (u = null, 0 === Wt && e(it)),
  533. null !== u && (Lt = l, u = at()), null === u ? (qt = l, l = u) : l = u, l;
  534. }
  535. function X() {
  536. var l, u;
  537. - return l = qt, n.substr(qt, 2) === ft ? (u = ft, qt += 2) : (u = null, 0 === Wt && e(st)),
  538. + return l = qt, n.substr(qt, 2) === ft ? (u = ft, qt += 2) : (u = null, 0 === Wt && e(st)),
  539. null !== u && (Lt = l, u = ht()), null === u ? (qt = l, l = u) : l = u, l;
  540. }
  541. function Y() {
  542. var l, u, t;
  543. - return l = qt, n.substr(qt, 2) === dt ? (u = dt, qt += 2) : (u = null, 0 === Wt && e(pt)),
  544. - null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)),
  545. - null !== t ? (Lt = l, u = wt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  546. + return l = qt, n.substr(qt, 2) === dt ? (u = dt, qt += 2) : (u = null, 0 === Wt && e(pt)),
  547. + null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)),
  548. + null !== t ? (Lt = l, u = wt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  549. l = il)) : (qt = l, l = il), l;
  550. }
  551. function Z() {
  552. var l, u, t;
  553. - return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)),
  554. - null !== u ? (gt.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(bt)),
  555. - null !== t ? (Lt = l, u = kt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  556. + return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)),
  557. + null !== u ? (gt.test(n.charAt(qt)) ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(bt)),
  558. + null !== t ? (Lt = l, u = kt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  559. l = il)) : (qt = l, l = il), l;
  560. }
  561. function _() {
  562. var l, u, t, r;
  563. - if (l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)),
  564. + if (l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)),
  565. null !== u) {
  566. - if (t = [], yt.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(mt)),
  567. - null !== r) for (;null !== r; ) t.push(r), yt.test(n.charAt(qt)) ? (r = n.charAt(qt),
  568. + if (t = [], yt.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(mt)),
  569. + null !== r) for (;null !== r; ) t.push(r), yt.test(n.charAt(qt)) ? (r = n.charAt(qt),
  570. qt++) : (r = null, 0 === Wt && e(mt)); else t = il;
  571. - null !== t ? (Lt = l, u = Rt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  572. + null !== t ? (Lt = l, u = Rt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  573. l = il);
  574. } else qt = l, l = il;
  575. return l;
  576. }
  577. function nl() {
  578. var l, u, t, r;
  579. - if (l = qt, n.substr(qt, 2) === Ft ? (u = Ft, qt += 2) : (u = null, 0 === Wt && e(Qt)),
  580. + if (l = qt, n.substr(qt, 2) === Ft ? (u = Ft, qt += 2) : (u = null, 0 === Wt && e(Qt)),
  581. null !== u) {
  582. - if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)),
  583. - null !== r) for (;null !== r; ) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt),
  584. + if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)),
  585. + null !== r) for (;null !== r; ) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt),
  586. qt++) : (r = null, 0 === Wt && e(Ut)); else t = il;
  587. - null !== t ? (Lt = l, u = Et(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  588. + null !== t ? (Lt = l, u = Et(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  589. l = il);
  590. } else qt = l, l = il;
  591. return l;
  592. }
  593. function ll() {
  594. var l, u, t, r;
  595. - if (l = qt, n.substr(qt, 2) === Gt ? (u = Gt, qt += 2) : (u = null, 0 === Wt && e(Bt)),
  596. + if (l = qt, n.substr(qt, 2) === Gt ? (u = Gt, qt += 2) : (u = null, 0 === Wt && e(Bt)),
  597. null !== u) {
  598. - if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)),
  599. - null !== r) for (;null !== r; ) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt),
  600. + if (t = [], St.test(n.charAt(qt)) ? (r = n.charAt(qt), qt++) : (r = null, 0 === Wt && e(Ut)),
  601. + null !== r) for (;null !== r; ) t.push(r), St.test(n.charAt(qt)) ? (r = n.charAt(qt),
  602. qt++) : (r = null, 0 === Wt && e(Ut)); else t = il;
  603. - null !== t ? (Lt = l, u = jt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  604. + null !== t ? (Lt = l, u = jt(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  605. l = il);
  606. } else qt = l, l = il;
  607. return l;
  608. }
  609. function ul() {
  610. var l, u;
  611. - return l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)),
  612. + return l = qt, n.substr(qt, 2) === Tt ? (u = Tt, qt += 2) : (u = null, 0 === Wt && e(xt)),
  613. null !== u && (Lt = l, u = $t()), null === u ? (qt = l, l = u) : l = u, l;
  614. }
  615. function tl() {
  616. var l, u, t;
  617. - return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)),
  618. - null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)),
  619. - null !== t ? (Lt = l, u = bu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  620. + return l = qt, 92 === n.charCodeAt(qt) ? (u = At, qt++) : (u = null, 0 === Wt && e(Ct)),
  621. + null !== u ? (n.length > qt ? (t = n.charAt(qt), qt++) : (t = null, 0 === Wt && e(vt)),
  622. + null !== t ? (Lt = l, u = bu(t), null === u ? (qt = l, l = u) : l = u) : (qt = l,
  623. l = il)) : (qt = l, l = il), l;
  624. }
  625. var rl, el = arguments.length > 1 ? arguments[1] : {}, ol = {
  626. @@ -7234,7 +7234,7 @@ return /******/ (function(modules) { // webpackBootstrap
  627. var Util = __webpack_require__(3)
  628. var Random = __webpack_require__(5)
  629. /*
  630. -
  631. +
  632. */
  633. var Handler = {
  634. extend: Util.extend
  635. @@ -7481,7 +7481,7 @@ return /******/ (function(modules) { // webpackBootstrap
  636. return Random.integer(min, max)
  637. },
  638. /*
  639. -
  640. +
  641. */
  642. charset: function(node, result, cache) {
  643. // node.invert
  644. @@ -7642,11 +7642,11 @@ return /******/ (function(modules) { // webpackBootstrap
  645. ## valid(template, data)
  646. 校验真实数据 data 是否与数据模板 template 匹配。
  647. -
  648. +
  649. 实现思路:
  650. 1. 解析规则。
  651. 先把数据模板 template 解析为更方便机器解析的 JSON-Schame
  652. - name 属性名
  653. + name 属性名
  654. type 属性值类型
  655. template 属性值模板
  656. properties 对象属性数组
  657. @@ -7655,7 +7655,7 @@ return /******/ (function(modules) { // webpackBootstrap
  658. 2. 递归验证规则。
  659. 然后用 JSON-Schema 校验真实数据,校验项包括属性名、值类型、值、值生成规则。
  660. - 提示信息
  661. + 提示信息
  662. https://github.com/fge/json-schema-validator/blob/master/src/main/resources/com/github/fge/jsonschema/validator/validation.properties
  663. [JSON-Schama validator](http://json-schema-validator.herokuapp.com/)
  664. [Regexp Demo](http://demos.forbeslindesay.co.uk/regexp/)
  665. @@ -7693,8 +7693,8 @@ return /******/ (function(modules) { // webpackBootstrap
  666. +step
  667. 整数部分
  668. 小数部分
  669. - boolean
  670. - string
  671. + boolean
  672. + string
  673. min-max
  674. count
  675. ## properties
  676. @@ -7949,9 +7949,9 @@ return /******/ (function(modules) { // webpackBootstrap
  677. /*
  678. 完善、友好的提示信息
  679. -
  680. +
  681. Equal, not equal to, greater than, less than, greater than or equal to, less than or equal to
  682. - 路径 验证类型 描述
  683. + 路径 验证类型 描述
  684. Expect path.name is less than or equal to expected, but path.name is actual.
  685. @@ -8264,7 +8264,7 @@ return /******/ (function(modules) { // webpackBootstrap
  686. Util.extend(MockXMLHttpRequest.prototype, {
  687. // https://xhr.spec.whatwg.org/#the-open()-method
  688. // Sets the request method, request URL, and synchronous flag.
  689. - open: function(method, url, async, username, password) {
  690. + open: function(method, url, async = true, username, password) {
  691. var that = this
  692. Util.extend(this.custom, {
  693. @@ -8310,6 +8310,8 @@ return /******/ (function(modules) { // webpackBootstrap
  694. var xhr = createNativeXMLHttpRequest()
  695. this.custom.xhr = xhr
  696. + MockXMLHttpRequest.prototype.upload = xhr.upload
  697. +
  698. // 初始化所有事件,用于监听原生 XHR 对象的事件
  699. for (var i = 0; i < XHR_EVENTS.length; i++) {
  700. xhr.addEventListener(XHR_EVENTS[i], handle)
  701. @@ -8360,6 +8362,7 @@ return /******/ (function(modules) { // webpackBootstrap
  702. // 原生 XHR
  703. if (!this.match) {
  704. + this.custom.xhr.responseType = this.responseType || ''
  705. this.custom.xhr.send(data)
  706. return
  707. }