feat: update container

This commit is contained in:
2022-07-23 12:50:05 +08:00
parent 1c9669a4a7
commit c40ac23cf5

View File

@@ -38,18 +38,15 @@ fn main() -> Result<()> {
let a = exports.eval_javascript(&mut store, r##" let a = exports.eval_javascript(&mut store, r##"
function hi(name) { return "hi: " + name; } function hi(name) { return "hi: " + name; }
let a = []; let a = [];
// for (let i = 0; i < 12; i++) { a.push(fetch('https://hatter.ink/util/print_request.action'));
a.push(fetch('https://hatter.ink/util/print_request.action')); a.push(fetch('https://hatter.ink/ip.action'));
// } a.push(fetch('https://hatter.ink/ip/ip.jsonp'));
a.push(fetch('https://hatter.ink/ip.action')); a.push(fetch('https://hatter.ink/ip2.action'));
a.push(fetch('https://hatter.ink/ip/ip.jsonp')); a.push({
a.push(fetch('https://hatter.ink/ip2.action')); userId: 'id001',
// for (let i = 0; i < 3; i++) { a.push(i); } name: 'Test',
// a.push({ });
// id: 1, name: 'hatter'
// });
// a.push(hi('001'));
// a.push(hi('002'));
JSON.stringify(a) JSON.stringify(a)
// a // a
"##); "##);