WO2012079531A1 - Method and device for improving performance of mobile widget - Google Patents

Method and device for improving performance of mobile widget Download PDF

Info

Publication number
WO2012079531A1
WO2012079531A1 PCT/CN2011/084103 CN2011084103W WO2012079531A1 WO 2012079531 A1 WO2012079531 A1 WO 2012079531A1 CN 2011084103 W CN2011084103 W CN 2011084103W WO 2012079531 A1 WO2012079531 A1 WO 2012079531A1
Authority
WO
WIPO (PCT)
Prior art keywords
javascript
file
terminal
mobile widget
widget application
Prior art date
Application number
PCT/CN2011/084103
Other languages
French (fr)
Chinese (zh)
Inventor
戎亚新
李朝辉
孙诗
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN2010106069356A external-priority patent/CN102141914A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN2011800038094A priority Critical patent/CN102725732A/en
Priority to EP11848446.8A priority patent/EP2597568A4/en
Publication of WO2012079531A1 publication Critical patent/WO2012079531A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method and apparatus for improving performance of a mobile widget Widget application. Background technique
  • Widget technology is an application platform based on the Java scripting language JavaScript. Widgets are developed using standard Web technologies such as HyperText Markup Language (HTML), Cascading Style Sheets (CSS, Cascading Style Sheets). , JavaScript, etc.
  • HTML HyperText Markup Language
  • CSS Cascading Style Sheets
  • JavaScript JavaScript
  • a mobile widget is a small application running on a mobile terminal. It follows the basic framework of the desktop Widget. First, the developer should develop a mobile widget on an offline or online simulator, and ensure that the compiler is debugged. Then the developer will have debugged it. The mobile widget is uploaded to the server, and the server verifies the uploaded mobile widget.
  • the administrator waits for the audit, and after the audit is passed, the mobile widget installation package is placed on the download server, and the mobile terminal user can Subscribe to the widget by downloading the specified website or directly on the terminal where the widget engine is installed and download the mobile widget application.
  • the programming language for mobile widget applications is JavaScript, so the JavaScript engine is the foundation of the widget engine.
  • a powerful and efficient JavaScript engine is the key to widget technology.
  • the widget downloaded from the download server is a compressed package containing the @ ⁇ , the file conf ig.xml, the index, html, and index, html referenced by the population, html file, JavaScript source code Files, image files, and other private resource files related to widget applications.
  • the widget engine When the widget engine starts the widget, it needs to read and parse the index, html, and recursively parse all the JavaScript files, Css files and other related files referenced by it; because the programming language of the Widget application is JavaScript, correct the page (Details 91) Therefore, under normal circumstances, the resolution of the JavaScr ipt script takes up a large proportion when the mobile widget is started. If the resolution speed of the JavaScr i pt is improved, the performance of the mobile widget at startup can be greatly improved.
  • Embodiments of the present invention provide a method and apparatus for improving performance of a mobile widget Widget application. This method can remove the compilation process of the JavaScript in the mobile widget at startup, reduce the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
  • An embodiment of the present invention provides a method for improving performance of a mobile widget Widget, the method comprising: compiling a Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to a download server; The compiled JavaScript is repackaged according to a format readable by the JavaScript virtual machine on the terminal, and the repackaged mobile Widget application is uploaded to the download server for downloading by the terminal.
  • the embodiment of the invention further provides an apparatus for improving performance of a mobile widget Widget, the apparatus comprising: a script compiling module, configured to compile the Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to the download server; and a packaging module, configured to compile the compiled JavaScript according to the JavaScript virtual machine on the terminal
  • the read format is repackaged; the application uploading module is configured to upload the repackaged mobile Widget application to the download server for downloading and using by the terminal.
  • the embodiment of the present invention further provides a method for executing a mobile widget Widget application on a terminal, the method comprising: downloading, by a terminal, a Java script JavaScript file from a download server, where the JavaScript file is compiled and serialized Binary file; when the terminal learns that the JavaScript file is a compiled and serialized binary file, the binary file is executed.
  • the embodiment of the present invention further provides a terminal capable of executing a mobile widget Widget application, the terminal comprising: a script downloading module, configured to download a Java script JavaScript file from a download server, where the JavaScript file is compiled and sequenced Binary file;
  • a JavaScript engine is configured to execute the binary file when it is known that the JavaScript file is a compiled and serialized binary file. It can be seen from the technical solution provided above that the Java script JavaScript in the mobile Widget application is compiled before uploading the developed mobile Widget application to the download server; and then the compiled JavaScript is followed by the JavaScript virtual machine on the terminal. The readable format is repackaged, and the repackaged mobile Widget application is uploaded to the download server for downloading by the terminal. Through the implementation of the above method, it is possible to remove the mobile widget. The compilation process of Javascript in time reduces the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
  • FIG. 1 is a schematic flowchart of a method for improving performance of a mobile widget Widget application according to an embodiment of the present invention
  • FIG. 2 is a flowchart of processing performed by a Widget server in an example of an embodiment of the present invention
  • FIG. 3 is a process flow diagram of sorting and compiling a Widget server in an example of an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a directory structure in a typical mobile Widget application data packet according to an example of an embodiment of the present invention
  • FIG. 5 is a schematic diagram of content of a JavaScript source file before compilation in an example according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram showing the content of a JavaScript file compiled and serialized in an example of the embodiment of the present invention
  • FIG. 7 is a schematic diagram showing the structure of an apparatus for improving the performance of a mobile widget Widget according to an embodiment of the present invention
  • FIG. 8 is another schematic structural diagram of an apparatus according to an embodiment of the present invention
  • FIG. 9 is another schematic structural diagram of an apparatus according to an embodiment of the present invention
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a device for improving the performance of a mobile widget Widget, and finds an improved link by analyzing the mobile widget as a whole. Before uploading the developed mobile widget application to the download server, the mobile widget is moved. Compile the Java script JavaScript in the application, then repackage the compiled JavaScript in the format readable by the JavaScript virtual machine on the terminal, and then repackage the moved
  • the Widget application is uploaded to the download server for downloading and using by the terminal. This eliminates the need for the mobile widget to compile the JavaScript at startup, reducing the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
  • FIG. 1 is a schematic flowchart of the method provided by the embodiment of the present invention, the method includes:
  • Step 1 1 Compile the JavaScript in the mobile widget application before uploading the developed mobile widget application to the download server.
  • the execution body compiling the Java script JavaScript in the mobile Widget application may be a Widget server, or may be on the developer's client. Specifically in the implementation process:
  • the Widget server compiles the JavaScript in the mobile Widget application.
  • FIG. 2 is a flowchart of processing performed by a Widget server in an example of an embodiment of the present invention.
  • the Widget server After receiving the mobile Widget application developed by the developer, the Widget server first verifies the uploaded mobile Widget application; after the verification is passed, decompresses the verified original Widget package, and extracts the JavaScript source code from the decompressed file. a file; compile and serialize the JavaScript source code file to get the serialized JavaScript file;
  • the format that can be read on the JavaScript virtual machine is repackaged into the Widget package to be downloaded.
  • the process of compiling the JavaScript on the terminal can be omitted, the startup time of the mobile widget application is reduced, thereby improving the performance of the mobile Widget application and improving the user experience.
  • the Widget server can also sort the received mobile Widget application, and divide different mobile Widget applications into categories adapted to different terminal types, so that different types When downloading the mobile Widget application, the terminal only obtains a mobile Widget application suitable for the terminal of the type.
  • the Widget server distinguishes the type of the mobile Widget application and the applicable terminal in the process of sorting the mobile Widget application, and can be sorted and compiled according to the type of the terminal, so that if If the terminal cannot run the compiled Ja vaScript file, the Widget server may not compile the mobile Widget application suitable for the terminal type; and if it is another terminal capable of running the compiled Javascript file, the applicable The terminal type mobile Widget application is compiled, so that the terminal can always run the sorted mobile Widget application, and the startup can be improved for the terminal that can process the compiled JavaScript file.
  • the Widget server is divided into the example in the embodiment of the present invention.
  • the processing flow chart of picking and compiling in Figure 3:
  • the Widget server first sorts the received mobile Widget application, and divides the different mobile Widget applications into categories that are adapted to different terminal types.
  • the mobile Widget application is sorted. It is into three types; then it is compiled, serialized, and repackaged according to the types suitable for different terminals.
  • the sorted terminal type 3 belongs to the type that does not need to be compiled, and the mobile Widget application of this type can be directly put into Downloading the server also reduces the burden of compiling the Widget server.
  • the above solution is to compile the JavaScript in the mobile Widget application on the Widget server.
  • the developer clearly knows which type of terminal the mobile Widget application developed by himself will run on, it can also Put the compile operation execution body on the developer's client, compile the JavaScript in the mobile Widget application on the developer's client before uploading the developed mobile Widget application to the Widget server, and upload it to the Widget server.
  • the mobile Widget application package is already compiled by JavaScript, which also eliminates the process of compiling JavaScript on the terminal, which reduces the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
  • FIG. 4 is a schematic diagram of a directory structure in a typical mobile Widget application data packet according to an example of the embodiment of the present invention, where: a mobile Widget application data packet generally includes an entry file index.html, and is configured.
  • the specific operation procedure for compiling the JavaScript in the mobile Widget application may be as follows: First, extract the source file of the JavaScript in the mobile Widget application, compile it in file units, and save the compiled result as the file name and the same as the original file. Binary file, after compiling After some JavaScript source files, the original ⁇
  • Step 12 Repackage the compiled JavaScript in a format readable by the JavaScript virtual machine on the terminal.
  • the compiled JavaScript can be repackaged in a format readable by the JavaScript virtual machine on the terminal.
  • the compiled and serialized JavaScript file replaces the original JavaScript source code file, and then repackaged into the mobile Widget application data package to be downloaded according to the format that can be read on the terminal JavaScript virtual machine, due to compilation and The serialized whole mobile Widget application packet size will also be reduced accordingly, so that the terminal can effectively save network bandwidth during the download process, further speeding up the download speed.
  • Step 13 Upload the repackaged mobile Widget application to the download server for downloading and using by the terminal.
  • the repackaged mobile Widget application can be uploaded to the download server for downloading and using by the terminal.
  • the process of compiling the JavaScript on the terminal can be omitted, the startup time of the mobile widget application is reduced, thereby improving the performance of the mobile Widget application and improving the user.
  • the startup time of the mobile widget application is reduced, thereby improving the performance of the mobile Widget application and improving the user.
  • the identification character when performing the above step 11 to compile the JavaScript in the mobile Widget application, can also be placed at the beginning of the compiled and serialized binary file, for example, the devil number 0x4A534621 can be set, which is a character.
  • the binary is converted to take different parsing methods.
  • the version number of the compiler that compiles the JavaScript source file may be placed after the identifier character, so that the JavaScript engine on the terminal can know whether the serialized binary file is obtained according to the version number of the compiler. Compatible with the JavaScript engine on the terminal. If the version of the current JavaScript engine on the terminal is not compatible with the version number identified in the JavaScript file after serialization, the JavaScript engine on the terminal may refuse to execute the mobile Widget application, and further prompt the user to have a version incompatibility problem, or request The user upgrades the JavaScript engine client.
  • FIG. 5 is a schematic diagram showing the content of a JavaScript source file before compilation according to an example of an embodiment of the present invention
  • FIG. 6 is a content of a JavaScript file compiled and serialized in an example of an embodiment of the present invention.
  • the first two parts of the first line in Figure 6 are the identification characters (the number of devils) and the version number, and the version number is the binary data of the compiled result.
  • FIG. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • the device includes:
  • a script compiling module configured to compile the Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to the download server;
  • a packaging module for repackaging the compiled JavaScript in a format readable by the JavaScript virtual machine on the terminal
  • An application uploading module is configured to upload the repackaged mobile Widget application to the download server for downloading and using by the terminal.
  • FIG. 8 is another schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 8 is another schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • the script compiling module is disposed on the Widget server, and is further configured to compile the JavaScript in the mobile Widget application when the developed mobile Widget application is uploaded to the Widget server.
  • the above device may further comprise:
  • Application sorting module for sorting received mobile Widget applications, moving different mobiles
  • the Widget application is divided into categories adapted to different terminal types, so that when downloading the mobile Widget application, different types of terminals only obtain mobile Widget applications suitable for the type of terminal running.
  • FIG. 9 is another schematic structural diagram of an apparatus according to an embodiment of the present invention, and FIG. 9 is:
  • the script compilation module is set up on the developer's client, further used for development in the mobile
  • FIG. 10 is another schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 10 is another schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 10 :
  • the device also includes:
  • An identifier setting module configured to place a logo character at the beginning of the compiled and serialized binary file, so that the JavaScript engine on the terminal can read the JavaScript file in the downloaded mobile Widget application according to the The logo character knows whether the JavaScript file is a JavaScript source file or a compiled and serialized binary file.
  • the apparatus may further include:
  • a version number setting module configured to: after the identifier character, a version number of a compiler that compiles the JavaScript source file, so that the JavaScript engine on the terminal knows the serialized binary according to the version number of the compiler Whether the file is compatible with the JavaScript engine on the terminal.
  • the terminal downloads the Java script JavaScript file from the download server, and the JavaScript file is a binary file that has been compiled and serialized;
  • the terminal When the terminal knows that the JavaScript file is a compiled and serialized binary file, the binary file is executed.
  • the terminal learns that the JavaScript file is a compiled and serialized binary file, and specifically includes:
  • the terminal learns that the downloaded JavaScript file is a compiled and serialized binary file according to the identifier characters in the received JavaScript file.
  • the method further comprises:
  • the terminal knows whether the serialized binary file is compatible with the JavaScript engine on the terminal according to the version number of the compiler in the received JavaScript file. Preferably, if the version is not compatible with the JavaScript engine on the terminal, the terminal can refuse to execute the JavaScript file.
  • the method further comprises:
  • the terminal When the terminal knows that the JavaScript file is a JavaScript source file, it compiles and executes the JavaScript source file.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal includes:
  • a script downloading module configured to download a Java script JavaScript file from a download server, the JavaScript file being a binary file that has been compiled and serialized;
  • the JavaScript engine is used to execute the binary file when it knows that the JavaScript file is a compiled and serialized binary file.
  • the JavaScript engine knows that the downloaded Javascript file is a compiled and serialized binary file according to the identifier characters in the received JavaScript file.
  • the JavaScript engine can be further configured to know whether the serialized binary file is compatible with the JavaScript engine on the terminal according to the version number of the compiler in the received JavaScript file.
  • the JavaScript engine can be further used when the terminal knows the JavaScript When the file is a JavaScript source file, compile and execute the JavaScript source file.
  • each module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • the embodiment of the present invention can remove the compilation process of the mobile widget during startup, and reduce the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
  • the above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of it within the technical scope disclosed by the embodiments of the present invention. Variations or substitutions are intended to be covered by the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Abstract

Embodiments of the present invention provide a method and device for improving the performance of a mobile widget. The method comprises: editing the JavaScript in the mobile widget application prior to uploading the developed mobile widget application to a download server; repackaging the edited JavaScript in accordance with a format readable by the JavaScript virtual machine on the terminal, and then uploading to the download server the repackaged mobile widget application for download and use by the terminal. Implementation of the method renders unnecessary the JavaScript editing process when launching the mobile widget, reducing the launch time of the mobile widget application and thereby improving the performance of the mobile widget and enhancing the user experience.

Description

提升移动微件 Widget应用性能的方法及装置 本申请要求于 2010 年 12 月 16 日提交中国专利局、 申请号为 201010606935.6, 发明名称为"提升移动 4敖件 Widget 应用性能的方法及装 置,,,以及于 2010年 12月 16日提交中国专利局、申请号为 201110409640· 4、 发明名称为"提升移动微件 Widget 应用性能的方法及装置"的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。 技术领域 Method and device for improving performance of mobile widget Widget application This application claims to be submitted to the Chinese Patent Office on December 16, 2010, application number 201010606935.6, and the invention name is "the method and device for improving the application performance of the mobile widget", And the priority of the Chinese patent application filed on December 16, 2010, the Chinese Patent Office, application number 2011104096 4 0·4, the invention titled "Method and Apparatus for Improving the Performance of Mobile Widget Widgets", the entire contents of which are The citations are incorporated herein by reference.
本发明涉及网络通信领域, 尤其涉及一种提升移动微件 Widget应用性能 的方法及装置。 背景技术  The present invention relates to the field of network communications, and in particular, to a method and apparatus for improving performance of a mobile widget Widget application. Background technique
目前, Widget技术是一种基于 Java脚本语言 JavaScript的应用程序平 台, Widget使用标准的 Web技术开发,如超文本标签语言( HTML, HyperText Mark-up Language )、层叠样式表 ( CSS, Cascading Style Sheets )、 JavaScript 等。 移动 widget是一种运行于移动终端上的小型应用, 它遵循桌面 Widget 的基本框架体系,首先开发者要在离线或在线模拟器上开发移动 widget, 并 保证编译调试通过; 然后开发者将已经调试通过的移动 widget上传到服务 器, 服务器对上传的移动 widget进行验证, 验证通过后等待管理员的审核, 并在审核通过后, 将移动 widget安装包放到下载服务器上, 此时移动终端 用户就可以通过登陆指定的网站或直接在安装有 widget 引擎的终端上订阅 widget并下载移动 widget应用。  Currently, Widget technology is an application platform based on the Java scripting language JavaScript. Widgets are developed using standard Web technologies such as HyperText Markup Language (HTML), Cascading Style Sheets (CSS, Cascading Style Sheets). , JavaScript, etc. A mobile widget is a small application running on a mobile terminal. It follows the basic framework of the desktop Widget. First, the developer should develop a mobile widget on an offline or online simulator, and ensure that the compiler is debugged. Then the developer will have debugged it. The mobile widget is uploaded to the server, and the server verifies the uploaded mobile widget. After the verification is passed, the administrator waits for the audit, and after the audit is passed, the mobile widget installation package is placed on the download server, and the mobile terminal user can Subscribe to the widget by downloading the specified website or directly on the terminal where the widget engine is installed and download the mobile widget application.
移动 widget应用的编程语言为 JavaScript, 因此 JavaScript引擎又是 widget引擎的基础,一个强大而高效的 JavaScript引擎是 widget技术的关 键。 按照 widget规范, 从下载服务器所下载的 widget是一个压缩包, 里面 包含了 @己置信息、文件 conf ig. xml、作为人口的 index, html、以及 index, html 所引用的 ess文件、 JavaScript源代码文件、 图片文件, 以及和 widget应 用相关的其它私有资源文件等。 Widget 引擎在启动 widget 时, 需要将 index, html读入并解析, 并递归的解析所有被其引用的 JavaScript文件, Css文件和其它相关文件; 由于 Widget应用的编程语言就是 JavaScript, 更正页 (细则第 91条) 所以正常情况下 JavaScr ipt脚本的解析在移动 widget启动时占的比重就艮 大, 如果提升了 JavaScr i pt的解析速度, 就可以大大提升移动 widget在启 动时的性能。 The programming language for mobile widget applications is JavaScript, so the JavaScript engine is the foundation of the widget engine. A powerful and efficient JavaScript engine is the key to widget technology. According to the widget specification, the widget downloaded from the download server is a compressed package containing the @己置信息, the file conf ig.xml, the index, html, and index, html referenced by the population, html file, JavaScript source code Files, image files, and other private resource files related to widget applications. When the widget engine starts the widget, it needs to read and parse the index, html, and recursively parse all the JavaScript files, Css files and other related files referenced by it; because the programming language of the Widget application is JavaScript, correct the page (Details 91) Therefore, under normal circumstances, the resolution of the JavaScr ipt script takes up a large proportion when the mobile widget is started. If the resolution speed of the JavaScr i pt is improved, the performance of the mobile widget at startup can be greatly improved.
现有技术方案中,绝大多数的 JS引擎(JavaScr ipt引擎)对 JavaScr ipt 脚本的解析都是先编译再执行, 其中由编译器完成对 JavaScr i pt 源代码的 读入, 扫描, 然后进行词法分析, 语法分析, 然后生成可以被 JavaScr i pt 虚拟机执行的指令。 而在编译器编译 JavaScr i pt 源代码的过程中, 所要进 行的词法、 语法分析以及指令的生成都是 CPU性能消耗的最大杀手, 由于移 动终端的性能有限, 因此在移动 Widget 启动时, 常常需要花费很长的时间 用于 JavaScr ipt的编译, 从而大大影响了移动 Widget的启动速度, 降低了 移动 Widget应用的性能, 用户体验较差。 发明内容  In the prior art solution, most of the JS engines (JavaScr ipt engine) parse and execute the JavaScr ipt script, and the compiler completes the reading, scanning, and lexical processing of the JavaScr i pt source code. Analyze, parse, and then generate instructions that can be executed by the JavaScr pt virtual machine. In the process of compiler compiling JavaScr i pt source code, the lexical, parsing and instruction generation are the biggest killers of CPU performance. Due to the limited performance of mobile terminals, it is often necessary when mobile widgets are started. It takes a long time to compile the JavaScr ipt, which greatly affects the startup speed of the mobile Widget, reduces the performance of the mobile Widget application, and the user experience is poor. Summary of the invention
本发明实施例提供了一种提升移动微件 Widget应用性能的方法及装置。 通过该方法能够去除移动 widget在启动时对其中 JavaScript的编译过程, 减 少了移动 widget应用的启动时间, 从而提升了移动 Widget应用的性能, 改善 了用户体验。 本发明实施例提供了一种提升移动微件 Widget应用性能的方法,所述方 法包括: 在将开发的移动 Widget应用上传到下载服务器之前,对所述移动 Widget 应用中的 Java脚本 JavaScript进行编译; 将编译后的 JavaScript按照终端上 JavaScript虚拟机可读取的格式重新 打包,并将该重新打包后的移动 Widget应用上传到所述下载服务器供所述终 端下载使用。 本发明实施例还提供了一种提升移动微件 Widget应用性能的装置,所述 装置包括: 脚本编译模块, 用于在将开发的移动 Widget应用上传到下载服务器之 前, 对所述移动 Widget应用中的 Java脚本 JavaScript进行编译; 打包模块, 用于将编译后的 JavaScript按照终端上 JavaScript虚拟机可 读取的格式重新打包; 应用上传模块,用于将重新打包后的移动 Widget应用上传到所述下载服 务器供所述终端下载使用。 本发明实施例还提供了一种在终端上执行移动微件 Widget应用的方法, 所述方法包括: 终端从下载服务器上下载 Java脚本 JavaScript文件, 所述 JavaScript文 件为已经编译过并序列化后的二进制文件; 当所述终端获知所述 JavaScript文件为编译过并序列化后的二进制文件 时, 执行所述二进制文件。 本发明实施例还提供了一种能执行移动微件 Widget应用的终端,所述终 端包括: 脚本下载模块, 用于从下载服务器上下载 Java脚本 JavaScript文件, 所 述 JavaScript文件为已经编译过并序列化后的二进制文件; Embodiments of the present invention provide a method and apparatus for improving performance of a mobile widget Widget application. This method can remove the compilation process of the JavaScript in the mobile widget at startup, reduce the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience. An embodiment of the present invention provides a method for improving performance of a mobile widget Widget, the method comprising: compiling a Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to a download server; The compiled JavaScript is repackaged according to a format readable by the JavaScript virtual machine on the terminal, and the repackaged mobile Widget application is uploaded to the download server for downloading by the terminal. The embodiment of the invention further provides an apparatus for improving performance of a mobile widget Widget, the apparatus comprising: a script compiling module, configured to compile the Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to the download server; and a packaging module, configured to compile the compiled JavaScript according to the JavaScript virtual machine on the terminal The read format is repackaged; the application uploading module is configured to upload the repackaged mobile Widget application to the download server for downloading and using by the terminal. The embodiment of the present invention further provides a method for executing a mobile widget Widget application on a terminal, the method comprising: downloading, by a terminal, a Java script JavaScript file from a download server, where the JavaScript file is compiled and serialized Binary file; when the terminal learns that the JavaScript file is a compiled and serialized binary file, the binary file is executed. The embodiment of the present invention further provides a terminal capable of executing a mobile widget Widget application, the terminal comprising: a script downloading module, configured to download a Java script JavaScript file from a download server, where the JavaScript file is compiled and sequenced Binary file;
JavaScript引擎, 用于当获知所述 JavaScript文件为编译过并序列 化后的二进制文件时, 执行所述二进制文件。 由上述所提供的技术方案可以看出, 在将开发的移动 Widget应用上传到下 载服务器之前, 对所述移动 Widget应用中的 Java脚本 JavaScript进行编 译; 然后将编译后的 JavaScript按照终端上 JavaScript虚拟机可读取的格 式重新打包, 并将该重新打包后的移动 Widget应用上传到所述下载服务器 供所述终端下载使用。 通过上述方法的实施, 就可以去除移动 widget在启 动时对其中 JavaScri pt的编译过程, 减少了移动 widget应用的启动时间, 从而提升了移动 Widget应用的性能, 改善了用户体验。 附图说明 A JavaScript engine is configured to execute the binary file when it is known that the JavaScript file is a compiled and serialized binary file. It can be seen from the technical solution provided above that the Java script JavaScript in the mobile Widget application is compiled before uploading the developed mobile Widget application to the download server; and then the compiled JavaScript is followed by the JavaScript virtual machine on the terminal. The readable format is repackaged, and the repackaged mobile Widget application is uploaded to the download server for downloading by the terminal. Through the implementation of the above method, it is possible to remove the mobile widget. The compilation process of Javascript in time reduces the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience. DRAWINGS
图 1为本发明实施例所提供提升移动微件 Widget应用性能方法的流程示 意图; 图 2为本发明实施例所举出的实例中由 Widget服务器进行编译的处理流 程图;  FIG. 1 is a schematic flowchart of a method for improving performance of a mobile widget Widget application according to an embodiment of the present invention; FIG. 2 is a flowchart of processing performed by a Widget server in an example of an embodiment of the present invention;
图 3为本发明实施例所举出的实例中 Widget服务器分拣和编译的处理流 程图;  3 is a process flow diagram of sorting and compiling a Widget server in an example of an embodiment of the present invention;
图 4为本发明实施例所举实例中典型移动 Widget应用数据包中的目录结 构示意图;  4 is a schematic diagram of a directory structure in a typical mobile Widget application data packet according to an example of an embodiment of the present invention;
图 5为本发明实施例所举出的实例中编译之前的 JavaScript源文件内容 示意图;  FIG. 5 is a schematic diagram of content of a JavaScript source file before compilation in an example according to an embodiment of the present invention; FIG.
图 6为本发明实施例所举出的实例中编译并序列化后的 JavaScript文件 内容示意图; 图 7为本发明实施例所提供提升移动微件 Widget应用性能装置的结构示 意图;  6 is a schematic diagram showing the content of a JavaScript file compiled and serialized in an example of the embodiment of the present invention; FIG. 7 is a schematic diagram showing the structure of an apparatus for improving the performance of a mobile widget Widget according to an embodiment of the present invention;
图 8为本发明实施例所提供装置的另一结构示意图; 图 9为本发明实施例所提供装置的另一结构示意图; 图 10为本发明实施例所提供装置的另一结构示意图。 图 1 1为本发明实施例所提供终端的结构示意图。 具体实施方式 本发明实施例提供了一种提升移动微件 Widget应用性能的方法及 装置, 通过对移动 widget整体分析找出可以改进的环节, 在将开发的移 动 Widget应用上传到下载服务器之前, 就对移动 Widget应用中的 Java 脚本 JavaScri pt进行编译, 然后将编译后的 JavaScri pt按照终端上 JavaScript虚拟机可读取的格式重新打包, 再将该重新打包后的移动FIG. 8 is another schematic structural diagram of an apparatus according to an embodiment of the present invention; FIG. 9 is another schematic structural diagram of an apparatus according to an embodiment of the present invention; FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention. detailed description The embodiment of the invention provides a method and a device for improving the performance of a mobile widget Widget, and finds an improved link by analyzing the mobile widget as a whole. Before uploading the developed mobile widget application to the download server, the mobile widget is moved. Compile the Java script JavaScript in the application, then repackage the compiled JavaScript in the format readable by the JavaScript virtual machine on the terminal, and then repackage the moved
Widget应用上传到所述下载服务器供所述终端下载使用。这样就可以去 除移动 widget在启动时对其中 JavaScript的编译过程, 减少了移动 widget应用的启动时间, 从而提升了移动 Widget应用的性能, 改善了用 户体验。 The Widget application is uploaded to the download server for downloading and using by the terminal. This eliminates the need for the mobile widget to compile the JavaScript at startup, reducing the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
为更好的描述本发明实施方式, 现结合附图对本发明的具体实施方式进 行说明, 如图 1所示为本发明实施例所提供方法的流程示意图, 所述方法包 括:  The embodiment of the present invention is described in detail with reference to the accompanying drawings. FIG. 1 is a schematic flowchart of the method provided by the embodiment of the present invention, the method includes:
步骤 1 1 : 在将开发的移动 Widget应用上传到下载服务器之前, 对移动 Widget应用中的 JavaScript进行编译。  Step 1 1 : Compile the JavaScript in the mobile widget application before uploading the developed mobile widget application to the download server.
在该步骤中, 在将开发的移动 Widget应用上传到下载服务器之前, 对所 述移动 Widget应用中的 Java脚本 JavaScript进行编译的执行主体可以是 Widget服务器, 也可以是在开发人员的客户端上, 具体在实施过程中:  In this step, before the uploaded mobile Widget application is uploaded to the download server, the execution body compiling the Java script JavaScript in the mobile Widget application may be a Widget server, or may be on the developer's client. Specifically in the implementation process:
若执行主体是在 Widget服务器, 则在将开发的移动 Widget应用上传到 Widget服务器之后, 再由该 Widget服务器对移动 Widget应用中的 JavaScript 进行编译。  If the execution subject is on the Widget server, after the developed mobile Widget application is uploaded to the Widget server, the Widget server compiles the JavaScript in the mobile Widget application.
如图 2所示为本发明实施例所举出的实例中由 Widget服务器进行编译的 处理流程图, 在图 2中: Widget服务器收到开发人员开发完成的移动 Widget应用之后,首先对上 传的移动 Widget应用进行验证; 在验证通过后,将验证后的原始 Widget包进 行解压, 从解压后的文件中提取出 JavaScript源代码文件; 对该 JavaScript 源代码文件进行编译并序列化, 得到序列化后的 JavaScript文件; 然后将该 FIG. 2 is a flowchart of processing performed by a Widget server in an example of an embodiment of the present invention. In FIG. 2: After receiving the mobile Widget application developed by the developer, the Widget server first verifies the uploaded mobile Widget application; after the verification is passed, decompresses the verified original Widget package, and extracts the JavaScript source code from the decompressed file. a file; compile and serialize the JavaScript source code file to get the serialized JavaScript file;
JavaScript虚拟机上可以读取的格式重新打包到待下载的 Widget包中。 这样 当终端从下载服务器下载该处理过的移动 Widget应用后,就可以省去在终端 上编译 JavaScript的过程, 减少了移动 widget应用的启动时间, 从而提升了 移动 Widget应用的性能, 改善了用户体验。 The format that can be read on the JavaScript virtual machine is repackaged into the Widget package to be downloaded. In this way, when the terminal downloads the processed mobile Widget application from the download server, the process of compiling the JavaScript on the terminal can be omitted, the startup time of the mobile widget application is reduced, thereby improving the performance of the mobile Widget application and improving the user experience. .
另外, 在由 Widget服务器对移动 Widget应用中的 JavaScript进行编译之 前, Widget服务器还可以对接收的移动 Widget应用进行分拣,将不同的移动 Widget应用划分成适应于不同终端类型的类别,使不同类型的终端在下载移 动 Widget应用时, 只获取到适合该类型终端运行的移动 Widget应用。  In addition, before compiling the JavaScript in the mobile Widget application by the Widget server, the Widget server can also sort the received mobile Widget application, and divide different mobile Widget applications into categories adapted to different terminal types, so that different types When downloading the mobile Widget application, the terminal only obtains a mobile Widget application suitable for the terminal of the type.
在具体实现过程中,该 Widget服务器在对移动 Widget应用进行分拣的过 程中, 区分出移动 Widget应用的类型, 以及适用的终端, 并可以分拣后根据 终端的类型进行编译,这样如果某个终端无法运行编译后的 Ja vaScri pt文件, 则 Widget服务器可以不对适合该终端类型的移动 Widget应用进行编译;而如 果是另一有能力运行编译后的 J avaScri pt文件的终端, 则可以对适用该终端 类型的移动 Widget应用进行编译,从而既保证了终端总能运行分拣后的移动 Widget应用, 同时对于能处理编译后 JavaScript文件的终端又能提升启动性 In the specific implementation process, the Widget server distinguishes the type of the mobile Widget application and the applicable terminal in the process of sorting the mobile Widget application, and can be sorted and compiled according to the type of the terminal, so that if If the terminal cannot run the compiled Ja vaScript file, the Widget server may not compile the mobile Widget application suitable for the terminal type; and if it is another terminal capable of running the compiled Javascript file, the applicable The terminal type mobile Widget application is compiled, so that the terminal can always run the sorted mobile Widget application, and the startup can be improved for the terminal that can process the compiled JavaScript file.
•6匕 •6匕
匕。  dagger.
举例来说, 如图 3所示为本发明实施例所举出的实例中 Widget服务器分 拣和编译的处理流程图, 图 3中: Widget服务器首先对接收的移动 Widget应 用进行分拣, 将不同的移动 Widget应用划分成适应于不同终端类型的类别, 图 3中将移动 Widget应用分拣成三个类型; 然后按照适合不同终端的类型分 别进行编译、 序列化和重新打包的操作, 其中分拣出的终端类型 3属于不需 要编译的类型, 可以直接将该类型的移动 Widget应用放到下载服务器上, 这 样也减轻了 Widget服务器的编译操作负担。 For example, as shown in FIG. 3, the Widget server is divided into the example in the embodiment of the present invention. The processing flow chart of picking and compiling, in Figure 3: The Widget server first sorts the received mobile Widget application, and divides the different mobile Widget applications into categories that are adapted to different terminal types. In Figure 3, the mobile Widget application is sorted. It is into three types; then it is compiled, serialized, and repackaged according to the types suitable for different terminals. The sorted terminal type 3 belongs to the type that does not need to be compiled, and the mobile Widget application of this type can be directly put into Downloading the server also reduces the burden of compiling the Widget server.
以上所述方案是在 Widget服务器上对移动 Widget应用中的 JavaScript 进行编译, 在实际操作过程中, 如果开发人员明确知道了自己开发的移动 Widget应用将会在哪个类型的终端上运行,那么也可以将编译操作执行主体 放在开发人员的客户端,在将开发的移动 Widget应用上传到 Widget服务器之 前, 在开发人员的客户端上对该移动 Widget应用中的 JavaScript进行编译, 这样上传到 Widget服务器上的移动 Widget应用数据包就已经是经过 JavaScript编译的, 这样同样也省去在终端上编译 JavaScript的过程, 减少 了移动 widget应用的启动时间, 从而提升了移动 Widget应用的性能, 改善了 用户体验。  The above solution is to compile the JavaScript in the mobile Widget application on the Widget server. In the actual operation process, if the developer clearly knows which type of terminal the mobile Widget application developed by himself will run on, it can also Put the compile operation execution body on the developer's client, compile the JavaScript in the mobile Widget application on the developer's client before uploading the developed mobile Widget application to the Widget server, and upload it to the Widget server. The mobile Widget application package is already compiled by JavaScript, which also eliminates the process of compiling JavaScript on the terminal, which reduces the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience.
在具体实现过程中, 如图 4所示为本发明实施例所举实例中典型移动 Widget应用数据包中的目录结构示意图, 图中: 移动 Widget应用数据包内通 常包含入口文件 index.html , 配置文件 config.xml , Widget应用的图标 icon.png, 以及被 index.html所引用的 ess, 以及 JavaScript等。 上述对移动 Widget应用中的 JavaScript进行编译的具体操作过程可以采用如下方式: 首先提取该移动 Widget应用中 JavaScript的源文件, 将其以文件为单位 进行编译, 并将编译结果存为文件名和原来相同的二进制文件, 在编译完所 有的 JavaScript源文件后, 原^ In a specific implementation process, as shown in FIG. 4 is a schematic diagram of a directory structure in a typical mobile Widget application data packet according to an example of the embodiment of the present invention, where: a mobile Widget application data packet generally includes an entry file index.html, and is configured. The file config.xml, the icon of the Widget application icon.png, and the ess referenced by index.html, as well as JavaScript. The specific operation procedure for compiling the JavaScript in the mobile Widget application may be as follows: First, extract the source file of the JavaScript in the mobile Widget application, compile it in file units, and save the compiled result as the file name and the same as the original file. Binary file, after compiling After some JavaScript source files, the original ^
的二进制文件替代。 Binary file replacement.
步骤 12: 将编译后的 JavaScript按照终端上 JavaScript虚拟机可读取的 格式重新打包。  Step 12: Repackage the compiled JavaScript in a format readable by the JavaScript virtual machine on the terminal.
在该步骤中, 在通过上述步骤 1 1的操作, 对移动 Widget应用中的 In this step, in the operation of the mobile Widget by the operation of the above step 1 1
JavaScript进行编译之后, 就可以将编译后的 JavaScript按照终端上 JavaScript虚拟机可读取的格式重新打包。 Once JavaScript is compiled, the compiled JavaScript can be repackaged in a format readable by the JavaScript virtual machine on the terminal.
具体来说就是将编译并序列化后的 JavaScript文件替代原有的 JavaScript源代码文件, 再按照终端 JavaScript虚拟机上可以读取的格式重 新打包到待下载的移动 Widget应用数据包中, 由于编译并序列化后的 整个移动 Widget应用数据包的大小也会相应减小,这样终端在下载过程中就 可以有效的节省网络带宽, 进一步加快了下载速度。  Specifically, the compiled and serialized JavaScript file replaces the original JavaScript source code file, and then repackaged into the mobile Widget application data package to be downloaded according to the format that can be read on the terminal JavaScript virtual machine, due to compilation and The serialized whole mobile Widget application packet size will also be reduced accordingly, so that the terminal can effectively save network bandwidth during the download process, further speeding up the download speed.
步骤 13:将该重新打包后的移动 Widget应用上传到所述下载服务器供所 述终端下载使用。  Step 13: Upload the repackaged mobile Widget application to the download server for downloading and using by the terminal.
在该步骤中, 在经过上述步骤 12的操作重新打包之后, 就可以将该重新 打包后的移动 Widget应用上传到下载服务器上供终端下载使用。这样当终端 从下载服务器下载了该处理过的移动 Widget应用后,就可以省去在终端上编 译 JavaScript的过程, 减少了移动 widget应用的启动时间, 从而提升了移动 Widget应用的性能, 改善了用户体验。  In this step, after the operation of the above step 12 is repackaged, the repackaged mobile Widget application can be uploaded to the download server for downloading and using by the terminal. In this way, when the terminal downloads the processed mobile Widget application from the download server, the process of compiling the JavaScript on the terminal can be omitted, the startup time of the mobile widget application is reduced, thereby improving the performance of the mobile Widget application and improving the user. Experience.
同时, 由于移动 Widget应用数据包的减小, 也有利于减少安装包的解压 缩、 安装等过程的时间, 而 JavaScript源文件已经转变成大小相对更小的编 译后序列化过的 JavaScript文件,因此其读取文件所需的时间也会相对减少, 从另一方面也加快了启动时的性能。 At the same time, due to the reduction of the mobile Widget application data packet, it is also beneficial to reduce the time for the decompression, installation and other processes of the installation package, and the JavaScript source file has been converted into a relatively smaller size. The translated JavaScript file is translated, so the time it takes to read the file is relatively reduced, and on the other hand, the performance at startup is also accelerated.
具体实现过程中, 在执行上述步骤 11对移动 Widget应用中的 JavaScript 进行编译时,还可以在被编译过并序列化后的二进制文件的开头放置标识字 符, 例如可以设置魔鬼数 0x4A534621 , 它是字符串 "JSF!" 的 ASCII码; 通 过该标识字符就可以使终端上的 JavaScript引擎在读取到所下载的移动 Widget应用中的 JavaScript文件时,获知该 JavaScript文件是 JavaScript源文 件还是编译过并序列化后的二进制文件, 从而采取不同的解析方法。  In the specific implementation process, when performing the above step 11 to compile the JavaScript in the mobile Widget application, the identification character can also be placed at the beginning of the compiled and serialized binary file, for example, the devil number 0x4A534621 can be set, which is a character. The ASCII code of the string "JSF!"; the identification character allows the JavaScript engine on the terminal to know whether the JavaScript file is a JavaScript source file or a compiled and sequenced file when reading the JavaScript file in the downloaded mobile Widget application. The binary is converted to take different parsing methods.
进一步的, 还可以在该标识字符后放置对 JavaScript源文件进行编译的 编译器的版本号, 以使所述终端上的 JavaScript引擎能够根据该编译器的版 本号获知该序列化后的二进制文件是否和所述终端上的 JavaScript引擎兼 容。 如果终端上当前 JavaScript引擎的版本和序列化后 JavaScript文件中所 标识的版本号不兼容, 则终端上的 JavaScript引擎可以拒绝执行该移动 Widget应用, 并进一步提示用户有版本不兼容的问题, 或者要求用户升级 JavaScript引擎客户端。  Further, the version number of the compiler that compiles the JavaScript source file may be placed after the identifier character, so that the JavaScript engine on the terminal can know whether the serialized binary file is obtained according to the version number of the compiler. Compatible with the JavaScript engine on the terminal. If the version of the current JavaScript engine on the terminal is not compatible with the version number identified in the JavaScript file after serialization, the JavaScript engine on the terminal may refuse to execute the mobile Widget application, and further prompt the user to have a version incompatibility problem, or request The user upgrades the JavaScript engine client.
如图 5所示为本发明实施例所举出的实例中编译之前的 JavaScript源文 件内容示意图, 如图 6所示为本发明实施例所举出的实例中编译并序列化后 的 JavaScript文件内容示意图, 图 6中第一行的前两部分分别是标识字符(魔 鬼数)和版本号, 在版本号后面就是编译结果的二进制数据。  FIG. 5 is a schematic diagram showing the content of a JavaScript source file before compilation according to an example of an embodiment of the present invention, and FIG. 6 is a content of a JavaScript file compiled and serialized in an example of an embodiment of the present invention. Schematic, the first two parts of the first line in Figure 6 are the identification characters (the number of devils) and the version number, and the version number is the binary data of the compiled result.
通过上述方法实施例方案的实施, 就可以去除移动 widget在启动时对其 中 JavaScript的编译过程, 减少了移动 widget应用的启动时间, 从而提升了 移动 Widget应用的性能, 改善了用户体验。 本发明实施例还提供了一种提升移动微件 Widget应用性能的装置,如图 7所示为本发明实施例所提供装置的结构示意图, 所述装置包括: Through the implementation of the foregoing method embodiment, the compilation process of the JavaScript in the mobile widget can be removed, and the startup time of the mobile widget application is reduced, thereby improving the performance of the mobile Widget application and improving the user experience. The embodiment of the present invention further provides a device for improving the performance of a mobile widget Widget, and FIG. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. The device includes:
脚本编译模块, 用于在将开发的移动 Widget应用上传到下载服务器之 前, 对所述移动 Widget应用中的 Java脚本 JavaScript进行编译;  a script compiling module, configured to compile the Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to the download server;
打包模块, 用于将编译后的 JavaScript按照终端上 JavaScript虚拟机可 读取的格式重新打包;  a packaging module for repackaging the compiled JavaScript in a format readable by the JavaScript virtual machine on the terminal;
应用上传模块,用于将重新打包后的移动 Widget应用上传到所述下载服 务器供所述终端下载使用。  An application uploading module is configured to upload the repackaged mobile Widget application to the download server for downloading and using by the terminal.
进一步的, 如图 8所示为本发明实施例所提供装置的另一结构示意图, 图 8中:  Further, FIG. 8 is another schematic structural diagram of an apparatus according to an embodiment of the present invention. In FIG.
所述脚本编译模块设置在 Widget服务器, 进一步用于在开发的移动 Widget应用上传到 Widget服务器时,对所述移动 Widget应用中的 JavaScript 进行编译。  The script compiling module is disposed on the Widget server, and is further configured to compile the JavaScript in the mobile Widget application when the developed mobile Widget application is uploaded to the Widget server.
上述装置还可包括:  The above device may further comprise:
应用分拣模块, 用于对接收的移动 Widget应用进行分拣, 将不同的移动 Application sorting module for sorting received mobile Widget applications, moving different mobiles
Widget应用划分成适应于不同终端类型的类别,使不同类型的终端在下载移 动 Widget应用时, 只获取到适合该类型终端运行的移动 Widget应用。 The Widget application is divided into categories adapted to different terminal types, so that when downloading the mobile Widget application, different types of terminals only obtain mobile Widget applications suitable for the type of terminal running.
进一步的, 如图 9所示为本发明实施例所提供装置的另一结构示意图, 图 9中:  Further, FIG. 9 is another schematic structural diagram of an apparatus according to an embodiment of the present invention, and FIG. 9 is:
该脚本编译模块设置在开发人员的客户端, 进一步用于在开发的移动 The script compilation module is set up on the developer's client, further used for development in the mobile
Widget应用上传到 Widget服务器之前,对该移动 Widget应用中的 JavaScript 进行编译。 进一步的, 如图 10所示为本发明实施例所提供装置的另一结构示意图, 图 10中: The widget in the mobile Widget application is compiled before being uploaded to the Widget server. Further, FIG. 10 is another schematic structural diagram of an apparatus according to an embodiment of the present invention. In FIG. 10:
所述装置还包括:  The device also includes:
标识设置模块, 用于在被编译过并序列化后的二进制文件的开头放置标 识字符, 使所述终端上的 JavaScript引擎在读取到所下载的移动 Widget应用 中的 JavaScript文件时, 能根据该标识字符获知该 JavaScript文件是 JavaScript源文件还是编译过并序列化后的二进制文件。  An identifier setting module, configured to place a logo character at the beginning of the compiled and serialized binary file, so that the JavaScript engine on the terminal can read the JavaScript file in the downloaded mobile Widget application according to the The logo character knows whether the JavaScript file is a JavaScript source file or a compiled and serialized binary file.
另外, 所述装置还可包括:  Additionally, the apparatus may further include:
版本号设置模块, 用于在所述标识字符后放置对 JavaScript源文件进行 编译的编译器的版本号, 以使所述终端上的 JavaScript引擎根据该编译器的 版本号获知该序列化后的二进制文件是否和所述终端上的 JavaScript引擎兼 容。  a version number setting module, configured to: after the identifier character, a version number of a compiler that compiles the JavaScript source file, so that the JavaScript engine on the terminal knows the serialized binary according to the version number of the compiler Whether the file is compatible with the JavaScript engine on the terminal.
相应的, 前文中已经从系统的角度提供了一种在终端上执行移动微件 Widget应用的方法, 下面仅从终端的角度复述之:  Correspondingly, in the foregoing, a method for executing a mobile widget Widget application on a terminal has been provided from a system perspective, and the following is only repeated from the perspective of the terminal:
终端从下载服务器上下载 Java脚本 JavaScript文件, 该 JavaScript文件 为已经编译过并序列化后的二进制文件;  The terminal downloads the Java script JavaScript file from the download server, and the JavaScript file is a binary file that has been compiled and serialized;
当该终端获知该 JavaScript文件为编译过并序列化后的二进制文件时, 执行该二进制文件。  When the terminal knows that the JavaScript file is a compiled and serialized binary file, the binary file is executed.
较优的, 具体实现过程中, 上述终端获知该 JavaScript文件为编译过并 序列化后的二进制文件, 具体包括:  Preferably, in the specific implementation process, the terminal learns that the JavaScript file is a compiled and serialized binary file, and specifically includes:
该终端根据接收到的 JavaScript文件中的标识字符, 获知所下载的 JavaScript文件为编译过并序列化后的二进制文件。 较优的, 该方法进一步包括: The terminal learns that the downloaded JavaScript file is a compiled and serialized binary file according to the identifier characters in the received JavaScript file. Preferably, the method further comprises:
该终端根据接收到的 JavaScript文件中编译器的版本号, 获知该序列化 后的二进制文件是否和该终端上的 JavaScript引擎兼容。 较优的, 如果该版 本与终端上的 JavaScript引擎兼容不兼容, 终端可以拒绝执行该 JavaScript 文件。  The terminal knows whether the serialized binary file is compatible with the JavaScript engine on the terminal according to the version number of the compiler in the received JavaScript file. Preferably, if the version is not compatible with the JavaScript engine on the terminal, the terminal can refuse to execute the JavaScript file.
较优的, 该方法进一步包括:  Preferably, the method further comprises:
当该终端获知该 JavaScript文件是 JavaScript源文件时, 进行编译并执 行该 JavaScript源文件。  When the terminal knows that the JavaScript file is a JavaScript source file, it compiles and executes the JavaScript source file.
相应的, 前文中已经提供了一种能执行移动微件 Widget应用的终端, 该 终端具体可以是但不限于手机, 移动手持设备, PDA, 个人计算机等等。 如 图 11所示为本发明实施例所提供终端的结构示意图, 所述终端包括:  Correspondingly, a terminal capable of executing a mobile widget Widget application has been provided in the foregoing, and the terminal may specifically be, but not limited to, a mobile phone, a mobile handheld device, a PDA, a personal computer or the like. FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal includes:
脚本下载模块, 用于从下载服务器上下载 Java脚本 JavaScript文件, 该 JavaScript文件为已经编译过并序列化后的二进制文件;  a script downloading module, configured to download a Java script JavaScript file from a download server, the JavaScript file being a binary file that has been compiled and serialized;
JavaScript引擎, 用于当获知该 JavaScript文件为编译过并序列化后的 二进制文件时, 执行该二进制文件。  The JavaScript engine is used to execute the binary file when it knows that the JavaScript file is a compiled and serialized binary file.
在具体实现过程中, 该 JavaScript引擎根据接收到的 JavaScript文件中 的标识字符, 获知所下载的 JavaScri pt文件为编译过并序列化后的二进制文 件。  In the specific implementation process, the JavaScript engine knows that the downloaded Javascript file is a compiled and serialized binary file according to the identifier characters in the received JavaScript file.
较优的, 该 JavaScript引擎可以进一步用于根据接收到的 JavaScript文 件中编译器的版本号, 获知该序列化后的二进制文件是否和该终端上的 JavaScript引擎兼容。  Preferably, the JavaScript engine can be further configured to know whether the serialized binary file is compatible with the JavaScript engine on the terminal according to the version number of the compiler in the received JavaScript file.
较优的, 该 JavaScript引擎可以进一步用于当该终端获知该 JavaScript 文件是 JavaScript源文件时, 进行编译并执行该 JavaScript源文件。 值得注意的是, 上述装置和终端实施例中, 所包括的各个模块只是按照 功能逻辑进行划分的, 但并不局限于上述的划分, 只要能够实现相应的功能 即可; 另外, 各功能单元的具体名称也只是为了便于相互区分, 并不用于限 制本发明的保护范围。 Preferably, the JavaScript engine can be further used when the terminal knows the JavaScript When the file is a JavaScript source file, compile and execute the JavaScript source file. It should be noted that, in the foregoing apparatus and terminal embodiment, each module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; The specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
另外, 本领域普通技术人员可以理解实现上述实施例方法中的全部或部 分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种 计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光 盘等。 综上所述, 本发明实施例可以去除移动 widget在启动时对其中 JavaScript的编译过程, 减少了移动 widget应用的启动时间, 从而提升了移 动 Widget应用的性能, 改善了用户体验。 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不 局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围 内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保护范围为准。  In addition, those skilled in the art can understand that all or part of the steps of implementing the above embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium, as mentioned above. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like. In summary, the embodiment of the present invention can remove the compilation process of the mobile widget during startup, and reduce the startup time of the mobile widget application, thereby improving the performance of the mobile widget application and improving the user experience. The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of it within the technical scope disclosed by the embodiments of the present invention. Variations or substitutions are intended to be covered by the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 Claim
1、 一种提升移动微件 Widget应用性能的方法, 其特征在于, 所述 方法包括:  A method for improving the performance of a mobile widget Widget application, the method comprising:
在将开发的移动 Widget应用上传到下载服务器之前,对所述移动 Widget 应用中的 Java脚本 JavaScript进行编译;  Compiling the Java script JavaScript in the mobile widget application before uploading the developed mobile widget application to the download server;
将编译后的 JavaScript按照终端上 JavaScript虚拟机可读取的格式重新 打包,并将该重新打包后的移动 Widget应用上传到所述下载服务器供所述终 端下载使用。  The compiled JavaScript is repackaged according to a format readable by the JavaScript virtual machine on the terminal, and the repackaged mobile Widget application is uploaded to the download server for downloading by the terminal.
2、 如权利要求 1所述的方法, 其特征在于, 所述对所述移动 Widget应用 中的 Java脚本 JavaScript进行编译, 具体包括:  2. The method according to claim 1, wherein the compiling the Java script JavaScript in the mobile Widget application comprises:
将开发的移动 Widget应用上传到 Widget服务器, 由所述 Widget服务器 对所述移动 Widget应用中的 JavaScript进行编译。  The developed mobile Widget application is uploaded to the Widget server, and the JavaScript in the mobile Widget application is compiled by the Widget server.
3、 如权利要求 2所述的方法, 其特征在于, 在由所述 Widget服务器对所 述移动 Widget应用中的 Java脚本 JavaScript进行编译之前, 所述方法还包 括:  3. The method of claim 2, wherein before the compiling, by the Widget server, the Java script JavaScript in the mobile widget application, the method further comprises:
Widget服务器对接收的移动 Widget应用进行分拣, 将不同的移动 Widget应用划分成适应于不同终端类型的类别,使不同类型的终端在下载移 动 Widget应用时, 只获取到适合该类型终端运行的移动 Widget应用。  The Widget server sorts the received mobile Widget application, and divides the different mobile Widget applications into categories adapted to different terminal types, so that different types of terminals only obtain mobiles suitable for the type of terminal when downloading the mobile Widget application. Widget application.
4、 如权利要求 1所述的方法, 其特征在于, 所述对所述移动 Widget应用 中的 Java脚本 JavaScript进行编译, 具体包括:  The method according to claim 1, wherein the compiling the Java script JavaScript in the mobile Widget application comprises:
在将开发的移动 Widget应用上传到 Widget服务器之前,在开发人员的客 户端上对该移动 Widget应用中的 JavaScript进行编译。 Compile the JavaScript in the mobile Widget application on the developer's client before uploading the developed mobile Widget application to the Widget server.
5、 如权利要求 1-4其中之一所述的方法, 其特征在于, 所述对所述移动 Widget应用中的 Java脚本 JavaScript进行编译, 具体包括: The method according to any one of claims 1-4, wherein the compiling the Java script JavaScript in the mobile Widget application comprises:
提取该移动 Widget应用中 JavaScript的源文件, 将其以文件为单位进行 编译;  Extract the source file of the JavaScript in the mobile widget application, and compile it in units of files;
将编译结果存为文件名和原来相同的二进制文件, 用该被编译过并序列 化后的二进制文件替代原来的 JavaScript源文件。  Save the compilation result as the same binary file name as the original, and replace the original JavaScript source file with the compiled and serialized binary file.
6、 如权利要求 5所述的方法, 其特征在于, 所述方法还包括: 在被编译过并序列化后的二进制文件的开头放置标识字符,使所述终端 上的 JavaScript引擎在读取到所下载的移动 Widget应用中的 JavaScript文件 时, 能根据该标识字符获知该 JavaScript文件是 JavaScript源文件还是编译 过并序列化后的二进制文件。  6. The method according to claim 5, wherein the method further comprises: placing a identification character at the beginning of the compiled and serialized binary file, so that the JavaScript engine on the terminal reads When the JavaScript file in the downloaded mobile Widget application is downloaded, it can be known according to the identification character whether the JavaScript file is a JavaScript source file or a compiled and serialized binary file.
7、 如权利要求 6所述的方法, 其特征在于, 所述方法还包括: 在所述标识字符后放置对 JavaScript源文件进行编译的编译器的版本 号, 以使所述终端上的 JavaScript引擎根据该编译器的版本号获知该序列化 后的二进制文件是否和所述终端上的 JavaScript引擎兼容。  7. The method according to claim 6, wherein the method further comprises: placing a version number of a compiler that compiles the JavaScript source file after the identifier character, so that the JavaScript engine on the terminal It is known from the version number of the compiler whether the serialized binary file is compatible with the JavaScript engine on the terminal.
8、 一种提升移动微件 Widget应用性能的装置, 其特征在于, 所述装置 包括:  8. An apparatus for improving performance of a mobile widget Widget application, the apparatus comprising:
脚本编译模块, 用于在将开发的移动 Widget应用上传到下载服务器之 前, 对所述移动 Widget应用中的 Java脚本 JavaScript进行编译;  a script compiling module, configured to compile the Java script JavaScript in the mobile Widget application before uploading the developed mobile Widget application to the download server;
打包模块, 用于将编译后的 JavaScript按照终端上 JavaScript虚拟机可 读取的格式重新打包;  a packaging module for repackaging the compiled JavaScript in a format readable by the JavaScript virtual machine on the terminal;
应用上传模块,用于将重新打包后的移动 Widget应用上传到所述下载服 务器供所述终端下载使用。 An application uploading module, configured to upload the repackaged mobile Widget application to the download service The server is for downloading and using by the terminal.
9、 如权利要求 8所述的装置, 其特征在于, 所述脚本编译模块设置在 Widget服务器, 进一步用于在开发的移动 Widget应用上传到 Widget服务器 时, 对所述移动 Widget应用中的 JavaScript进行编译。  The device according to claim 8, wherein the script compiling module is disposed in the Widget server, and is further configured to: when the developed mobile Widget application is uploaded to the Widget server, perform the JavaScript in the mobile Widget application. Compile.
10、 如权利要求 9所述的装置, 其特征在于, 所述装置还包括: 应用分拣模块, 用于对接收的移动 Widget应用进行分拣, 将不同的移动 Widget应用划分成适应于不同终端类型的类别,使不同类型的终端在下载移 动 Widget应用时, 只获取到适合该类型终端运行的移动 Widget应用。  The device according to claim 9, wherein the device further comprises: an application sorting module, configured to sort the received mobile Widget application, and divide different mobile Widget applications into different terminals. The type of the type, when different types of terminals download the mobile Widget application, only get the mobile Widget application suitable for the terminal running.
11、 如权利要求 8所述的装置, 其特征在于, 所述脚本编译模块设置在 开发人员的客户端,进一步用于在开发的移动 Widget应用上传到 Widget服务 器之前, 对该移动 Widget应用中的 JavaScript进行编译。  The device according to claim 8, wherein the script compiling module is disposed on a client of the developer, and is further configured to: before the developed mobile Widget application is uploaded to the Widget server, in the mobile Widget application JavaScript is compiled.
12、 如权利要求 8所述的装置, 其特征在于, 所述装置还包括: 标识设置模块, 用于在被编译过并序列化后的二进制文件的开头放置标 识字符, 使所述终端上的 JavaScript引擎在读取到所下载的移动 Widget应用 中的 JavaScript文件时, 能根据该标识字符获知该 JavaScript文件是 JavaScript源文件还是编译过并序列化后的二进制文件。  The device according to claim 8, wherein the device further comprises: an identifier setting module, configured to place an identifier character at the beginning of the compiled and serialized binary file, so as to be on the terminal When the JavaScript engine reads the JavaScript file in the downloaded mobile Widget application, it can know whether the JavaScript file is a JavaScript source file or a compiled and serialized binary file according to the identifier character.
13、 如权利要求 12所述的装置, 其特征在于, 所述装置还包括: 版本号设置模块, 用于在所述标识字符后放置对 JavaScript源文件进行 编译的编译器的版本号, 以使所述终端上的 JavaScript引擎根据该编译器的 版本号获知该序列化后的二进制文件是否和所述终端上的 JavaScript引擎兼 容。  The device according to claim 12, wherein the device further comprises: a version number setting module, configured to: after the identifier character, place a version number of a compiler that compiles the JavaScript source file, so that The JavaScript engine on the terminal knows whether the serialized binary file is compatible with the JavaScript engine on the terminal according to the version number of the compiler.
14、 一种在终端上执行移动微件 Widget应用的方法, 其特征在于, 终端从下载服务器上下载 Java脚本 JavaScript文件, 所述 JavaScript文 件为已经编译过并序列化后的二进制文件; 14. A method of executing a mobile widget Widget application on a terminal, wherein: The terminal downloads a Java script JavaScript file from the download server, where the JavaScript file is a binary file that has been compiled and serialized;
当所述终端获知所述 JavaScript文件为编译过并序列化后的二进制文件 时, 执行所述二进制文件。  The binary file is executed when the terminal learns that the JavaScript file is a compiled and serialized binary file.
15、 如权利要求 14所述的方法, 其特征在于, 所述终端获知所述 15. The method of claim 14, wherein the terminal learns the
JavaScript文件为编译过并序列化后的二进制文件, 具体包括: The JavaScript file is a compiled and serialized binary file, which specifically includes:
所述终端根据接收到的 JavaScri pt文件中的标识字符, 获知所下载的 JavaScript文件为编译过并序列化后的二进制文件。  The terminal learns that the downloaded JavaScript file is a compiled and serialized binary file according to the identifier characters in the received Javascript file.
16、 如权利要求 15所述的方法, 其特征在于, 所述方法进一步包括: 所述终端根据接收到的 JavaScript文件中编译器的版本号, 获知该序列 化后的二进制文件是否和所述终端上的 JavaScript引擎兼容。  The method according to claim 15, wherein the method further comprises: the terminal, according to the version number of the compiler in the received JavaScript file, whether the serialized binary file and the terminal are known The JavaScript engine is compatible.
17、 如权利要求 14所述的方法, 其特征在于, 所述方法进一步包括: 当所述终端获知所述 JavaScript文件是 JavaScript源文件时, 进行编译 并执行所述 JavaScript源文件。  The method according to claim 14, wherein the method further comprises: compiling and executing the JavaScript source file when the terminal learns that the JavaScript file is a JavaScript source file.
18、 一种能执行移动微件 Widget应用的终端, 其特征在于, 所述终端包 括:  18. A terminal capable of executing a mobile widget Widget application, wherein the terminal comprises:
脚本下载模块, 用于从下载服务器上下载 Java脚本 JavaScript文件, 所 述 JavaScript文件为已经编译过并序列化后的二进制文件;  a script downloading module, configured to download a Java script JavaScript file from the download server, the JavaScript file being a compiled and serialized binary file;
JavaScript引擎, 用于当获知所述 JavaScript文件为编译过并序列化后 的二进制文件时, 执行所述二进制文件。  A JavaScript engine is configured to execute the binary file when it is known that the JavaScript file is a compiled and serialized binary file.
19、 如权利要求 18所述的终端, 其特征在于,  19. The terminal of claim 18, wherein:
所述 JavaScript引擎根据接收到的 JavaScript文件中的标识字符, 获知 所下载的 J avaScri pt文件为编译过并序列化后的二进制文件。 The JavaScript engine knows based on the identifier characters in the received JavaScript file The downloaded Javascript file is a compiled and serialized binary.
20、 如权利要求 19所述的终端, 其特征在于,  20. The terminal of claim 19, wherein:
所述 JavaScript引擎进一步用于根据接收到的 JavaScript文件中编译器 的版本号, 获知该序列化后的二进制文件是否和所述终端上的 Ja vaScri pt引 擎兼容; 当不兼容时, 所述终端拒绝执行所述 JavaScript文件。  The JavaScript engine is further configured to: according to the version number of the compiler in the received JavaScript file, whether the serialized binary file is compatible with the Ja GridScript engine on the terminal; when not compatible, the terminal rejects Execute the JavaScript file.
21、 如权利要求 18所述的终端, 其特征在于,  21. The terminal of claim 18, wherein:
所述 JavaScript引擎进一步用于当所述终端获知所述 JavaScript文 件是 JavaScript源文件时, 进行编译并执行所述 JavaScript源文件。  The JavaScript engine is further configured to compile and execute the JavaScript source file when the terminal learns that the JavaScript file is a JavaScript source file.
PCT/CN2011/084103 2010-12-16 2011-12-16 Method and device for improving performance of mobile widget WO2012079531A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011800038094A CN102725732A (en) 2010-12-16 2011-12-16 Method and device for improving mobile Widget application performance
EP11848446.8A EP2597568A4 (en) 2010-12-16 2011-12-16 Method and device for improving performance of mobile widget

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201110409640 2010-12-16
CN201010606935.6 2010-12-16
CN201110409640.4 2010-12-16
CN2010106069356A CN102141914A (en) 2010-12-16 2010-12-16 Method and device for enhancing performance of mobile Widget application

Publications (1)

Publication Number Publication Date
WO2012079531A1 true WO2012079531A1 (en) 2012-06-21

Family

ID=46244117

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084103 WO2012079531A1 (en) 2010-12-16 2011-12-16 Method and device for improving performance of mobile widget

Country Status (2)

Country Link
EP (1) EP2597568A4 (en)
WO (1) WO2012079531A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579096A (en) * 2020-12-18 2021-03-30 北京百度网讯科技有限公司 Method, device, equipment and medium for compiling and loading small program starting file

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119944B (en) * 2015-09-23 2019-01-18 北京金山安全软件有限公司 Application starting method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100626A1 (en) * 2008-09-15 2010-04-22 Allen Stewart O Methods and apparatus related to inter-widget interactions managed by a client-side master
CN101799766A (en) * 2010-03-26 2010-08-11 青岛海信电器股份有限公司 Method and device for analyzing script file by using third engine in Widget engine
CN101854371A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method and device for calling and processing JavaScript object
CN102141914A (en) * 2010-12-16 2011-08-03 华为技术有限公司 Method and device for enhancing performance of mobile Widget application

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067575A (en) * 1995-12-08 2000-05-23 Sun Microsystems, Inc. System and method for generating trusted, architecture specific, compiled versions of architecture neutral programs
US7275243B2 (en) * 2002-03-22 2007-09-25 Sun Microsystems, Inc. Mobile download system
US7614052B2 (en) * 2004-01-09 2009-11-03 Nexaweb Technologies Inc. System and method for developing and deploying computer applications over a network
US8811968B2 (en) * 2007-11-21 2014-08-19 Mfoundry, Inc. Systems and methods for executing an application on a mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100626A1 (en) * 2008-09-15 2010-04-22 Allen Stewart O Methods and apparatus related to inter-widget interactions managed by a client-side master
CN101854371A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method and device for calling and processing JavaScript object
CN101799766A (en) * 2010-03-26 2010-08-11 青岛海信电器股份有限公司 Method and device for analyzing script file by using third engine in Widget engine
CN102141914A (en) * 2010-12-16 2011-08-03 华为技术有限公司 Method and device for enhancing performance of mobile Widget application

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579096A (en) * 2020-12-18 2021-03-30 北京百度网讯科技有限公司 Method, device, equipment and medium for compiling and loading small program starting file
CN112579096B (en) * 2020-12-18 2024-03-19 北京百度网讯科技有限公司 Method, device, equipment and medium for compiling and loading applet startup file

Also Published As

Publication number Publication date
EP2597568A1 (en) 2013-05-29
EP2597568A4 (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN110990731B (en) Rendering method, device and equipment of static webpage and computer storage medium
Teixeira Professional Node. js: Building Javascript based scalable software
US8701104B2 (en) System and method for user agent code patch management
KR20160061305A (en) Method and apparatus for customized software development kit (sdk) generation
CN111831538B (en) Debugging method, device and storage medium
CN106055375B (en) Application program installation method and device
CN110213113B (en) WEB configuration management method of base station and base station
US20150143348A1 (en) Hybrid dynamic code compiling device, method, and service system thereof
Rischpater JavaScript JSON Cookbook
CN112631622A (en) Application installation method and device, server and computer readable medium
CN113946602A (en) Data searching method, device, equipment and medium
CN102725732A (en) Method and device for improving mobile Widget application performance
CN111723314B (en) Webpage display method and device, electronic equipment and computer readable storage medium
CN116166907B (en) Method and device for developing Web application by using WebAsssembly and service page compiling technology
WO2012079531A1 (en) Method and device for improving performance of mobile widget
CN107239265B (en) Binding method and device of Java function and C function
KR101070967B1 (en) Wipi contents download system and method thereof
CN110362317B (en) Code conversion method, device and storage medium
CN113590179B (en) Plug-in detection method and device, electronic equipment and storage medium
CN113641594B (en) Cross-terminal automatic testing method and related device
CN111151008B (en) Verification method and device for game operation data, configuration background and medium
CN110134904B (en) Page checking method, device, equipment and medium
CN103647841B (en) Method for analyzing and downloading network file address of thin client
CN113722639B (en) Website access verification method, device, electronic equipment and readable storage medium
CN110704055B (en) Interface preposition optimization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180003809.4

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11848446

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2011848446

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE