📜  js 获取 id 值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:56.153000             🧑  作者: Mango

代码示例5
async function test (){
  document.body.innerHTML = await "Hello Wolrd";
    var init = await document.getElementsByTagName("foo")[0].id;
    alert( init );
}
test();