Code
function pause(numberMillis) {
var dialogScript =
'window.setTimeout(' +
' function () { window.close(); }, ' + numberMillis + ');';
var result =
// For IE5.
window.showModalDialog(
'javascript:document.writeln(' +
'"<script>' + dialogScript + '<' + '/script>")');
/* For NN6, but it requires a trusted script.
openDialog(
'javascript:document.writeln(' +
'"<script>' + dialogScript + '<' + '/script>"',
'pauseDialog', 'modal=1,width=10,height=10');
*/
}
function pause(numberMillis) {
var dialogScript =
'window.setTimeout(' +
' function () { window.close(); }, ' + numberMillis + ');';
var result =
// For IE5.
window.showModalDialog(
'javascript:document.writeln(' +
'"<script>' + dialogScript + '<' + '/script>")');
/* For NN6, but it requires a trusted script.
openDialog(
'javascript:document.writeln(' +
'"<script>' + dialogScript + '<' + '/script>"',
'pauseDialog', 'modal=1,width=10,height=10');
*/
}
不懂是什么意思,
只知道传入一个毫秒数就会暂停,知道的告诉我下啊。