Abstract:
Method, device, and storage medium for selecting edge content of a webpage. The method includes, upon detecting that a user performs the operation of dragging the cursor part of the two cursors used to define a selection area toward a screen edge of a touch-screen of a mobile terminal, moving the cursor toward the screen edge of the touch-screen; determining whether the distance between the screen edge and the cursor part after the movement of the cursor is within a first predetermined distance; and, when within the first predetermined distance, triggering the content webpage to move in an opposite direction.
Abstract:
A method and system for expanding a WebApp application function. The method comprises: adding a function expansion field which contains an expansion JS function and an address of a local application which responds to a request of the expansion JS function in the WebApp; sending each parameter of the function to a browser kernel by calling the expansion JS function; a WebApp frame setting an address of a local application program as the address of the local application which responds to the request of the expansion JS function according to a calling message received by the browser kernel; activating a target application program specified by the address according to the address of the local application; the activated target application program executing the expansion JS function according to the parameters of the expansion JS function and returning an execution result to the WebApp.
Abstract:
The present invention provides an incremental upgrade method, an apparatus applying the method and a storage medium. The incremental upgrade method comprises: sending a request to a server for downloading an incremental upgrade package corresponding to a local old version file on a terminal; receiving the incremental upgrade package, which comprises unmatched block data obtained by comparing a first compressed file with a second compressed file, and the start and end information of the unmatched block data, wherein the first compressed file is a compressed file that concatenates an old version file and a new version file on the server, and the second compressed file is a compressed file of the old version file on the server; concatenating the unmatched block data in the incremental upgrade package and a local second compressed file generated from the local old version file on the terminal to generate a concatenate compressed file; and at last decompressing the concatenate compressed file to obtain the new version file. The method reduces data traffic and occupied bandwidth resources.
Abstract:
Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.
Abstract:
The present invention discloses a webpage edge content selection method and device, and a mobile terminal. The method includes, upon detecting that a user performs the operation of dragging the cursor part of the two cursors used to define a selection area toward a screen edge of a touch-screen of a mobile terminal, moving the cursor toward the screen edge of the touch-screen; determining whether the distance between the screen edge and the cursor part after the movement of the cursor is within a first predetermined distance; and, when within the first predetermined distance, triggering the content webpage to move in an opposite direction. Further, when the cursor part after the movement of the cursor reaches the content edge of the content webpage, the content webpage is moved further in the opposite direction by a second predetermined distance, bringing the edge of the content closer to the center of the screen than the edge of the screen. Using this method can help the user to more effectively select the text at the screen edge.
Abstract:
Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.