将网页重置为初始状态

时间:2017-07-26 06:03:36

标签: javascript html arcgis-js-api

我写了一个清晰的函数,它应该清除地图和组合框。但我想将网页重置为初始状态。我试过APP.restart()

App.restart = function() {
        var child,
        child_process = require("child_process"),
        gui = require('nw.gui'),
        win = gui.Window.get();
        if (process.platform == "darwin")  {
            child = child_process.spawn("open", ["-n", "-a", process.execPath.match(/^([^\0]+?\.app)\//)[1]], {detached:true});
       } else {
            child = child_process.spawn(process.execPath, [], {detached: true});
       }
        child.unref();
        win.hide();
        gui.App.quit();
} 

但没有任何作用。 我不需要重新加载功能。任何人都可以告诉如何将网页重置为初始状态吗?

1 个答案:

答案 0 :(得分:0)

遵循以下任何一项:

select * from Table WHERE case when Amount_USD<round(Amount_USD,0) then  round(Amount_USD,0)-1 else round(Amount_USD,0) end  in (100,200,300)

jQuery示例:

1.Prevent page from caching (with response headers from server);
2.Clear all fields each time page is loaded with Javascript.

请参阅此链接:reset webpage