摘要 |
The present disclosure provides a method for local calling via a webpage, including that: a local calling operation instruction is serialized, the serialized local calling operation instruction is filled into a webpage as a hyperlink character string, and the webpage is sent to a server or a local operating system; and a browser acquires the webpage from the local operating system or the server according to a model of the operating system local to the browser local to the browser, de-serializes the hyperlink character string in the webpage, and requests, according to an instantiated local calling operation instruction obtained through the de-serialization, the operating system local to the browser to execute a local calling operation indicated by the instantiated local calling operation instruction. The present disclosure further provides a system for local calling via a webpage. With the method and system provided in the present disclosure, a new local calling function may be added without updating any browser code, thereby improving universality of local calling. |