***********************************************************
try...catch VS safe-touch
Will run 100,000 times for each test case.
Will test with these retrieve methods:
function impossibleRetrieve(_) { return _[Math.random()][Math.random()] }
function shallowRetrieve(_) { return _.key }
function deepRetrieve(_) { return _.a.b.c.d.e.f.g.h.i }
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http') | |
| const options = { | |
| host: 'wx.ecnu.edu.cn', | |
| path: '/CorpWeChat/card/dogetEle.html', | |
| method: 'POST', | |
| headers: { | |
| 'X-Requested-With': 'XMLHttpRequest', | |
| 'Content-Type': 'application/x-www-form-urlencoded' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Luck Money</title> | |
| <style> | |
| * { | |
| margin: 6px; | |
| } |
NewerOlder