xgqfrms / iframe

iframe for Ding Ding EAPP !
https://iframe.xgqfrms.xyz/
MIT License
1 stars 1 forks source link

beforeunload bug ❌ #4

Open xgqfrms opened 11 months ago

xgqfrms commented 11 months ago

https://iframe.xgqfrms.xyz/Web-APIs/beforeunload.html

https://github.com/xgqfrms/iframe/edit/master/Web-APIs/beforeunload.html

https://github.com/xgqfrms/iframe/tree/master/Web-APIs

https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event#examples

xgqfrms commented 11 months ago

https://github.com/mdn/content/issues/29655

xgqfrms commented 11 months ago

onbeforeunload 不生效 ???

https://juejin.cn/post/7114562808573870094

image

https://juejin.cn/post/7288604780382339124

image

image

https://www.cnblogs.com/tu-0718/p/11765027.html

xgqfrms commented 11 months ago

<label for="">

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

labeled statement

let str = '';

loop1: for (let i = 0; i < 5; i++) {
  if (i === 1) {
    continue loop1;
  }
  str = str + i;
}

console.log(str);
//  "0234"

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label