let a = {"b": 1, "c": 2};
let a2 = JSON.stringify(a);
let x = {
s : a2
};
let x2 = JSON.stringify(x);
console.log(a2);
console.log(x2);
let y = JSON.parse(x2);
console.log(typeof(y.s));//
//
let k = { p : 1, q : 2 };
let k1 = JSON.stringify(k);
let k2 = JSON.stringify(k1);
console.log(k, k1, k2)
let g1 = { s: 1, d: 2 };
let g2 = JSON.stringify(g1);
let g3 = JSON.stringify(g2);
let g4 = JSON.stringify(g3);
console.log(g1, g2, g3, g4);
console.log(`g1:${g1},g2:${g2},g3:${g3},g4:${g4}`);
let tm = new Map();
tm.set("a1","1");
tm.set('b', '2');
for(let i of tm.values()){
console.log('ofvalue', i);
}
for(let i of tm.keys()){
console.log('ofkey: ', i);
}
// 不进入循环
for (let i in tm.values()) {
console.log('invalue: ', i);
}
let ab = '1*2';
console.log(ab.split('*'));
let as = '123';
let bs = ['123', '456'];
let cs = {};
console.log(typeof(as), typeof(bs), typeof(cs), bs.join('='));
let aaa = ['1', '我', '一', '龥', 'к', 't'];
for (let i = 0; i < aaa.length; i++) {
console.log('lan:', aaa[i], aaa[i].charCodeAt(0), escape(aaa[i]));
}
console.log('麒麟子?哈?'.length)
let ta = 'w吴';
console.log(ta.toUpperCase());
let unicodeStr = '가힣うไ';
console.log('www', unicodeStr.charCodeAt(0), unicodeStr.charCodeAt(1), unicodeStr.charCodeAt(2), unicodeStr.charCodeAt(3));
let unicodeStr2 = 'eé';
console.log(unicodeStr2.charCodeAt(0), unicodeStr2.charCodeAt(1));
let sss = "Deorro、Chris Brown - Five More Hours"
console.log(sss.indexOf("Five More Hours"));
const add = "";
const sswdq = "[\\S\\s]*(?i)(和声|伴唱|合音|和音|詞|词|曲|编|混(?!唱)" +
"|监|笛|箫|琴|album|arragement|artist|background|bass|drum|engineer|flute|guitar|harmony" +
"|Instrument|isrc|keyboad|medley|mix|pgm|piano|produc|program|publish|sax|singer|writer" +
"|string|synthesize|sythn|title|trumpet|vocal|宣传|宣发|推广|顾问|封面|剪辑|鸣谢|出品|企划" +
"|营销|发行|出品|制作|统筹|字幕|策划|秀导|海报|摄影|mv合成|影视|母带|录音|后期|视觉|画师|调教|音响师" +
"|美工|题字|助理|乐务|经理|嘉宾|歌手|演奏|艺人|原唱|演唱|主唱|女声独唱|童声合唱|女声合唱|配唱|配器师" +
"|合唱团|乐团|乐队|合声|歌曲语言|所属语言|语言类别|首席|唤醒师|歌姬|领舞|编舞|伴舞|舞蹈|舞团|原调" +
"|中阮|吉他|吉它|鼓|贝司|贝斯|键盘|器乐|弦琴|二胡|三弦|弦乐|古筝|琵琶|管乐|木管|铜管|管子|管弦|低音管" +
"|双簧管|黑管|单簧管|克拉管|大号|长号|小号|圆号|柔音号|萨克斯|打击|小打|时长|歌名|专辑|群号|企鹅号" +
"|uc号|短号|版权|qq|唱吧|酷狗|公众号|地址|上传|共享|krc|lrc|lyric|http|OP|SP|人声工程师" +
"|声乐指导|studio|Mastered by" +
add +
")[\\S\\s]*[::][\\S\\s]+";
// var re = new RegExp(sswdq);
// var str = "";
// var ret = re.test(str);
// console.log("reg:", ret);
console.log("wwwww");
let xxx = async function () {
console.log('wdq1');
return 1;
}
console.log(xxx());
console.log('wdq2');
// async function fnOne() {
// console.log('520');
// return 521
// }
// fnOne().then(res => {
// console.log(res)
// })
// console.log(fnOne());
////////////////////////////////////
async function test1 () {
console.log('start test1');
console.log(await test2());
console.log('end test1');
}
async function test2 () {
console.log('test2');
return await 'return test2 value';
}
test1();
console.log('start async');
setTimeout(() => {
console.log('settimeout');
}, 0);
new Promise((resolve, reject) => {
console.log('promise1');
resolve();
}).then(()=>{
console.log('promise2');
})
console.log('end async');
console