📜  获取 id javascript 代码示例

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

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