window.open(url, null, "noopener")
https://github.com/w3c/web-platform-tests/blob/master/html/browsers/the-window-object/window-open-noopener.html
けど Chrome だと第三引数指定すると同じウィンドウじゃなくて別ウィンドウで開かれてしまう
window.open(url, null, "noopener")
const obj = {
10: 0, y:1, x:2, z:3, 2:4, "1": 5, "-1": 6,
"5.5":7, 4294967294: 8, 4294967295: 9,
}
console.log(JSON.stringify(Object.entries(obj)))
// [["1",5],["2",4],["10",0],["4294967294",8],["y",1],["x",2],["z",3],["-1",6],["5.5",7],["4294967295",9]]
$(document).on("click", "body", eve => {
console.log("target", eve.target)
console.log("currentTarget", eve.currentTarget)
console.log("delegateTarget", eve.delegateTarget)
})
target | <button> |
currentTarget | <body> |
delegateTarget | document |
<!doctype html>
<style>
.bottom{
position: absolute;
bottom:0;
background: crimson;
color: white;
}
.vlong{
height: 110vh;
background: lightgoldenrodyellow;
}
</style>
<div class="vlong">vlong</div>
<div class="bottom">bottom</div>