📅  最后修改于: 2022-03-11 15:02:24.385000             🧑  作者: Mango
javascriptCopyfunction getId() {
if ( typeof getId.counter == 'undefined' ) {
getId.counter = 0;
}
alert(++getId.counter);
}