A method for controlling page jump based on web page assembly language
An assembly language, page jumping technology, applied in the direction of program code conversion, instrumentation, electrical digital data processing, etc., can solve the problem that WebAssembly cannot directly obtain BOM and DOMAPI, etc., and achieve the effect of web page security performance guarantee and code security performance directly.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0019] Example 1, such as figure 1 As shown, the overall processing flow of controlling page redirection based on WebAssembly is given, which mainly includes the following steps:
[0020] Step (1), implement a C++ function
[0021] The C++ function has a parameter through which the target URL address to be redirected can be received, and the parameter type is a string; in the function body, the incoming string needs to be transcoded first, and then the JavaScript function is called and Pass in the transcoded character array;
[0022] 1) String conversion
[0023] Loop through the target address string passed in as a function parameter, convert each character into UTF-8 standard encoding format, and store it in a character array. The purpose of transcoding the string is to avoid garbled characters caused by encoding errors when the address is passed into the JavaScript function.
[0024] 2) Call the JavaScript function
[0025] Through the macro function EM_ASM_ARGS provid...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com