Method and system for orderly processing multiple Ajax data sources
A data source and function technology, applied in the direction of program control devices, etc., can solve the problems of uneven return data time, inability to determine the order of multiple requests to return data, accurate processing, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] The invention provides a method for orderly processing multiple Ajax data sources, figure 1 A flow chart of Embodiment 1 of the method for orderly processing multiple Ajax data sources of the present invention is shown, including:
[0025] Step S101: determining multiple Ajax data sources to be called and their calling order;
[0026] There are N Ajax data sources to be requested to read, and the sequence is determined to be Ajax1, Ajax2...AjaxN.
[0027] Step S102: Encapsulate each of the Ajax data sources into a corresponding data source function, the data source function defines a callback function and a global variable, the callback function is a parameter of the data source function, in the data source When the function is called, the data in the Ajax data source corresponding to the data source function is copied to the global variable;
[0028] Package Ajax1, Ajax2...AjaxN into corresponding data source functions ajaxFunction1, ajaxFunction2,...ajaxFunctionN, s...
Embodiment 2
[0039] The present invention also provides a system for orderly processing multiple Ajax data sources, image 3 It shows a schematic structural diagram of Embodiment 2 of the system for orderly processing multiple Ajax data sources of the present invention, including a determination module 101, a function encapsulation module 102, a nesting module 103 and an operation module 104;
[0040] The determining module 101 is used to determine multiple Ajax data sources to be called and their calling sequence;
[0041] The function encapsulation module 102 is used to encapsulate each of the Ajax data sources into a corresponding data source function, the data source function defines a callback function and a global variable, and the callback function is the data source function of the data source function parameter, when the data source function is called, the data in the Ajax data source corresponding to the data source function is copied to the global variable;
[0042] The nesting...
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