CN108319483A - Web page processing method, device, terminal and storage medium - Google Patents
Web page processing method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN108319483A CN108319483A CN201810091419.0A CN201810091419A CN108319483A CN 108319483 A CN108319483 A CN 108319483A CN 201810091419 A CN201810091419 A CN 201810091419A CN 108319483 A CN108319483 A CN 108319483A
- Authority
- CN
- China
- Prior art keywords
- webpage
- subapplication
- small routine
- data
- interface
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
An embodiment of the present invention provides a kind of web page processing method, device, terminal and storage mediums;Wherein, method includes:Female application program obtains subapplication;Obtain the business domain name configured in the subapplication;The network view component that the subapplication is created in female application program shows the webpage of the business domain name carried by the network view component in the page framework of the subapplication;Receive the data that the webpage is sent;The subapplication is sent said data to, the data are used to call corresponding subapplication interface to update the webpage for the subapplication.
Description
Technical field
The present invention relates to the communication technology more particularly to a kind of web page processing method, device, terminal and storage mediums.
Background technology
As the development of mobile Internet, client are universal in social networks, developer is using client etc. as mutually
Tool in networking provides service to the user by client.By taking client is wechat as an example, clothes are provided to the user in wechat
The scheme of business includes mainly following two:One is the pure net page schemes that service offer is realized by webpage and public platform, use
There is provided in wechat includes public platform custom menu, is shared with the modes such as friend and circle of friends, obtains visit of the user to webpage
It asks flow, while providing service to the user;Another kind is provided to the user by running a variety of different small routines in wechat
The service of differentiation.
In small routine in wechat when embedded web page, the highly effective and safe of the smooth operation and webpage of small routine how is realized
Update, the relevant technologies there is no effective solution.
Invention content
A kind of web page processing method of offer of the embodiment of the present invention, device, terminal and storage medium can realize that son applies journey
The smooth operation of subapplication and the highly effective and safe update of webpage when sequence embedded web page.
What the technical solution of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of web page processing method, including:
Female application program obtains subapplication;
Obtain the business domain name configured in the subapplication;
The network view component of the subapplication is created in female application program;
In the page framework of the subapplication, the business domain name of the network view component carrying is shown
Webpage;
Receive the data that the webpage is sent;
The data that the webpage is sent are sent to the subapplication, the data are used to supply the subapplication
Corresponding subapplication interface is called to update the webpage.
Second aspect, the embodiment of the present invention provide a kind of page processor, including:
Acquiring unit, for obtaining the business domain name configured in subapplication, and the acquisition subapplication;
Display unit, the network view component for creating the subapplication in female application program, and described
In the page framework of subapplication, the webpage of the business domain name carried by the network view component is shown;
Receiving unit, the data sent for receiving the webpage;
Transmission unit, for sending said data to the subapplication, the data are used to supply the sub- application
Routine call corresponding subapplication interface updates the webpage.
The third aspect, the embodiment of the present invention provide a kind of terminal, including:
Memory, for storing executable program;
Processor when for executing the executable program stored in the memory, is realized provided in an embodiment of the present invention
Web page processing method in subapplication.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, are stored with executable program, the executable program
When being executed by processor, the web page processing method in subapplication provided in an embodiment of the present invention is realized.
It is had the advantages that using the above embodiment of the present invention:
The mode of subapplication in the female application program of webpage insertion, provides service by webpage, is conducive in mother
Required service is quickly positioned in application program, saved by business in webpage using subapplication programming realize exploitation at
This;
The operational efficiency of subapplication is ensured, because even embedded a large amount of webpage, son in subapplication
Therefore the service logic of application program itself will not complicate;
Female application program provides the data relay function between subapplication and webpage, and webpage needs to apply journey by female
Sequence carries out the calling of subapplication interface, and it is hidden to effectively prevent the safety that the directly for use subapplication interface of webpage occurs
Suffer from.
Description of the drawings
Fig. 1 is the optional system architecture schematic diagram that client provided in an embodiment of the present invention runs small routine;
Fig. 2A is the schematic diagram provided in an embodiment of the present invention that the subapplication page is shown in female application program;
Fig. 2 B are a structural schematic diagram of the terminal of operation client provided in an embodiment of the present invention;
Fig. 3 is the configuration diagram of small routine provided in an embodiment of the present invention;
Fig. 4 is the composed structure schematic diagram of the client of the embodiment of the present invention;
Fig. 5 A are an optional flow diagram of web page processing method provided in an embodiment of the present invention;
Fig. 5 B are an optional flow diagram of web page processing method provided in an embodiment of the present invention;
Fig. 6 A are the interface schematic diagram one of Web Page Processing provided in an embodiment of the present invention;
Fig. 6 B are the interface schematic diagram two of Web Page Processing provided in an embodiment of the present invention;
Fig. 6 C are the interface schematic diagram three of Web Page Processing provided in an embodiment of the present invention;
Fig. 7 A are the interface schematic diagram one of carry out business domain name configuration provided in an embodiment of the present invention;
Fig. 7 B are the interface schematic diagram two of carry out business domain name configuration provided in an embodiment of the present invention;
The flow diagram of data communications methods of the Fig. 8 between webpage provided in an embodiment of the present invention and small routine.
Specific implementation mode
The present invention is further described in detail below with reference to the accompanying drawings and embodiments.It should be appreciated that mentioned herein
Embodiment is only used to explain the present invention, is not intended to limit the present invention.In addition, embodiment provided below is for implementing
The section Example of the present invention, rather than the whole embodiments for implementing the present invention are provided, in the absence of conflict, the present invention is implemented
Example record technical solution can be in any combination mode implement.
It should be noted that in embodiments of the present invention, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that method or device including a series of elements are not only wanted including what is be expressly recited
Element, but also include other elements that are not explicitly listed, or further include for implementation or device intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Method either in device there is also other relevant factor (such as the step in method or the unit in device, for example,
Unit can be partial circuit, segment processor, subprogram or software etc.).
For example, web page processing method provided in an embodiment of the present invention contains a series of step, but the present invention is implemented
The web page processing method that example provides is not limited to recorded step, similarly, page processor provided in an embodiment of the present invention
Include a series of units, but device provided in an embodiment of the present invention is not limited to include unit be expressly recited, it can be with
The unit of required setting when including to obtain relevant information or being handled based on information.
Before the present invention will be described in further detail, to involved in the embodiment of the present invention noun and term say
Bright, noun and term involved in the embodiment of the present invention are suitable for following explanation.
1) female application program, such as various clients, including the application journey for providing various services that is run in terminal
Sequence, typically, using wechat as the instant messaging application of representative.
2) subapplication, in female program applied and run in Program, such as small routine, small routine is based on forward
End language (such as JavaScript) exploitation, in hypertext markup language (HTML, HyperText Markup
Language the program that service) is realized in the page is saved by that can explain execution after client downloads in the client immediately
The step of installing in the client.
3) webpage view (Web-View) component, also referred to as view component, for realizing in webpage as click, combobox,
The container of various contents in the webpages such as table is responsible for the display of small routine, can be paved with the page of small routine automatically.
4) from the view layer of small routine to the communication modes of logical layer in webpage view component user's operation occurs for event
When generated data logical layer is transmitted in the form of event, execute the event handling function with event binding in logical layer,
Such as the various ability interfaces of calling system.
It is this referring next to Fig. 1, Fig. 1 based on the above-mentioned explanation to the noun and term involved in the embodiment of the present invention
One optional system architecture schematic diagram of the client operation small routine that inventive embodiments provide, the visitor being set in terminal 20
Family end 11 (such as wechat client WeChat) for the first time run small routine when, need download small routine, send initialization requests to
The server of small routine downloads small routine, and in order to improve speed of download, request can be redirected to content distributing network 13
(CDN, Content Delivery Network), suitable node server is (such as based on chain from content distributing network 13
Road most short conditional, load balancing condition etc. select node server) on, the server of small routine is replaced by content distributing network 13
The data packet (Package) of small routine, i.e., the source code of the described small routine, to realize under small routine are sent to client 11
It carries;After the completion of client initializes small routine, the load of the small routine page, little Cheng are carried out by explaining the code of small routine
Sequence is asked by transmission data to server 12, with obtain the page show and renewal of the page needed for data, for example, data
The form of AJAX request may be used in request, and AJAX is that " Asynchronous JavaScript And XML " is (asynchronous
JavaScript and XML), Web Server return to corresponding JSON object tags based on the Ajax requests that small routine is sent
The page data of (JavaScript Object Notation) format, and then small routine carries out page according to the JSON data of acquisition
Face renders, and realizes that the page of small routine in the client shows/update.
For example, the source code for the small routine that client 11 is obtained when downloading small routine includes following different type
File:1), the configuration file of .json suffix is used for small routine (overall situation) public setting, determines path, the window of page file
Oral thermometer is existing, network timeout period is arranged, multi-tag (tab) is arranged etc.;2), the configuration file of .js suffix, for realizing small routine
(overall situation) logic;3), the configuration file of .wxss suffix is used for the public style configuration of small routine.
It can be transported in terminal 20 referring to Fig. 2A as the example that female application program and subapplication are arranged in terminal
Row mother's application program, subapplication can be answered for extending mother for realizing modular function in female application program
With the function of program, or the function for replacing part in female application program;Subapplication can in female application program
In a manner of using automatic running, be run according to triggering command;Although merely illustrating a son in female application program in Fig. 2A
Application program can run multiple sons it will be appreciated that realizing the demand of function according to female application program in female application program
Application program.
Next, again using female application program as client, for subapplication is small routine, to operation client 11
The structure of terminal 20 illustrates.
Fig. 2 B are a structural schematic diagram of the terminal 20 of operation client provided in an embodiment of the present invention, referring to Fig. 2 B,
Terminal includes:Hardware layer 21, driving layer 22, operating system layer 23 and application layer 24.However, those skilled in the art answers
Work as understanding, the structure of the terminal 20 shown in Fig. 2 B is merely illustrative, does not constitute the restriction to terminal structure.For example, terminal can be with
It is arranged compared with the more components of Fig. 2 according to needs are implemented, or omission setting unit component is needed according to implementation.
Hardware layer 21 includes processor 211, memory 212, input/output interface 213 and communication interface 214, component
It can be through system bus connection communication.Wherein, central processing unit (CPU, Central may be used in processor 211
Processing Unit), microprocessor (MCU, Microcontroller Unit), application-specific integrated circuit (ASIC,
Application Specific Integrated Circuit) or logic programmable gate array (FPGA, Field-
Programmable Gate Array) it realizes.
Input/output interface 213 may be used such as display screen, touch screen, loud speaker input/output device and realize.
It is stored with storage medium in memory 212, storage medium may be used that flash memory, hard disk, CD etc. are non-volatile to be deposited
Storage media is realized, the volatile storage mediums such as dual-magnification technique (DDR, Double Data Rate) dynamic buffering can also be used real
It is existing, wherein being stored with to execute the executable program of the web page processing method in above-mentioned small routine.Illustratively, storage medium
It can be arranged in same position with the other assemblies of terminal, can also be distributed and be arranged relative to the other assemblies in terminal, storage
Operating system, network communication program are included at least in medium.
Communication interface 214 provides the access function of the external data storage medium that such as strange land is arranged to processor.
Drive layer 22, include for for operating system identify hardware layer and with the middleware 221 of each assembly communication of hardware layer,
Such as can be the set of the driver of each component for hardware layer.
Operating system layer 23, for providing user oriented graphical interfaces, illustratively, including driver 231, figure
Library 232, system framework 233, user interface external member 234, plug-in unit icon, desktop background and application icon, operating system layer are supported
User via graphical interfaces to the control embodiment of the present invention of equipment to the software such as OS Type, version of above equipment not
It limits, such as can be (SuSE) Linux OS, UNIX operating system or other operating systems.
Application layer 24, including small routine 241 and client 242, it is, of course, also possible to include for realizing other routines
The application of function, such as browser.
Next the framework of small routine in the embodiment of the present invention 241 is illustrated, Fig. 3 is provided in an embodiment of the present invention
The configuration diagram of small routine, as shown in figure 3, the core of small routine frame is the data binding system of a response, it is entire to be
System is divided into two pieces, respectively view (View) layer and application service (APPService) layer, and wherein application service layer is also referred to as patrolled
Layer is collected, view layer and the corresponding parameter of logical layer can be bound by small routine frame, such as parameter name makes data and view non-
It is often simple to keep synchronizing, when carrying out data modification, it is only necessary to change data in logical layer, view layer will be done accordingly
Update.View layer and logical layer are separated as shown in Figure 3 runs in two threads, and information exchange between the two, which passes through, is
The JSBridge of system layer is carried out, and view layer is communicated with logical layer by JSBridge.When user grasps in the page of small routine
Make (such as clicking operation), event (such as clicking operation pair of triggering and the component binding after the component capture user's operation of view layer
The click event answered), logical layer is sent event by JSBridge, logical layer parses event, executes correspondence and patrols
It collects (as called small routine interface) and passes to view layer data needed for carry out renewal of the page by JSBridge, view layer will
The data reaction of reception is view.
Next the view layer to small routine 241 and logical layer illustrate respectively respectively.
View layer by wechat markup language (WXML, WeiXin Markup language) and wechat style sheet (WXSS,
WeiXin Style Sheet) it writes, major function is to react the data of logical layer at view, while view layer being occurred
Event is sent to logical layer;Wherein, WXML is used to describe the structure of the page, and WXSS is used to describe the pattern of the page.
WXML is a set of markup language of Frame Design can build the knot of page-out in conjunction with infrastructure component, event system
Structure, WXML are rendered for the data binding, list rendering, condition of small routine, are provided template, event, reference.WXSS is a nesting
Formula language, the component pattern for describing WXML, determines the display effect of the component of WXML, have cascading style sheets (CSS,
Cascading Style Sheets) major part characteristic, and import two aspects in dimensional units, pattern and extended.
Wechat script (WXS, WeiXin Script) is that a set of script of small routine can be with structure in conjunction with WXML
The structure for building page-out is different language with Javascript, there is the grammer of oneself, and the Javascript that gets along well is consistent, fortune
Row environment and other Javascript codes are isolation, and the letter defined in other Javascript files cannot be called in WXS
Number, the API that small routine can not be called to provide, WXS can be used for page rendering, data processing etc..
Component (Component) is the basic component units of view layer, carries some functions and pattern, a component are usual
Including " starting label " and " end-tag ", " attribute " is used for modifying this component, and " content " is within two labels.Wherein,
The shared attribute of component includes:Pattern class (class), the inline style of component for uniquely identifying component (id), component
(style), whether component shows (hidden), Custom Attributes (data-*), can be carried out to the function or pattern of the component
It modifies, the event (bind*/catch*) of component.
Infrastructure component is divided into following eight class:View container (View Container), basic content (such as icon, word, into
Spend item), list (such as button, input frame, label), navigation (Navigation), multimedia (such as audio, picture, video),
Scheme (Map), painting canvas (Canvas) and customer service session.
Logical layer is sent to view layer after handling data, while receiving the event feedback of view layer, by
Written in JavaScript increases APP and Page methods on the basis of JavaScript, into the registration of line program and the page;It carries
Abundant API has been supplied, such as has played music, preview picture media API, upper transmitting file downloads the network APs I such as file, preserves text
Part opens the files API such as file, obtains local data cache, removes the data API such as local data cache, acquisition current location,
Device As PI, display the prompt box, the display menu list such as the positions API such as storing map is opened, system information is obtained, makes a phone call
Etc. interface As PI, sweep for another example and sweep, pay;Each page possesses independent action scope (to be stated in JavaScript file
Variable and function are only effective in this document;The variable and function that same name can be stated in different files, will not be mutual
Influence), and modularization is provided, some public codes (are detached as an individual js file, as a module to) energy
Power.
Event is the view layer of small routine to the communication mode of logical layer, can the page operation of user be fed back to logic
Layer is handled, and can be bundled on the component of view layer, when event is triggered, by passing them to logical layer, is executed
The event handling function of event is corresponded in logical layer, and (when component trigger event, logical layer binds the place of the event to event object
Reason function will receive an event object) additional information, such as id, dataset, touches etc. can be carried.
So far, terminal, client and the small routine for realizing the embodiment of the present invention are had been described that, continues to explain and realizes this hair
It is real that combination of hardware software may be used for realizing page processor of the embodiment of the present invention in the page processor of bright embodiment
The mode applied, such as executed by showing that the processor 211 in terminal 20 can be embodied directly in hardware decoding processor in Fig. 2 B
Complete, or in decoding processor hardware and software module combine execute completion.
Certainly, page processor can also be by the way of software implementation, the software implementation as page processor
Example, page processor may be embodied as the client 242 transported in terminal 20 as shown in Figure 2 B, referring to Fig. 4, client
242 include:
Acquiring unit 41, for obtaining the business domain name configured in small routine, and the acquisition small routine;
Display unit 42, the network view component for creating the small routine in the client, and in the small routine
Page framework in show network view component carrying the business domain name webpage;
Receiving unit 43, the data sent for receiving the webpage;
Transmission unit 44, for sending said data to the small routine, the data are used to supply the small routine tune
The webpage is updated with corresponding small routine interface.
In some embodiment of the invention, the acquiring unit is additionally operable to show the small routine in the client
Entrance;When receiving the operation for triggering the entrance, the request of small routine is sent to the background server of the client;
The source code of the small routine is received, the source code of the small routine includes the business domain name that can be accessed in small routine.
In some embodiment of the invention, the business domain name configured in the small routine meets the following conditions:Configuration is in institute
State the background server of client, and the domain name authentication for passing through the background server of the client.
In some embodiment of the invention, the client includes the client-side interface for calling;The receiving unit,
It is additionally operable to receive the calling that the webpage is directed to client-side interface;Obtain the number that the webpage is sent by the client-side interface
According to.
In some embodiment of the invention, the transmission unit is additionally operable to the data received being encapsulated as event;Hair
Send packaged event to the small routine;
Wherein, the determining small routine interface for needing to call and parameter after the event is parsed for the small routine, and according to
Identified parameter executes the calling of corresponding small routine interface.
In some embodiment of the invention, the receiving unit is additionally operable to after receiving the data that the webpage is sent, adjusts
Confirm the data receiver success to the webpage with call back function.
In some embodiment of the invention, creating unit is used in response to the small routine to the establishment network of client
The calling of view component interface creates the webpage view group for carrying out web displaying in the page framework of the small routine
Part.
In some embodiment of the invention, buffer unit calls the establishment network view for caching the small routine
The data transmitted in the form of parameter when component interface;It is created completion and the network view in the network view component
After the completion of component loads the webpage, the data of the caching are sent to the webpage.
Next web page processing method provided in an embodiment of the present invention is illustrated, first to the exemplary of Web Page Processing
Implement scene illustrates.
It, can be real by way of webpage and public platform as a kind of embodiment for providing service to the user in wechat
It is existing, include mainly following operation:First, developer applies for wechat public's account, configures development parameters, and access wechat provides
jssdk;Then, the purpose to be realized according to developer completes function in webpage in conjunction with the jssdk exploitations that wechat provides;Most
Afterwards, the use of provided in wechat includes public platform custom menu, be shared with the modes such as friend and circle of friends and obtain flow, for
Family provides service.However, the obvious transmission speed of ways of services supplied of such pure net page is slow, in pure net page of the user in wechat
Use not smooth enough, poor user experience when service.
As the another embodiment for providing service to the user in wechat, can be realized by way of small routine,
Mainly completed by following operation:First, developer logs in wechat public platform, and submission includes related certificate and small routine title
Deng completion application small routine account;Then, after the approval to small routine, in generation, is write according to the function module of required completion
After code and experience pass through, upload code submits audit;Finally, after the approval, small routine restocking provides service, by wechat
Extremely including the pages water conservancy diversion such as wechat group, the custom menu of public platform, mass-sending picture and text, account homepage (access for guiding user)
In small routine, quickly small routine is touched and leads wechat user.However, such simple embodiment for relying on small routine and realizing service,
Technical costs is high, and especially user exploitation in wechat itself has webpage function (such as to be realized in wechat using webpage function
Public platform), the function of public platform is transferred to small routine and is realized, needs to develop and use the work(that small routine realizes public platform again
Can, and the cost developed again is very high.
In practical applications, for following scene:For having the small routine of marketing demand, especially electric business type little Cheng
Sequence, the durability that the movable promotion page replaces the high and different channels of the frequency are high.If utilizing above-mentioned small routine or public affairs
Many numbers schemes are realized, the iteration update for constantly carrying out small routine or webpage function is needed, however, if carrying such as activity battalion
The webpage for selling content is embedded in small routine, then corresponding to movable change, it is only necessary to update corresponding webpage.
In practical applications, for following scene:Have complete APP or the developer of webpage function before this, in the short time
All functions can not be moved in small routine system.If small using the function to be migrated to be embedded in the form of a web page
It is realized in program, then can not only save development cost, but also the development time can be shortened.
Next the webpage of the embedded business domain name in small routine is illustrated.
In practical applications, the entitled HTTPS agreements of business domains belonging to the webpage of embedded small routine and pass through Web content
The business domain name that service provider (ICP, Internet Content Provider) puts on record.It is not due to that cannot be embedded in small routine
The webpage of the business domain name of small routine, therefore before webpage is embedded in small routine, need the background server of small routine to net
Business domain name belonging to page is verified, and in some embodiment of the invention, can be realized in the following way to business domain name
Verification:The background server (i.e. the background server of small routine) of client generates random verification file according to business domain name,
Developer downloads the verification file generated, the catalogue for the designated position then uploaded onto the server from the background server of client
(under the root of the business domain name of configuration), accessed by the background server of client and verify storage verification file and itself
Whether what is generated is consistent, if unanimously, verification passes through;If inconsistent, verification failure.
In some embodiment of the invention, the verification to business domain name can be also realized in the following way:Developer is to visitor
The background server at family end submits domain name system (DNS, Domain Name System) the solution new record of business domain name to be tested
Card.Wherein, dns resolution record includes the IP address corresponding to business domain name, and the background server of client judges the IP of itself
Whether address and the IP address in the solution new record submitted are identical, if identical, verification passes through;If it is not the same, then verifying
Failure.
Business domain name is carried out after verifying successfully, finishing service domain name the background server of small routine configuration, as
The stress of configuration, a small routine support the most 20 business domain names of configuration, a business domain name to support at most by 20 little Cheng
Sequence configures, and a small routine supports at most change 50 times for one month.
After to business domain name configuration successful, the page is created in small routine project, configuration path passes through Web-View groups
Part realizes that the webpage of business domain name is embedded in small routine.Web-View components, which are one, can be used for carrying webpage and current page
Container of a size can be paved with the entire small routine page automatically, and the webpage that attribute src references are shown in container is corresponding
The content of URL.Web-View components, the displaying of such webpage can be directly used just to keep using WXML language in the small routine page
Under small routine system, insertion of the webpage in small routine is realized.
Based on the above-mentioned explanation for being embedded in webpage to small routine, as web page processing method provided in an embodiment of the present invention
One alternative embodiment, Fig. 5 A show an optional flow signal of web page processing method provided in an embodiment of the present invention
Figure, referring to Fig. 5 A, web page processing method provided in an embodiment of the present invention is related to step 101 to step 105, is said individually below
It is bright.
Step 101:Client obtains small routine.
Step 102:Obtain the business domain name configured in the small routine.
Step 103:The network view component of the small routine is created in the client, and in the page frame of the small routine
The webpage of the business domain name of the network view component carrying is shown in frame.
Step 104:Receive the data that the webpage is sent.
Step 105:The small routine is sent said data to, the data are used to call for the small routine corresponding
Small routine interface updates the webpage.
It is realized using the above embodiment of the present invention by creating the network view component of small routine in the client
The webpage of embedded business domain name in small routine, and the communication of the data between embedded webpage and small routine is realized by client.
Fig. 5 B are another optional flow diagram of web page processing method provided in an embodiment of the present invention, referring to figure
5B, web page processing method provided in an embodiment of the present invention include:
Step 201:Client sends background server of the request to client of small routine.
Step 202:Client receives the source code of the small routine returned.
Client is by the request of transmission small routine to obtain small routine, and in some embodiment of the invention, client is (such as
Wechat client) can actively or according to user in the client search carry out small routine acquisition, as user enters client
The functional entrance of the small routine at end prompts user installation small routine, or downloads little Cheng according to user with the search of keyword
Sequence;The entrance for showing small routine in the client triggers the hair of the request of small routine when receiving the operation of triggering entrance
It send.
The source code of small routine includes the business domain name that can be accessed in small routine, i.e., the industry configured in small routine
Business domain name.The business domain name configured in small routine meets the following conditions:It is tested by domain name identity in the background server of client
It demonstrate,proves (i.e. to the verification of business domain name), and configures the background server in client.
In some embodiment of the invention, after client sends the request of small routine to the background server of client, visitor
The source code that the background server at family end can directly return to small routine is redirected to client, or by the request of small routine
CDN sends the source code of small routine to client by node server nearest apart from client in CDN.
It should be noted that only needing to download small routine when client runs small routine for the first time, that is, obtain small routine
Source code subsequently can be applied directly.
Step 203:The business domain name that client is configured from extraction small routine in the source code of small routine.
Step 204:Client creates the network view component of small routine, and shows network in the page framework of small routine
The webpage of the business domain name of view component carrying.
In some embodiment of the invention, client creates the Web-View components of small routine, and small routine calls Web-
View components show the webpage of the business domain name of network view component carrying in the page framework of small routine, realize in little Cheng
Embedded web page in sequence.
Step 205:In response to the operation to webpage, webpage sends data to client.
After user opens embedded webpage by small routine, user operates webpage, such as clicking operation, generation pair
The data that should be operated.In some embodiment of the invention, client includes the client-side interface (JSAPI) for calling, net
Page calls the interface of client to pass data to client.Required calling connects when data are included in realization function in webpage
Mouth and parameter;Wherein, function includes at least one of:Barcode scanning function, payment function, positioning function, webpage turn function.
In some embodiment of the invention, data have the format of regulation agreement, such as:Data are with the shape of json character strings
Formula presentation includes the name fields for the interface name for indicating to need to call, and indicates the structure of the args fields of the parameter of interface
Body.For example, for the scene of embedded web page redirected, data include that the interface for needing to call is navigation to, and parameter is
The webpage redirected;For another example the scene of the payment for embedded web page, data include that the interface for needing to call is payment interface,
Parameter is payment amount, beneficiary, payer etc..
Step 206:Client confirms data receiver success to webpage.
In some embodiment of the invention, client receive webpage send data after, can call call back function to
Webpage confirms that data receiver success, i.e. call back acknowledge receipt of.For example, after webpage calls successfully the JSAPI of client,
Triggering call back immediately.
Step 207:Client encapsulates data as event, transmission event to small routine.
The data include the small routine interface and parameter of required calling when realizing the function of updating the webpage;Institute
State that update the function of the webpage include at least one of:Barcode scanning function, payment function, positioning function, webpage turn function.
Here, after client receives the data that webpage is sent, data are sent to the logic of small routine in the form of event
Layer, i.e., notify small routine by WEB_INVOKE_APPSERVICE.
Step 208:Small routine parses event, and the small routine interface parameters and small routine for calling parsing to obtain
Interface.
As by webpage turn function, come the example of more new web page, the logical layer of small routine carries out the event received
Parsing obtains the data of webpage transmission, the interface for needing to call is determined according to the name fields in data, and according in data
Args fields obtain corresponding interface parameters, and then can be called to determining small routine interface.Such as determining interface is
Page up is returned to, then logical layer calls the interface of the return page up of small routine to carry out page jump.
As can be seen that after webpage gets the operation data of user, by going to small routine, small routine parsing in client
Laggard line interface calls, and crosses the border, is not asked by control etc. in this way, avoiding the interface authority that webpage calls the interface of small routine
Topic.
For example, the function of client transfer between small routine and webpage so that event (i.e. data notification event)
It can't be exposed to the developer of small routine, the small routine designed by developer naturally also cannot directly monitor the event.Tool
For body, the code of small routine is realized using the form of JavaScript closures, and after the embedded web page in small routine, small
The interface (i.e. WeiXinJSBridge objects) for monitoring event in the corresponding code of program is developed in JavaScript closures
Person rewrites, this results in the corresponding code of small routine that can not monitor net by reading global WeiXinJsBridge objects
Page is to the calling of small routine interface, to realize the limitation called to small routine interface.
In actual implementation, presetting identification in order to open the limited calling to small routine interface to webpage, in small routine has
The mechanism for limiting the name field values of quantity, to determine that webpage needs the interface called by the name field values for including in data
Name, and then call corresponding small routine interface under small routine system, that is to say, that it pre-sets small routine and is only capable of identification Finite Number
The interface name of amount, and other interface names in addition to preset interface name are not identified, therefore, even if the number that webpage is sent
According to name field values contain other interface messages, small routine also None- identified can not execute corresponding interface and call, this
Sample can accomplish that webpage calls the limited interface of small routine interface.
In some embodiment of the invention, in order to meet by small routine embed webpage state synchronized to small routine need
It asks, the name values of post Message can be increased, status data is packaged together by args parameters, these status datas are small
Program side can be first cached after receiving, until preset condition (when such as Web-View components are destroyed, retreat, share) is full
When sufficient, the status data of caching is sent to the server of small routine by small routine, i.e., the data of caching is given to developer.This
In, if being to do shopping small routine to the status data of webpage for example, user is currently in the embedded webpage of small routine with small routine
On played purchase order, the state of corresponding webpage is current order status.
Based on the above embodiment of the present invention, in practical applications, method further includes:
Small routine calls the establishment network view component interface (insert HTML Web-View) of client to inform client
End create Web-View components, while in the form of parameter by small routine data transfer to client;
Client end response creates Web-View components, and cache small routine to the calling of establishment network view component interface
The small routine data of transmission are sent after the completion of Web-View components are created completion and Web-View components load webpage
The small routine data of caching are to webpage.Such as small routine, by sending cookie to webpage, realization accesses same business domains again
The holding of state is logged in when name.
Wherein, small routine data may include:The current opening environmental data of webpage is embedded in small routine, and (i.e. characterization is current
The webpage being opened is the data opened in small routine environment), (i.e. user is in small routine for the login status data of small routine
Log-on message) etc.;Web-View components in the page framework of small routine for carrying out web displaying.
In some embodiment of the invention, small routine can accomplish account intercommunication, i.e. net with the webpage in embedded small routine
Page can obtain User Identity symbol openid, and this needs that the mandate of some public platform is relied on to log in ability, and the present invention is real
It applies example and uses unionid mechanism so that the same user unionid is unique, i.e. small routine under this developer's account
It is identical with the corresponding unionid of public platform that webpage relies on.
Using the above embodiment of the present invention, realizes the webpage of business domain name in the insertion of small routine, and pass through visitor
Data relay is done at family end realizes the data communication of embedded webpage and small routine, so, it can be achieved that by the net in existing client end
In page services migrating to small routine framework so that user can find service faster in the client, improve user experience;
By the way that the webpage of business domain name is embedded in small routine so that developer is not necessarily to re-start for existing complete application or webpage
Exploitation, reduces technological development cost;Meanwhile the data communication between webpage and small routine is controlled by client, is avoided
Arbitrary calling of the webpage to small routine interface caused by webpage and small routine direct communication.
Next by taking client is wechat client, small routine is Jingdone district shopping small routine as an example, to the embodiment of the present invention
Web page processing method illustrates, and Fig. 6 A are the interface schematic diagram one of Web Page Processing provided in an embodiment of the present invention, Fig. 6 B are this
The interface schematic diagram two for the Web Page Processing that inventive embodiments provide, the interface that Fig. 6 C are Web Page Processing provided in an embodiment of the present invention
Schematic diagram three;In conjunction with Fig. 6 A, Fig. 6 B and Fig. 6 C, the process of Web Page Processing provided in an embodiment of the present invention is illustrated.
Referring first to Fig. 6 A, shopping circle has used the ability that small routine embeds Web-View, i.e., corresponding net is enclosed in shopping
Page is embedded in Jingdone district shopping small routine, shows the common h5 pages here.When user uses Jingdone district shopping small routine for the first time,
Wechat downloads the source code of Jingdone district shopping small routine, and the homepage of small routine, user's click shopping are loaded after the shopping of initialization Jingdone district
Tab key is enclosed, the component of the view layer of small routine is captured the operation of user, will operate corresponding data and passed through in the form of event
JSBridge is sent to the logical layer of small routine, and logical layer calls the Web-View components load shopping of small routine to enclose corresponding net
Page, i.e., shown in Fig. 6 A.The embedded shopping hoop net page that user is shown based on small routine clicks a wherein information and enters details,
Jump to the page shown in Fig. 6 B, here redirect or common h5 webpages redirect.Under the details page of Fig. 6 B, show
One row's items list, user click one of commodity, triggering page jump to the commodity details page of small routine, embedded shopping
Hoop net page calls the interface (invokeMiniProgramAPI) that wechat provides, and user is clicked the data corresponding to commodity operation
(data format is such as:{name:’navigateTo’,arg:{url:' path/to/detail ' } }) it is sent to wechat;Wechat is not
Data are handled, the data received are encapsulated as event (WEB_INVOKE_APPSERVICE), event is sent and is purchased to Jingdone district
Object small routine;Jingdone district shopping small routine parses event, identifies to obtain based on the data being resolved to and needs to jump to Jingdone district
Other pages of shopping small routine are called into line interface based on the interface navigateTo that parsing obtains, are completed embedded webpage
Data between small routine communicate, and realize the page for jumping to small routine from embedded webpage, that is, jump to the page shown in Fig. 6 C.
The embodiment of above-mentioned Jingdone district shopping small routine, the shopping hoop net that small routine is embedded by the data relay of client
Data communication between page and Jingdone district shopping small routine is controlled, and avoids shopping hoop net page and Jingdone district shopping small routine is straight
The arbitrary calling connected letter and the interface of Jingdone district shopping small routine is carried out.
In the above-described embodiments, it is redirected by calling navigateTo interfaces to realize webpage, however in practical applications,
Corresponding different application scenarios can realize different functions in the webpage that small routine embeds, such as:User carries out webpage
After operation, webpage sends data to client for the operation of user, and client sends data to small routine in the form of event,
After small routine parsing event obtains the data of webpage transmission, learn that the interface that needs call is to sweep by the name fields in data
Code interface, is called barcode scanning interface;Alternatively, learning that the interface that needs call is that payment connects by the name fields in data
Mouthful, payment interface is called;Alternatively, learn that the interface that needs call is locating interface by the name fields in data,
Locating interface is called.In this way, realizing the indirect communication for embedding webpage and small routine in small routine by client, avoid
Arbitrary calling of the webpage to small routine interface caused by webpage and small routine direct communication.
As the specific example of the web page processing method in above-mentioned small routine in practical applications, next respectively from application
Scene, the configuration of business domain name, the data that embed in small routine between webpage and small routine, which communicate etc., to be illustrated.
The application scenarios of the web page processing method in small routine of the embodiment of the present invention are illustrated first.The present invention is implemented
Scheme in the webpage insertion small routine by business domain name that example proposes is suitable for application scenarios below:
Scene 1:As the small routine for having marketing demand, especially electric business type small routine, the movable promotion page is more
The durability for changing the high and different channels of the frequency is high;
For the above situation, if realized using small routine or public platform, need constantly to carry out small routine or webpage work(
The iteration update of energy, and if webpage is embedded in small routine, more new web page is only needed, because:
1) small routine itself and webpage are decouplings, thus when small routine more new web page, webpage can be for different channels
Small routine is multiplexed, and small routine itself need not carry out the iteration update of version, and due to having saved development cost, thus product is believed
Breath, which can be touched faster, reaches user;
2) mobile terminal and the ends PC can be accessed simultaneously, mobile terminal need not be directed to and the ends PC is updated respectively.
Scene 2:It, can not be all functions in the short time as having complete APP or the developer of webpage function before this
It moves in small routine system.
For the above scene, all it is more suitable for being supplied to solution as developer, i.e., arrives small routine webpage embedded
It is interior, realize the partial function of small routine.
Next the business domain name configuration in the embodiment of the present invention is illustrated.When developer is a part of webpage embedded
To small routine, first the domain name belonging to these webpages be configured to small routine backstage, verification submit small routine user whether be
The registration user of business domain name, verification just can be used after passing through.Fig. 7 A are that carry out business domain name provided in an embodiment of the present invention is matched
The interface schematic diagram one set, Fig. 7 B are the interface schematic diagram two of carry out business domain name configuration provided in an embodiment of the present invention, in conjunction with
Fig. 7 A and Fig. 7 B, include the following steps the configuration process of business domain name:
Step 301:Small routine backstage is logged in, selects developer's setting, after being verified by administrator's barcode scanning, open business domains
Name module.
In one embodiment, the relevant parameter of business domain name can be configured when being configured to business domain name, such as:
It supports the business domains name quantity of configuration to be configured small routine, support the small routine quantity of configuration to match business domain name
The modification number for the business domain name set, supported to small routine configures;In practical applications, as the stress of configuration, one
Small routine only supports the most 20 business domain names of configuration;One business domain name is only supported to be configured by most 20 small routines;One
Small routine only supports at most change 50 times for one month.
Step 302:After opening business domain name, need to download verification file, and verification file is put into the business domains of configuration
Under the root of name, the configuration completed after verifying successfully to business domain name is preserved.
The webpage of the business domain name of configuration successful is needed by that in Web-View component Configurations to small routine, can support small
Program, which is opened, embeds webpage, is returned in former small routine after also being clicked in supported web page.But to keep the strategy of small routine unified,
It is limited for the jssdk abilities in embedded webpage.Such as:Small routine wouldn't be supported to share circle of friends, and embed webpage
It is also a part for small routine, the upper right corner of same webpage is the small routine menu, does not support to share circle of friends.
Next the data embedded in small routine webpage and small routine are communicated and is illustrated.It is webpage embedded to arrive small routine
Among, it inevitably has data needs and is transmitted between webpage and small routine, and webpage is the extension as small routine,
This data interaction cannot excessively freely, and otherwise webpage can arbitrarily transmit commands to small routine, arbitrary small to adjust
Interface under procedure system, thus have interface authority cross the border, not by control the problems such as.
The flow diagram of data communications methods of the Fig. 8 between webpage provided in an embodiment of the present invention and small routine, referring to
Fig. 8, the data communications method between webpage and small routine provided in an embodiment of the present invention include:
Step 401:Page end calls the JSAPI that client provides, and passes data to client.
Here data can be arbitrary character string, identified by recipient and be assigned to meaning, SDK refers to small routine side frame
Frame.
Step 402:Client call call back function confirms the data receiver success to the webpage.
Step 403:Client receives to be sent event after data and is given to small routine immediately.
Step 404:Small routine parses data, calls corresponding small routine interface.
In one embodiment, the data that webpage is sent to by client transfer have preset protocol format, for example, number
The form of json character strings is presented according to this, including indicates the name fields for the interface name for needing to call, and indicates the ginseng of interface
The structure of several args fields.For example, the application scenarios of the page jump for embedded web page, the name fields that data include
It is the webpage redirected to carry the interface that needs call and carry the parameter of corresponding interface for navigation to, args fields.
Step 405:Client call call back function confirms that small routine interface calls to the webpage to be completed.
In practical applications, client until small routine interface call after the completion of again trigger call callback functions to
Webpage, which confirms to call, to be completed, and call result is returned to developer.
In practical applications, in order to meet the needs of developer needs webpage status data to be synchronized to small routine, but
It cannot be brought up to court when needed, on the basis of scheme above, the name values of one postMessage of identification, status number can be increased
It is packaged together according to by args parameters, these status datas can be first cached after small routine side receives, when some
When machine (when Web-View components are destroyed, retreat, share), the data of all cachings are just given to developer.
For the scheme of the data interaction between webpage and small routine, other than existing capabilities, can also extend from small routine
To the data transmission in this direction of webpage, for example, may comprise steps of:
Step 501, small routine needs logical by insertHTMLWebview interfaces when instantiating Web-View components
Know that client goes to create a Web-View component.
Step 502, client is transmitted to client when calling using data as one of parameter.
Step 503, caching data on client is injected into data when completion to be instantiated and webpage load being waited to complete
Webpage achievees the purpose that webpage transmission data.
In addition, instantiation Web-View components can also support setting cookie or self-defined HTTP Headers, to meet
The background service of developer can also receive small routine side and pass past data immediately.
The embodiment of the present invention additionally provides a kind of storage medium, for example, memory 212 shown in Fig. 2 B, being stored with can
Program is executed, when the executable code processor executes, realizes following operation:Obtain small routine;Obtain the small routine
The business domain name of middle configuration;The network view component of the small routine is created in the client, and in the small routine
The webpage of the business domain name of the network view component carrying is shown in page framework;Receive the number that the webpage is sent
According to;The small routine is sent said data to, the data are used to call corresponding interface to update for the small routine
State webpage.
In some embodiment of the invention, it is also realized when above-metioned instruction is executed by processor:It is shown in the client
The entrance of the small routine;When receiving the operation for triggering the entrance, sent to the background server of the client small
The request of program;The source code of the small routine is received, the source code of the small routine includes that can be accessed in small routine
Business domain name.
In some embodiment of the invention, it is also realized when above-metioned instruction is executed by processor:The client include for
The client-side interface of calling;Receive the calling that the webpage is directed to client-side interface;It obtains the webpage and passes through the client
The data that interface is sent.
In some embodiment of the invention, it is also realized when above-metioned instruction is executed by processor:The data of reception are sealed
Dress is event;Packaged event is sent to the small routine;Wherein, the event is needed for being determined after small routine parsing
The interface and parameter of calling, and call the determining interface.
In some embodiment of the invention, it is also realized when above-metioned instruction is executed by processor:Receive what the webpage was sent
After data, call back function is called to confirm the data receiver success to the webpage.
In some embodiment of the invention, it is also realized when above-metioned instruction is executed by processor:In response to the small routine pair
The calling of the establishment network view component interface of client creates aobvious for carrying out webpage in the page framework of the small routine
The webpage view component shown.
In some embodiment of the invention, it is also realized when above-metioned instruction is executed by processor:The small routine is cached to call
The data transmitted in the form of parameter when the establishment network view component interface;It has been created in the network view component
At and the network view component to the webpage load after the completion of, the data of the caching are sent to the webpage.
In conclusion the embodiment of the present invention has the advantages that:
Technique effect 1:It promotes small routine and webpage internal data unifies maintenance efficiency.
Before this in Technical Architecture, the user account system of public's account and small routine is all openid systems, for same
Account under a main body finally maps to unionid systems.
Webpage is equally applicable to the openid systems of public's account, therefore small routine by the configuration on public's account backstage
Inside either the small routine page still embeds webpage, and bottom data is all supported to get through management.Also, it is opened from small routine and embeds net
Page, then returned in small routine from embedded webpage, support the tracking that user behavior data is finally realized by configured transmission mode.
Technique effect 2:Promote the power that developer attempts small routine for the first time.
Developer needs to attempt the technical solution of small routine before this, needs to abandon existing complete application or net before this completely
Page, needs to develop complete set small routine again, therefore trial cost is very high for the first time, passes through and small routine is supported to embed webpage energy
Power solves the problem.
Technique effect 3:Promote experience and efficiency that wechat user receives service.
When developer moves to the web service in original wechat in small routine framework, user in wechat simultaneously more
Service is found soon, and also obtains more preferable experience.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (15)
1. a kind of web page processing method, which is characterized in that including:
Female application program obtains subapplication;
Obtain the business domain name configured in the subapplication;
The network view component of the subapplication is created in female application program;
In the page framework of the subapplication, the net of the business domain name carried by the network view component is shown
Page;
Receive the data that the webpage is sent;
The data that the webpage is sent are sent to the subapplication, the data are used to call for the subapplication
Corresponding subapplication interface updates the webpage.
2. according to the method described in claim 1, it is characterized in that, it is described mother application program obtain subapplication, including:
The entrance of the subapplication is shown in female application program;
When receiving the operation for triggering the entrance, subapplication is sent to the background server of female application program
Request;
The source code of the subapplication is received, the source code of the subapplication includes can be in subapplication
The business domain name of access.
3. according to the method described in claim 1, it is characterized in that,
The business domain name configured in the subapplication meets the following conditions:
Configure the background server in female application program, and the domain name body of the background server by female application program
Part verification.
4. according to the method described in claim 1, it is characterized in that, the data for receiving the webpage and sending, including:
Mother's application program includes female application programming interfaces for calling;
Receive calling of the webpage for female application programming interfaces;
Obtain the data that the webpage is sent by female application programming interfaces to female application program.
5. according to the method described in claim 1, it is characterized in that,
The data include the subapplication interface and parameter of required calling when realizing the function of updating the webpage;
The function of the update webpage includes at least one of:
Barcode scanning function, payment function, positioning function, webpage turn function.
6. according to the method described in claim 1, it is characterized in that, the data that the webpage is sent are sent to the son
Application program, including:
The data that the webpage is sent are encapsulated as event;
Packaged event is sent to the subapplication;
Wherein, the subapplication interface for needing to call and parameter are determined after the event is parsed for the subapplication, and
The calling of corresponding subapplication interface is executed according to identified parameter.
7. according to the method described in claim 1, it is characterized in that, further including:
When receiving the data that the webpage is sent, call back function is called to confirm the data receiver success to the webpage.
8. according to the method described in claim 1, it is characterized in that, further including:
When receiving calling of the subapplication to the establishment network view component interface of female application program,
Create the webpage view component for carrying out web displaying in the page framework of the subapplication;
It caches the subapplication and calls the data sent when the establishment network view component interface;
When the network view component is created completion and the webpage is completed in network view component load, to described
The data of the caching are injected in webpage.
9. a kind of page processor, which is characterized in that including:
Acquiring unit, for obtaining the business domain name configured in subapplication, and the acquisition subapplication;
Display unit, the network view component for creating the subapplication in female application program, in the sub- application
In the page framework of program, the webpage of the business domain name carried by the network view component is shown;
Receiving unit, the data sent for receiving the webpage;
Transmission unit, for sending said data to the subapplication, the data are used to supply the subapplication
Corresponding subapplication interface is called to update the webpage.
10. device as claimed in claim 9, which is characterized in that
The acquiring unit is additionally operable to show the entrance of the subapplication in female application program;
When receiving the operation for triggering the entrance, subapplication is sent to the background server of female application program
Request;
The source code of the subapplication is received, the source code of the subapplication includes can be in subapplication
The business domain name of access.
11. device as claimed in claim 9, which is characterized in that
The receiving unit is additionally operable to receive the calling that the webpage is directed to female application programming interfaces, and mother's application program connects
Mouth is the interface that can be called that female application program is provided to the webpage;
Obtain the data that the webpage is sent by female application programming interfaces.
12. device as claimed in claim 9, which is characterized in that
The transmission unit is additionally operable to the data received being encapsulated as event, sends packaged event to the son and answer
Use program;
Wherein, the subapplication interface for needing to call and parameter are determined after the event is parsed for the subapplication, and
The calling of corresponding subapplication interface is executed according to identified parameter.
13. device as claimed in claim 9, which is characterized in that further include:
Creating unit, for the tune in response to the subapplication to the establishment network view component interface of female application program
With webpage view component of the establishment for carrying out web displaying in the page framework of the subapplication;
Buffer unit, for caching when the subapplication calls the establishment network view component interface in the form of parameter
The data of transmission;
After the network view component is created completion and the webpage is completed in network view component load, to described
The data of the caching are injected in webpage.
14. a kind of terminal, which is characterized in that including:
Memory, for storing executable program;
Processor when for executing the executable program stored in the memory, is realized such as any one of claim 1 to 8 institute
The web page processing method stated.
15. a kind of storage medium, which is characterized in that it is stored with executable program, when the executable code processor executes,
Realize such as claim 1 to 8 any one of them web page processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810091419.0A CN108319483B (en) | 2018-01-30 | 2018-01-30 | Webpage processing method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810091419.0A CN108319483B (en) | 2018-01-30 | 2018-01-30 | Webpage processing method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108319483A true CN108319483A (en) | 2018-07-24 |
CN108319483B CN108319483B (en) | 2021-07-09 |
Family
ID=62888409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810091419.0A Active CN108319483B (en) | 2018-01-30 | 2018-01-30 | Webpage processing method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108319483B (en) |
Cited By (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109034901A (en) * | 2018-07-27 | 2018-12-18 | 广州壹豆网络科技有限公司 | A kind of data processing method and system based on social platform and electric business platform |
CN109146614A (en) * | 2018-07-27 | 2019-01-04 | 广州壹豆网络科技有限公司 | A kind of store data processing method and system based on small routine |
CN109271239A (en) * | 2018-08-10 | 2019-01-25 | 北京达佳互联信息技术有限公司 | Method, apparatus, system, equipment and the medium of data processing |
CN109388453A (en) * | 2018-09-07 | 2019-02-26 | Oppo广东移动通信有限公司 | Methods of exhibiting, device, storage medium and the electronic equipment of application page |
CN109561081A (en) * | 2018-11-13 | 2019-04-02 | 平安科技(深圳)有限公司 | Mobile terminal video conference method, device and storage medium, server |
CN109656558A (en) * | 2018-12-19 | 2019-04-19 | 四川虹美智能科技有限公司 | A kind of method and device generating UI plug-in unit |
CN109669736A (en) * | 2018-12-18 | 2019-04-23 | 北京城市网邻信息技术有限公司 | A kind of loading method of small routine, device, terminal device and storage medium |
CN109814942A (en) * | 2018-12-19 | 2019-05-28 | 北京城市网邻信息技术有限公司 | A kind of parameter processing method and device |
CN110113407A (en) * | 2019-04-30 | 2019-08-09 | 上海连尚网络科技有限公司 | Small routine state synchronization method, equipment and computer storage medium |
CN110290055A (en) * | 2019-06-25 | 2019-09-27 | 携程计算机技术(上海)有限公司 | The communication means and system of wechat small routine WebView and primary component |
CN110290216A (en) * | 2019-06-28 | 2019-09-27 | 百度在线网络技术(北京)有限公司 | Monitor execution method, instruction delivery method, device, equipment and storage medium |
CN110308917A (en) * | 2019-06-26 | 2019-10-08 | 深圳前海微众银行股份有限公司 | Small routine dissemination method, device, equipment and computer storage medium |
CN110333859A (en) * | 2019-05-06 | 2019-10-15 | 北京字节跳动网络技术有限公司 | Page creation method, apparatus, electronic equipment and computer readable storage medium |
CN110417642A (en) * | 2019-07-25 | 2019-11-05 | 上海派拉软件技术有限公司 | The integrated authentication method of all types of wechat applications is realized based on UnionID |
CN110471717A (en) * | 2019-08-21 | 2019-11-19 | 金瓜子科技发展(北京)有限公司 | A kind of data processing method and device |
CN110717128A (en) * | 2019-10-18 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for processing in-application webpage |
CN110753110A (en) * | 2019-10-23 | 2020-02-04 | 秒针信息技术有限公司 | Resource information distribution method, device and system based on small program |
CN111026438A (en) * | 2019-11-29 | 2020-04-17 | 百度在线网络技术(北京)有限公司 | Extraction method, device, equipment and medium for key information of small program package and page |
CN111031376A (en) * | 2019-11-25 | 2020-04-17 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on WeChat applet |
CN111314201A (en) * | 2018-12-11 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Application data processing method, system and related equipment |
CN111459578A (en) * | 2019-01-18 | 2020-07-28 | 阿里巴巴集团控股有限公司 | Webpage display method, device, equipment, system and readable storage medium |
CN111586128A (en) * | 2020-04-28 | 2020-08-25 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for acquiring applet data and storage medium |
CN111737032A (en) * | 2020-07-27 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Subprogram running method and device based on microkernel system and electronic equipment |
CN111861214A (en) * | 2020-07-21 | 2020-10-30 | 上海永银软件科技有限公司 | Online enterprise project management system |
CN113082721A (en) * | 2021-05-11 | 2021-07-09 | 腾讯音乐娱乐科技(深圳)有限公司 | Resource management method and device for application program of integrated game module, electronic equipment and storage medium |
CN113783966A (en) * | 2021-09-23 | 2021-12-10 | 北京火山引擎科技有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN114168215A (en) * | 2021-11-17 | 2022-03-11 | 广东太平洋互联网信息服务有限公司 | Plug-in processing method, system and medium for multiple applet functional modules |
CN114185551A (en) * | 2022-02-17 | 2022-03-15 | 浙江口碑网络技术有限公司 | Applet compiling method, applet running method and device and storage medium |
WO2023030095A1 (en) * | 2021-08-31 | 2023-03-09 | 花瓣云科技有限公司 | Content processing method and electronic device |
CN115994270A (en) * | 2023-03-23 | 2023-04-21 | 云账户技术(天津)有限公司 | UID-based user information collection method, system, electronic equipment and medium |
US11934315B1 (en) | 2022-10-19 | 2024-03-19 | Inductive Automation, LLC | Controlled activation of interdependent bindings |
CN118132879A (en) * | 2024-04-30 | 2024-06-04 | 浙江口碑网络技术有限公司 | Link data caching method and link data acquisition method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130205402A1 (en) * | 2013-03-15 | 2013-08-08 | Condel International Technologies Inc. | Apparatuses and methods for content protection using Digital Rights Management (DRM) in WebView or WebKit |
CN104035753A (en) * | 2013-03-04 | 2014-09-10 | 优视科技有限公司 | Double-WebView customized page display method and system |
-
2018
- 2018-01-30 CN CN201810091419.0A patent/CN108319483B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035753A (en) * | 2013-03-04 | 2014-09-10 | 优视科技有限公司 | Double-WebView customized page display method and system |
US20130205402A1 (en) * | 2013-03-15 | 2013-08-08 | Condel International Technologies Inc. | Apparatuses and methods for content protection using Digital Rights Management (DRM) in WebView or WebKit |
Non-Patent Citations (2)
Title |
---|
今天的代码你撸了嘛: ""微信小程序web-view组件横空出世"", 《HTTPS://WWW.CNBLOGS.COM/HJPTOPSHOW/ARTICLES/7782367.HTML》 * |
微信小程序: ""微信小程序开发之webview组件内网页实现微信原生支付"", 《HTTP://WWW.YIYONGTONG.COM/ARCHIVES/VIEW-1967-1.HTML》 * |
Cited By (48)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109034901A (en) * | 2018-07-27 | 2018-12-18 | 广州壹豆网络科技有限公司 | A kind of data processing method and system based on social platform and electric business platform |
CN109146614A (en) * | 2018-07-27 | 2019-01-04 | 广州壹豆网络科技有限公司 | A kind of store data processing method and system based on small routine |
CN109146614B (en) * | 2018-07-27 | 2021-05-28 | 广州壹豆网络科技有限公司 | Mall data processing method and system based on small program |
CN109271239A (en) * | 2018-08-10 | 2019-01-25 | 北京达佳互联信息技术有限公司 | Method, apparatus, system, equipment and the medium of data processing |
CN109388453A (en) * | 2018-09-07 | 2019-02-26 | Oppo广东移动通信有限公司 | Methods of exhibiting, device, storage medium and the electronic equipment of application page |
CN109561081A (en) * | 2018-11-13 | 2019-04-02 | 平安科技(深圳)有限公司 | Mobile terminal video conference method, device and storage medium, server |
CN109561081B (en) * | 2018-11-13 | 2023-04-07 | 平安科技(深圳)有限公司 | Mobile terminal video conference method and device, storage medium and server |
CN111314201A (en) * | 2018-12-11 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Application data processing method, system and related equipment |
CN111314201B (en) * | 2018-12-11 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Application data processing method, system and related equipment |
CN109669736A (en) * | 2018-12-18 | 2019-04-23 | 北京城市网邻信息技术有限公司 | A kind of loading method of small routine, device, terminal device and storage medium |
CN109814942A (en) * | 2018-12-19 | 2019-05-28 | 北京城市网邻信息技术有限公司 | A kind of parameter processing method and device |
CN109656558B (en) * | 2018-12-19 | 2022-04-19 | 四川虹美智能科技有限公司 | Method and device for generating UI plug-in |
CN109656558A (en) * | 2018-12-19 | 2019-04-19 | 四川虹美智能科技有限公司 | A kind of method and device generating UI plug-in unit |
CN109814942B (en) * | 2018-12-19 | 2020-09-08 | 北京城市网邻信息技术有限公司 | Parameter processing method and device |
CN111459578B (en) * | 2019-01-18 | 2023-05-05 | 阿里巴巴集团控股有限公司 | Webpage display method, device, equipment, system and readable storage medium |
CN111459578A (en) * | 2019-01-18 | 2020-07-28 | 阿里巴巴集团控股有限公司 | Webpage display method, device, equipment, system and readable storage medium |
CN110113407A (en) * | 2019-04-30 | 2019-08-09 | 上海连尚网络科技有限公司 | Small routine state synchronization method, equipment and computer storage medium |
CN110333859A (en) * | 2019-05-06 | 2019-10-15 | 北京字节跳动网络技术有限公司 | Page creation method, apparatus, electronic equipment and computer readable storage medium |
CN110333859B (en) * | 2019-05-06 | 2023-05-30 | 北京字节跳动网络技术有限公司 | Page creation method, page creation device, electronic device and computer readable storage medium |
CN110290055A (en) * | 2019-06-25 | 2019-09-27 | 携程计算机技术(上海)有限公司 | The communication means and system of wechat small routine WebView and primary component |
CN110308917B (en) * | 2019-06-26 | 2024-02-23 | 深圳前海微众银行股份有限公司 | Applet issuing method, device, equipment and computer storage medium |
CN110308917A (en) * | 2019-06-26 | 2019-10-08 | 深圳前海微众银行股份有限公司 | Small routine dissemination method, device, equipment and computer storage medium |
CN110290216A (en) * | 2019-06-28 | 2019-09-27 | 百度在线网络技术(北京)有限公司 | Monitor execution method, instruction delivery method, device, equipment and storage medium |
CN110417642A (en) * | 2019-07-25 | 2019-11-05 | 上海派拉软件技术有限公司 | The integrated authentication method of all types of wechat applications is realized based on UnionID |
CN110471717B (en) * | 2019-08-21 | 2022-11-11 | 金瓜子科技发展(北京)有限公司 | Data processing method and device |
CN110471717A (en) * | 2019-08-21 | 2019-11-19 | 金瓜子科技发展(北京)有限公司 | A kind of data processing method and device |
CN110717128A (en) * | 2019-10-18 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for processing in-application webpage |
CN110753110A (en) * | 2019-10-23 | 2020-02-04 | 秒针信息技术有限公司 | Resource information distribution method, device and system based on small program |
CN111031376A (en) * | 2019-11-25 | 2020-04-17 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on WeChat applet |
US12022150B2 (en) | 2019-11-25 | 2024-06-25 | Shanghai Bilibili Technology Co., Ltd. | Bullet comment processing method and system based on WeChat mini-program |
CN111031376B (en) * | 2019-11-25 | 2020-09-25 | 上海哔哩哔哩科技有限公司 | Bullet screen processing method and system based on WeChat applet |
CN111026438A (en) * | 2019-11-29 | 2020-04-17 | 百度在线网络技术(北京)有限公司 | Extraction method, device, equipment and medium for key information of small program package and page |
US11677838B2 (en) | 2020-04-28 | 2023-06-13 | Baidu Online Network Technology (Beijing) Co., Ltd. | Acquisition method, apparatus, device and storage medium for applet data |
CN111586128B (en) * | 2020-04-28 | 2023-06-09 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and storage medium for acquiring applet data |
CN111586128A (en) * | 2020-04-28 | 2020-08-25 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for acquiring applet data and storage medium |
CN111861214A (en) * | 2020-07-21 | 2020-10-30 | 上海永银软件科技有限公司 | Online enterprise project management system |
CN111737032B (en) * | 2020-07-27 | 2020-11-20 | 腾讯科技(深圳)有限公司 | Subprogram running method and device based on microkernel system and electronic equipment |
CN111737032A (en) * | 2020-07-27 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Subprogram running method and device based on microkernel system and electronic equipment |
CN113082721A (en) * | 2021-05-11 | 2021-07-09 | 腾讯音乐娱乐科技(深圳)有限公司 | Resource management method and device for application program of integrated game module, electronic equipment and storage medium |
WO2023030095A1 (en) * | 2021-08-31 | 2023-03-09 | 花瓣云科技有限公司 | Content processing method and electronic device |
CN113783966A (en) * | 2021-09-23 | 2021-12-10 | 北京火山引擎科技有限公司 | Data transmission method and device, readable medium and electronic equipment |
CN114168215A (en) * | 2021-11-17 | 2022-03-11 | 广东太平洋互联网信息服务有限公司 | Plug-in processing method, system and medium for multiple applet functional modules |
CN114168215B (en) * | 2021-11-17 | 2024-03-19 | 广东太平洋互联网信息服务有限公司 | Plug-in processing method, system and medium for multiple small program function modules |
CN114185551A (en) * | 2022-02-17 | 2022-03-15 | 浙江口碑网络技术有限公司 | Applet compiling method, applet running method and device and storage medium |
US11934315B1 (en) | 2022-10-19 | 2024-03-19 | Inductive Automation, LLC | Controlled activation of interdependent bindings |
US12038842B1 (en) | 2022-10-19 | 2024-07-16 | Inductive Automation, LLC | Controlled activation of interdependent bindings |
CN115994270A (en) * | 2023-03-23 | 2023-04-21 | 云账户技术(天津)有限公司 | UID-based user information collection method, system, electronic equipment and medium |
CN118132879A (en) * | 2024-04-30 | 2024-06-04 | 浙江口碑网络技术有限公司 | Link data caching method and link data acquisition method |
Also Published As
Publication number | Publication date |
---|---|
CN108319483B (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108319483A (en) | Web page processing method, device, terminal and storage medium | |
Subramanian et al. | Hands-On RESTful API Design Patterns and Best Practices: Design, develop, and deploy highly adaptable, scalable, and secure RESTful web APIs | |
US11652904B2 (en) | Systems and methods of token piggybacking | |
CN103927253B (en) | Multiple browser compatibility testing method and system | |
CN101023419B (en) | Method of providing a web page with inserted content | |
US20140281918A1 (en) | Systems and methods for configuration-based optimization by an intermediary | |
WO2015041711A1 (en) | Systems and methods for managing loading priority or sequencing of fragments of a web object | |
US20100229081A1 (en) | Method for Providing a Navigation Element in an Application | |
Aguilar | SignalR Programming in Microsoft ASP. NET | |
Qiao et al. | NDNBrowser: An extended web browser for named data networking | |
EP2748711A1 (en) | Data infrastructure for providing interconnectivity between platforms, devices, and operating systems | |
CN108885544A (en) | Front end page internationalization processing method, application server and computer readable storage medium | |
Limosani et al. | Connecting ROS and FIWARE: Concepts and tutorial | |
Acetozi | Pro Java Clustering and Scalability | |
Jackson | Building Microservices with Go | |
Prusty | Modern JavaScript Applications | |
Wettinger et al. | Streamlining APIfication by generating APIs for diverse executables using any2API | |
Manfield | Joomla for Developers | |
Cosmina et al. | Spring WebSocket Support | |
Elrom et al. | Angularjs seo | |
Pasquali | Deploying Node. js | |
Laznik | BPEL and Java Cookbook | |
Heinzl et al. | The web service browser: Automatic client generation and efficient data transfer for web services | |
Cosmina et al. | WebSocket | |
CN115293122A (en) | H5 data templating method, device and equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |