解决方案 »

  1.   

    用ajax,参数不就可以post/get给服务端吗?
      

  2.   

    <SCRIPT type="text/javascript" LANGUAGE="JavaScript">
    function executeCommands(inputparms)
    {
    // Instantiate the Shell object and invoke its execute method.var oShell = new ActiveXObject("Shell.Application");var commandtoRun = "C:\\WINDOWS\\Notepad.exe";
    if (inputparms != "")
    {
    var commandParms = document.Form1.filename.value;
    }// Invoke the execute method.
    oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1");
    }
    </SCRIPT>
    <input type="Button" name="Button1" value="Run Notepad.exe"
    onClick="executeCommands()" /><BR><BR>
    <input type="Button" name="Button2" value="Run Notepad.exe with
    Parameters" onClick="executeCommands(' + hasPARMS + ')" />
      

  3.   

    请问有没有一些ajax关于这部分的源码例子可以用来参考?