CN111142990A - WeChat applet page display method and device and storage medium - Google Patents
WeChat applet page display method and device and storage medium Download PDFInfo
- Publication number
- CN111142990A CN111142990A CN201911241367.1A CN201911241367A CN111142990A CN 111142990 A CN111142990 A CN 111142990A CN 201911241367 A CN201911241367 A CN 201911241367A CN 111142990 A CN111142990 A CN 111142990A
- Authority
- CN
- China
- Prior art keywords
- page
- calculation
- state
- component object
- value
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000004364 calculation method Methods 0.000 claims abstract description 111
- 238000012544 monitoring process Methods 0.000 claims abstract description 33
- 230000001419 dependent effect Effects 0.000 claims abstract description 11
- 230000006870 function Effects 0.000 claims description 52
- 230000014509 gene expression Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 5
- 238000011156 evaluation Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
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/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The WeChat applet page display method comprises the following steps: when a page in the WeChat applet calls a preset function, acquiring a calculation object transmitted into the preset function and a page/component object in the page; monitoring the value taking and assignment operation of the state in the acquired page/component object to obtain the values of one or more calculation attributes contained in the calculation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively; and assigning the obtained value of the calculation attribute to a page/component object corresponding to the preset function so as to be displayed in the page of the WeChat applet. The method and the device can realize complex calculation of the WeChat small program.
Description
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method, an apparatus, and a storage medium for displaying a WeChat applet page.
Background
The applet is a new way to connect users and services, can be conveniently acquired and disseminated in the WeChat, and has excellent use experience. Applets are not a concept of emerging from air. As WebView in WeChat gradually became an important entrance to the Mobile Web, WeChat has an associated JS API, enabling Web developers to have more capabilities by exposing the interface of WeChat. The main development languages of the applet are JavaScript, WXSS styles and WXMl templates, and compared with the development of common web pages, the development of the applet has great similarity. The webpage programming adopts a combination of HTML + CSS + JS, wherein HTML is used for describing the structure of the current page, CSS is used for describing the appearance of the page, and JS is generally used for processing the interaction between the page and the user. Similarly, the same role is played in applets, wherein WXML plays a role similar to HTML, and WXSS plays a role similar to CSS. Secondly, the wechat applet also has a JSON configuration file, JSON is a data format and not a programming language, and JSON plays a role in static configuration in the applet. It can change the presentation of items and individual pages by configuration. The display used by each applet switches the main page and the first page, and the style is uniform.
In the WXML template of the wechat applet, dynamic data are all from data binding of the corresponding Page, and a Mustache syntax (double brace, identifier for identifying a variable) is used to wrap the variable, which can be used as follows: content, component attributes (required to be within a double quote), control attributes (required to be within a double quote), etc.
The native WXML template grammar can bind the logic state in the JavaScript into the WXML template, when the state changes, the data in the template can be automatically updated, and the latest state is displayed to a user. Dynamic data (state) is bound into the WXML template, however, in the WXML template syntax, only simple operation can be performed in double brackets { } of inserted variables: ternary operations, arithmetic operations, logical decisions, and the like.
For example, a simple expression:
<view hidden=″{{flag?true:false}}″>Hidden</view>
<view>{{a+b}}+{{c}}+d</view>
<view wx:if=″{{length>5}}″></view>
however, if a state needs to be re-exposed through a slightly more complex computational process, the native WXML template syntax cannot be implemented. Such as the following common requirement, a list that a user can search:
structure code of WNSL description page
At this point, the list simply shows all the data. If the search function of the search box is to be added, the list screening logic needs to be added to the WXML template:
<viewclass=″list-item″wx:for=″{{list.map(item=>item.indexOf(searchValue)>=0)}}″wx:key=″{{item}}″>{{item}}</view>
however, the WXML template only supports simple operations and does not support map, indexOf syntax (method of manipulating arrays), and the wechat applet developer tool can report errors: bad attr.
Disclosure of Invention
The application provides a method, a device and a storage medium for displaying a WeChat applet page, which can achieve the purpose of complex calculation of the WeChat applet.
The application provides a WeChat applet page display method, which comprises the following steps: when a page in the WeChat applet calls a preset function, acquiring a calculation object transmitted into the preset function and a page/component object in the page; monitoring the value taking and assignment operation of the state in the acquired page/component object to obtain the values of one or more calculation attributes contained in the calculation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively; and assigning the obtained value of the calculation attribute to a page/component object corresponding to the preset function so as to be displayed in the page of the WeChat applet.
In an exemplary embodiment, the monitoring the value taking and assigning operations of the states in the page/component object to obtain the values of the one or more computation attributes included in the computation object includes: when the value taking operation of the state of the page/component object is monitored, the dependency relationship between one or more calculation attributes contained in the calculation object and the state is stored; and when the assignment operation of the state of the page/component object is monitored, traversing the calculation attributes contained in the acquired calculation object, and obtaining the values of one or more calculation attributes contained in the calculation object according to the saved dependency relationship.
In an exemplary embodiment, when the value taking operation of the state of the page/component object is monitored, the storing the dependency relationship between each of the one or more computing attributes included in the computing object and the state includes: and when the value taking operation of the state of the page/component object depended on by the calculation attribute is monitored, the calculation expression or the calculation function of the calculation attribute based on the depended state is saved for each calculation attribute contained in the calculation object.
In an exemplary embodiment, the assigning the obtained value of the calculation attribute to the page/component object corresponding to the predetermined function to be displayed in the page of the WeChat applet further includes: when the assignment operation of any state of the page/component object is monitored, updating the value of the calculation attribute depending on the state according to the dependency relationship; and correspondingly updating the page/component object corresponding to the preset function according to the updated value of the calculation attribute.
In an exemplary embodiment, the monitoring the value taking and value assigning operations of the state in the acquired page/component object includes: and generating a Proxy instance, and intercepting the value taking and value assignment operation of the state in the acquired page/component object.
The application provides a little letter applet page display device includes: the acquisition module is used for acquiring a calculation object transmitted into a predetermined function and a page/component object in the page when the page in the WeChat applet calls the predetermined function; the monitoring module is used for monitoring the value taking and assignment operation of the state in the acquired page/component object to obtain the values of one or more calculation attributes contained in the calculation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively; and the assignment module is used for assigning the obtained value of the calculation attribute to the page/component object corresponding to the preset function so as to display the page/component object in the page of the WeChat applet.
In an exemplary embodiment, the monitoring module is configured to monitor a value taking and assigning operation of a state in the page/component object to obtain values of one or more computation attributes included in the computation object, where the step is to: the monitoring module is used for storing the dependency relationship between one or more calculation attributes contained in the calculation object and the state when the value taking operation of the state of the page/component object is monitored; and the monitoring module is used for traversing the calculation attributes contained in the acquired calculation object and obtaining the values of one or more calculation attributes contained in the calculation object according to the saved dependency relationship when the assignment operation of the state of the page/component object is monitored.
In an exemplary embodiment, the monitoring module is configured to, when a value taking operation of a state of the page/component object is monitored, store a dependency relationship between each of one or more computation attributes included in the computation object and the state, where the dependency relationship refers to: and the monitoring module is used for monitoring each calculation attribute contained in the calculation object, and storing a calculation expression or a calculation function of the calculation attribute based on the dependent state when the value taking operation of the state of the page/component object, which is dependent on the calculation attribute, is monitored.
The application provides a device for directionally delivering contents, which comprises a processor and a memory, wherein the memory is stored with a program for directionally delivering the contents; the processor is used for reading the program for targeted delivery of content and executing the method of any one of the above items.
The present application provides a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above.
Compared with the related art, the method and the device have the advantages that through the preset function arranged in the WeChat applet, when the page in the WeChat applet calls the preset function, the calculation object and the page/component object which are transmitted into the preset function are obtained; monitoring the value taking and assignment operation of the state in the page/component object to obtain the values of one or more calculation attributes contained in the calculation object; and assigning the obtained values of the calculation attributes to the page/component states corresponding to the preset functions to be displayed in the interface of the wechat applet, so that the calculated values obtained through complex calculation based on the existing states can be displayed in the page of the wechat applet.
In an exemplary embodiment, the method and the device for processing the complex computation can perform complex computation on a predetermined function computed based on the existing state of data in the JavaScript code, and then provide the complex computation to the WXML template for use.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. Other advantages of the present application may be realized and attained by the instrumentalities and combinations particularly pointed out in the specification and the drawings.
Drawings
The accompanying drawings are included to provide an understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the examples serve to explain the principles of the disclosure and not to limit the disclosure.
FIG. 1 is a flowchart of a WeChat applet page display method according to an embodiment of the present application;
FIG. 2 is a block diagram of an apparatus for displaying WeChat applet pages according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a specific implementation method of the predetermined function Computed according to the embodiment of the present application.
Detailed Description
The present application describes embodiments, but the description is illustrative rather than limiting and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or instead of any other feature or element in any other embodiment, unless expressly limited otherwise.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive concept as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive aspects to form yet another unique inventive aspect, as defined by the claims. Thus, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not limited except as by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
Further, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other orders of steps are possible as will be understood by those of ordinary skill in the art. Therefore, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Further, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
As shown in fig. 1, the method for displaying a wechat applet page in this embodiment includes the following steps:
s1, when a page in the WeChat applet calls a predetermined function, acquiring a calculation object transmitted into the predetermined function and a page/component object in the page;
s2, monitoring the value taking and assignment operation of the state in the acquired page/component object to obtain the values of one or more calculation attributes contained in the calculation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively;
and S3, assigning the obtained value of the calculation attribute to the page/component object corresponding to the preset function so as to be displayed in the page of the WeChat applet.
In an exemplary embodiment, in step S2, the monitoring the value taking and assigning operations of the states in the page/component object to obtain values of one or more computation attributes included in the computation object includes the following steps:
s20, when the value operation of the state of the page/component object is monitored, storing the dependency relationship between each of one or more calculation attributes contained in the calculation object and the state;
s21, when the assignment operation of the state of the page/component object is monitored, traversing the calculation attributes contained in the acquired calculation object, and obtaining the values of one or more calculation attributes contained in the calculation object according to the saved dependency relationship.
In an exemplary embodiment, in step S21, when the valuing operation of the state of the page/component object is monitored, the storing the dependency relationship between each of the one or more computation attributes included in the computation object and the state includes:
and when the value taking operation of the state of the page/component object depended on by the calculation attribute is monitored, the calculation expression or the calculation function of the calculation attribute based on the depended state is saved for each calculation attribute contained in the calculation object.
In an exemplary embodiment, in step S3, after assigning the obtained value of the calculation attribute to the page/component object corresponding to the predetermined function to be displayed in the page of the wechat applet, the method further includes:
when the assignment operation of any state of the page/component object is monitored, updating the value of the calculation attribute depending on the state according to the dependency relationship; and correspondingly updating the page/component object corresponding to the preset function according to the updated value of the calculation attribute.
In an exemplary embodiment, in step S2, the listening to the values and assignments of the states in the acquired page/component object includes: and generating a Proxy instance, and intercepting the value taking and value assignment operation of the state in the acquired page/component object.
In one exemplary embodiment, the above method is based on the JavaScript language and the wechat applet framework WXML.
In an exemplary embodiment, the above method is based on the proxy syntax in the ECMAScript 6 specification: proxy is intended to be a Proxy, which is used herein to mean that it "proxies" certain operations, and the syntax is as follows: var Proxy ═ new Proxy (target, handle);
all use of proxy objects is in this form above, except for the writing of the handler parameter. The new Proxy () represents to generate a Proxy instance, the target parameter represents to-be-intercepted target object, and the handler parameter is also an object used for customizing the interception behavior. proxy can intercept up to 13 operations, such as attribute evaluation and assignment operations.
In an exemplary embodiment, the predetermined function is a preset tool library computed and is available by being introduced into JavaScript of the wechat applet.
As shown in fig. 3, the method for implementing the predetermined function Computed in the embodiment of the present invention includes the following steps:
firstly, acquiring an original state and a calculation attribute extracted by an object; specifically, the incoming computed function is obtained: page or component objects (context) and compute objects (computed Funcs).
And secondly, monitoring is set, and the value and the assignment of the state (context. data) in the page object or the component object are monitored. When values are taken, the calculation of the calculation attributes and the assignment to the data operation functions are saved; and when assigning, saving the function list when executing value taking.
And thirdly, calculating values, circularly traversing the calculation objects, executing expressions of all calculation attributes, triggering the value taking operation of the state in the previous step when a certain existing state is used, and storing the calculation and assignment operation in a function list of related attributes.
Fourthly, calculating value assignment: the first computed attribute values are all assigned to a state object (context. data) for presentation on the page. The code is implemented as follows:
the above code for declaring a local variable, and subsequently storing a computation function:
“let computedHandle=null”
the code for holding computation functions in local variables as described above:
handlerObj[prop].push(computedHandle)
the code for assigning a current computation function of the computation attribute to the local variable when traversing the computation attribute comprises:
the code for executing the calculation function for calculating the attribute in the code triggers the value listener of the state:
computedObj[prop]=computedFuncs[prop].call(context);
taking a list which can be searched by a user as an example, the application method of the computed function applied to a specific service of the invention is as follows:
firstly, determining the use mode and the parameter form of a tool, and introducing a computed function, wherein two parameters are required to be introduced: an object composed of a context environment and a calculated value (the calculated value is a value calculated based on a state already existing in the data) of the WeChat applet page/component;
second, the first implementation can use the calculated values to be displayed in the WXML template, and the wechat applet official document indicates that only the state values in the data can be used as variables in the WXML template. Therefore, it is necessary to first traverse the computation attribute in the incoming computation object and execute a computation expression or function of the computation attribute (showsist) (this.
And thirdly, realizing the state change of the calculated value dependence, namely the calculated value also changes, monitoring the value taking and assignment operation of the data object, triggering the calculated value to be recalculated, and assigning the value to the data object, thereby triggering the data update on the WXML template page. The code is implemented as follows:
as shown in fig. 2, the device for displaying the page of the WeChat applet of the present invention includes the following modules:
the acquiring module 10 is configured to acquire a computation object transmitted to a predetermined function and a page/component object in a page when the page in the WeChat applet calls the predetermined function;
a monitoring module 20, configured to monitor a value and an assignment operation of a state in the obtained page/component object, to obtain values of one or more computation attributes included in the computation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively;
and the assignment module 30 is configured to assign the obtained value of the calculation attribute to the page/component object corresponding to the predetermined function, so as to display the page/component object in the page of the WeChat applet.
In an exemplary embodiment, the monitoring module 20 is configured to monitor the value taking and assigning operations of the state in the page/component object, and obtain the values of one or more computation attributes included in the computation object, where the obtaining is to refer to:
a monitoring module 20, configured to, when a value taking operation of the state of the page/component object is monitored, store a dependency relationship between each of one or more computation attributes included in the computation object and the state;
a monitoring module 20, configured to, when a value assignment operation of the state of the page/component object is monitored, traverse the calculation attributes included in the obtained calculation object, and obtain values of one or more calculation attributes included in the calculation object according to the stored dependency relationship.
In an exemplary embodiment, the monitoring module 20 is configured to, when a value taking operation of a state of the page/component object is monitored, store a dependency relationship between each of one or more computation attributes included in the computation object and the state, where the dependency relationship refers to:
a monitoring module 20, configured to monitor a value operation of each computation attribute included in the computation object, and when a value operation of a state of the page/component object on which the computation attribute depends is monitored, store a computation expression or a computation function of the computation attribute based on the state on which the computation attribute depends.
In an exemplary embodiment, the listening module 20, configured to listen to the value and assignment operations of the state in the acquired page/component object, is to:
the monitoring module 20 is configured to generate a Proxy instance, and intercept value taking and value assignment operations of states in the acquired page/component object.
The embodiment of the invention also provides a device for directionally delivering contents, which comprises a processor and a memory, wherein the memory is stored with a program for directionally delivering the contents; the processor is used for reading the program for targeted delivery of content and executing the method of any one of the above items.
The invention provides a computer storage medium, on which a computer program is stored, wherein the computer program is used for realizing the method of any one of the above items when being executed by a processor.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Claims (10)
1. A WeChat applet page presentation method, comprising:
when a page in the WeChat applet calls a preset function, acquiring a calculation object transmitted into the preset function and a page/component object in the page;
monitoring the value taking and assignment operation of the state in the acquired page/component object to obtain the values of one or more calculation attributes contained in the calculation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively;
and assigning the obtained value of the calculation attribute to a page/component object corresponding to the preset function so as to be displayed in the page of the WeChat applet.
2. The method of claim 1, wherein the monitoring of the value and assignment operations of the state in the page/component object to obtain values of one or more compute attributes included in the compute object comprises:
when the value taking operation of the state of the page/component object is monitored, the dependency relationship between one or more calculation attributes contained in the calculation object and the state is stored;
and when the assignment operation of the state of the page/component object is monitored, traversing the calculation attributes contained in the acquired calculation object, and obtaining the values of one or more calculation attributes contained in the calculation object according to the saved dependency relationship.
3. The method of claim 2, wherein the saving, when a value operation of the state of the page/component object is intercepted, a dependency relationship between each of one or more computing attributes included in the computing object and the state comprises:
and when the value taking operation of the state of the page/component object depended on by the calculation attribute is monitored, the calculation expression or the calculation function of the calculation attribute based on the depended state is saved for each calculation attribute contained in the calculation object.
4. The method of claim 2, wherein assigning the obtained value of the computational attribute to a page/component object corresponding to the predetermined function for display in a page of the WeChat applet further comprises:
when the assignment operation of any state of the page/component object is monitored, updating the value of the calculation attribute depending on the state according to the dependency relationship; and correspondingly updating the page/component object corresponding to the preset function according to the updated value of the calculation attribute.
5. The method of claim 1, wherein the intercepting of the evaluation and assignment operations of states in the obtained page/component object comprises:
and generating a Proxy instance, and intercepting the value taking and value assignment operation of the state in the acquired page/component object.
6. A wechat applet page presentation apparatus, the apparatus comprising:
the acquisition module is used for acquiring a calculation object transmitted into a predetermined function and a page/component object in the page when the page in the WeChat applet calls the predetermined function;
the monitoring module is used for monitoring the value taking and assignment operation of the state in the acquired page/component object to obtain the values of one or more calculation attributes contained in the calculation object; wherein each of the computing attributes is dependent on one or more states of the retrieved page/component object, respectively;
and the assignment module is used for assigning the obtained value of the calculation attribute to the page/component object corresponding to the preset function so as to display the page/component object in the page of the WeChat applet.
7. The apparatus of claim 6, wherein the monitoring module is configured to monitor value and assignment operations of states in the page/component object to obtain values of one or more computation attributes included in the computation object, where the value is:
the monitoring module is used for storing the dependency relationship between one or more calculation attributes contained in the calculation object and the state when the value taking operation of the state of the page/component object is monitored;
and the monitoring module is used for traversing the calculation attributes contained in the acquired calculation object and obtaining the values of one or more calculation attributes contained in the calculation object according to the saved dependency relationship when the assignment operation of the state of the page/component object is monitored.
8. The apparatus of claim 7, wherein the listening module, when listening to a value taking operation of the state of the page/component object, is configured to store a dependency relationship between each of one or more computing attributes included in the computing object and the state, where the dependency relationship is:
and the monitoring module is used for monitoring each calculation attribute contained in the calculation object, and storing a calculation expression or a calculation function of the calculation attribute based on the dependent state when the value taking operation of the state of the page/component object, which is dependent on the calculation attribute, is monitored.
9. An apparatus for targeted delivery of content, comprising a processor and a memory, wherein the memory has stored therein a program for targeted delivery of content; the processor is used for reading the program for targeted delivery and executing the method of any one of claims 1-5.
10. A computer storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911241367.1A CN111142990A (en) | 2019-12-06 | 2019-12-06 | WeChat applet page display method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911241367.1A CN111142990A (en) | 2019-12-06 | 2019-12-06 | WeChat applet page display method and device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111142990A true CN111142990A (en) | 2020-05-12 |
Family
ID=70517770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911241367.1A Pending CN111142990A (en) | 2019-12-06 | 2019-12-06 | WeChat applet page display method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111142990A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111897694A (en) * | 2020-07-30 | 2020-11-06 | 北京百度网讯科技有限公司 | Method, device and equipment for processing messages in applet and storage medium |
CN112347329A (en) * | 2020-10-28 | 2021-02-09 | 杭州安恒信息技术股份有限公司 | Data processing method, device, storage medium and equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273113A (en) * | 2017-05-05 | 2017-10-20 | 广东网金控股股份有限公司 | The binding of page control and entity, to entity assignment and the method for page control assignment |
CN109460279A (en) * | 2018-12-14 | 2019-03-12 | 平安城市建设科技(深圳)有限公司 | Forms pages development approach, device, equipment and storage medium based on small routine |
CN110221904A (en) * | 2019-06-17 | 2019-09-10 | 腾讯科技(深圳)有限公司 | A kind of Business Process Control method |
-
2019
- 2019-12-06 CN CN201911241367.1A patent/CN111142990A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273113A (en) * | 2017-05-05 | 2017-10-20 | 广东网金控股股份有限公司 | The binding of page control and entity, to entity assignment and the method for page control assignment |
CN109460279A (en) * | 2018-12-14 | 2019-03-12 | 平安城市建设科技(深圳)有限公司 | Forms pages development approach, device, equipment and storage medium based on small routine |
CN110221904A (en) * | 2019-06-17 | 2019-09-10 | 腾讯科技(深圳)有限公司 | A kind of Business Process Control method |
Non-Patent Citations (2)
Title |
---|
MUZIDIGBIG: "深入浅出Object.defineProperty()/new Proxy()---js对象的底层", 《CSDN HTTPS://BLOG.CSDN.NET/MUZIDIGBIG/ARTICLE/DETAILS/88706182》 * |
极乐叔: "在微信小程序里使用 watch 和 computed", 《CSDN HTTPS://BLOG.CSDN.NET/ROLAN1993/ARTICLE/DETAILS/79786902》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111897694A (en) * | 2020-07-30 | 2020-11-06 | 北京百度网讯科技有限公司 | Method, device and equipment for processing messages in applet and storage medium |
CN111897694B (en) * | 2020-07-30 | 2023-07-07 | 北京百度网讯科技有限公司 | Method and device for processing message in applet, equipment and storage medium |
CN112347329A (en) * | 2020-10-28 | 2021-02-09 | 杭州安恒信息技术股份有限公司 | Data processing method, device, storage medium and equipment |
CN112347329B (en) * | 2020-10-28 | 2024-03-19 | 杭州安恒信息技术股份有限公司 | Data processing methods, devices, storage media and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634598B (en) | Page display method, device, equipment and storage medium | |
CN107562467B (en) | Page rendering method, device and equipment | |
CN113268226B (en) | Page data generation method, device, storage medium and equipment | |
CN109062563B (en) | Method and device for generating page | |
CN105335132B (en) | Method, device and system for customizing application program function | |
CN108228293B (en) | Interface skin switching method and device | |
CN107479868B (en) | Interface loading method, device and equipment | |
CN108776587B (en) | Data acquisition method and device, computer equipment and storage medium | |
CN112115153A (en) | Data processing method, device, equipment and storage medium | |
CN112395027A (en) | Widget interface generation method and device, storage medium and electronic equipment | |
CN110968314B (en) | Page generation method and device | |
CN114385164A (en) | Page generation and rendering method and device, electronic equipment and storage medium | |
CN112433730B (en) | Code detection rule generation method and device and electronic equipment | |
CN112346761B (en) | Front-end resource online method, device, system and storage medium | |
CN111142990A (en) | WeChat applet page display method and device and storage medium | |
CN110020370B (en) | Method and device for realizing animation in client application and framework of animation script | |
CN109814778B (en) | Method and device for realizing small program tab, electronic equipment and medium | |
CN112748917B (en) | Graph display method and device | |
CN110333859B (en) | Page creation method, page creation device, electronic device and computer readable storage medium | |
CN110618811B (en) | Information presentation method and device | |
CN110647331A (en) | Development tool acquisition method and device, storage medium and electronic equipment | |
CN114461960B (en) | Page generation method, page display method and page display device | |
CN112486991B (en) | Database report processing method and device and electronic equipment | |
CN117149153A (en) | Method, device, computer equipment and medium for generating business data model | |
CN113282285A (en) | Code compiling method and device, electronic 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200512 |