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##"
function hi(name) { return "hi: " + name; }
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/ip.action'));
a.push(fetch('https://hatter.ink/ip/ip.jsonp'));
a.push(fetch('https://hatter.ink/ip2.action'));
// for (let i = 0; i < 3; i++) { a.push(i); }
// a.push({
// id: 1, name: 'hatter'
// });
// a.push(hi('001'));
// a.push(hi('002'));
a.push({
userId: 'id001',
name: 'Test',
});
JSON.stringify(a)
// a
"##);