Movatterモバイル変換


[0]ホーム

URL:


CN110619100B - Method and apparatus for acquiring data - Google Patents

Method and apparatus for acquiring data
Download PDF

Info

Publication number
CN110619100B
CN110619100BCN201910528759.XACN201910528759ACN110619100BCN 110619100 BCN110619100 BCN 110619100BCN 201910528759 ACN201910528759 ACN 201910528759ACN 110619100 BCN110619100 BCN 110619100B
Authority
CN
China
Prior art keywords
page
data set
target data
information
presenting
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.)
Active
Application number
CN201910528759.XA
Other languages
Chinese (zh)
Other versions
CN110619100A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Infinite Light Field Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Infinite Light Field Technology Co LtdfiledCriticalBeijing Infinite Light Field Technology Co Ltd
Priority to CN201910528759.XApriorityCriticalpatent/CN110619100B/en
Publication of CN110619100ApublicationCriticalpatent/CN110619100A/en
Application grantedgrantedCritical
Publication of CN110619100BpublicationCriticalpatent/CN110619100B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Embodiments of the present disclosure disclose methods and apparatus for acquiring data. One embodiment of the method comprises: in response to detecting a first operation for indicating access to first information, presenting a first page presenting the first information; obtaining a target data set by a first object for presenting first information, and associating a context object storing a first page with the target data set; and acquiring the target data set through a second object for displaying second information displayed by the first page according to the context object of the first page. The implementation mode conveniently realizes the data transmission between different objects of the first page.

Description

Method and apparatus for acquiring data
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method and apparatus for acquiring data.
Background
Currently, many websites or applications and the like typically present various information to a user through a series of pages. In some cases, some pages present more information and are more complex in structure. For example, a page may represent part of the information of the page by two or more objects, respectively, a page may contain various control objects, and so on.
For these complex pages, if data needs to be transferred between different objects of the page, it is usually necessary to transfer one object of the page to another object, and then transfer the other object to the next object. I.e. one in turn is required. Therefore, when the composition of a page is complex, it is very troublesome and time-consuming to transfer data between the various objects of the page, and the more complex the page, the more complex the data transfer process, and the more error-prone it is.
Disclosure of Invention
Embodiments of the present disclosure propose methods and apparatuses for acquiring data.
In a first aspect, an embodiment of the present disclosure provides a method for acquiring data, the method including: in response to detecting a first operation for indicating access to first information, presenting a first page presenting the first information; obtaining a target data set by a first object for presenting first information, and associating a context object storing a first page with the target data set; and acquiring the target data set through a second object for displaying second information displayed by the first page according to the context object of the first page.
In some embodiments, the first operation is to instruct a jump from the second page to the first page to access the first information; and acquiring a target data set by a first object for presenting first information, comprising: and receiving the target data set sent by the second page through the first object.
In some embodiments, the context object of the second page is stored in association with the target data set.
In some embodiments, acquiring a target data set by a first object for presenting first information comprises: and acquiring an attribute value of a preset attribute of the first page as a target data set through the first object.
In some embodiments, after the target data set is obtained by the second object for presenting the second information presented by the first page according to the context object of the first page, the method further comprises: determining, by the second object, data to be analyzed based on the acquired target data set, and transmitting the data to be analyzed.
In some embodiments, obtaining the target data set through a second object for presenting second information presented by the first page according to the context object of the first page includes: in response to detecting a second operation on second information, acquiring a target data set through a second object for displaying the second information displayed by the first page according to the context object of the first page; and determining, by the second object, data to be analyzed based on the acquired target dataset, including: and acquiring an attribute value of a preset attribute of the second operation through the second object, and combining the attribute value of the preset attribute of the second operation and the acquired target data set to be used as data to be analyzed.
In some embodiments, obtaining the target dataset by a first object for presenting the first information, and associating a context object storing the first page with the target dataset, comprises: the target data set is obtained by a first object for presenting the first information based on Architecture Components, and a context object storing the first page is associated with the target data set.
In a second aspect, an embodiment of the present disclosure provides an apparatus for acquiring data, the apparatus including: a presentation unit configured to present a first page presented with first information in response to detection of a first operation indicating access to the first information; a storage unit configured to acquire a target data set by a first object for presenting first information, and to associate a context object storing a first page with the target data set; an obtaining unit configured to obtain the target data set through a second object for presenting second information presented by the first page according to the context object of the first page.
In some embodiments, the first operation is to instruct a jump from the second page to the first page to access the first information; and the storage unit is further configured to: and receiving the target data set sent by the second page through the first object.
In some embodiments, the context object of the second page is stored in association with the target data set.
In some embodiments, the storage unit is further configured to: and acquiring an attribute value of a preset attribute of the first page as a target data set through the first object.
In some embodiments, the above apparatus further comprises: a transmitting unit configured to determine data to be analyzed based on the acquired target data set by the second object, and transmit the data to be analyzed.
In some embodiments, the obtaining unit is further configured to: in response to detecting a second operation on second information, acquiring a target data set through a second object for displaying the second information displayed by the first page according to the context object of the first page; and the sending unit is further configured to: and acquiring an attribute value of a preset attribute of the second operation through the second object, and combining the attribute value of the preset attribute of the second operation and the acquired target data set to be used as data to be analyzed.
In some embodiments, the memory unit is further configured to: the method includes obtaining a target data set through a first object for presenting first information based on Architecture Components, and associating a context object storing a first page with the target data set.
In a third aspect, an embodiment of the present disclosure provides a terminal, where the electronic device includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, which computer program, when executed by a processor, implements the method as described in any of the implementations of the first aspect.
The method and the device for acquiring data provided by the embodiment of the disclosure are used for storing the context object of the first page in association with the target data set when the first object of the first page acquires the target data set. Because each object of the first page can utilize the context object of the first page, the second object of the first page can obtain the target data set by utilizing the context object of the first page, and thus, data transfer between different objects of the first page is conveniently realized.
Drawings
Other features, objects and advantages of the present disclosure will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for acquiring data according to the present disclosure;
FIG. 3 is a flow diagram of yet another embodiment of a method for acquiring data according to the present disclosure;
FIG. 4 is a schematic diagram of one application scenario of a method for acquiring data in accordance with an embodiment of the present disclosure;
FIG. 5 is a schematic block diagram illustrating one embodiment of an apparatus for acquiring data according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the figures and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates anexemplary architecture 100 to which embodiments of the disclosed method for acquiring data or apparatus for acquiring data may be applied.
As shown in fig. 1, thesystem architecture 100 may includeterminal devices 101, 102, 103, anetwork 104, and aserver 105. Network 104 is the medium used to provide communication links betweenterminal devices 101, 102, 103 andserver 105.Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
Theterminal devices 101, 102, 103 interact with aserver 105 via anetwork 104 to receive or send messages or the like. Various client applications may be installed on theterminal devices 101, 102, 103. Such as browser-like applications, search-like applications, instant messaging tools, social platform software, information push-like applications, and the like.
Theterminal devices 101, 102, 103 may be hardware or software. When theterminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When theterminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
Theserver 105 may be a server that provides various services, such as a backend server that provides support for applications installed on theterminal devices 101, 102, 103. Theserver 105 may receive various service requests transmitted by theterminal apparatuses 101, 102, 103 and return response results to theterminal apparatuses 101, 102, 103 based on the received service requests. Theserver 105 may receive the data to be analyzed collected by theterminal devices 101, 102, and 103, and analyze the data to be analyzed to obtain an analysis result.
It should be noted that the method for acquiring data provided by the embodiments of the present disclosure is generally performed by theterminal devices 101, 102, 103, and accordingly, the apparatus for acquiring data is generally disposed in theterminal devices 101, 102, 103.
It is further noted that applications installed in theterminal devices 101, 102, 103 may also be used in an offline situation. At this point, theexemplary system architecture 100 may not have theserver 105 and thenetwork 104.
Theserver 105 may be hardware or software. When theserver 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When theserver 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
With continued reference to FIG. 2, aflow 200 of one embodiment of a method for acquiring data in accordance with the present disclosure is illustrated. The method for acquiring data comprises the following steps:
step 201, in response to detecting a first operation for indicating access to first information, a first page presenting the first information is presented.
In the present embodiment, the first information may be various forms of information. Such as video, audio, images, articles, and the like. The first operation may be various user operations supported by an execution subject (such as theterminal devices 101, 102, 103 shown in fig. 1) of the method for acquiring data. Such as a click operation, a slide operation, etc.
In this embodiment, the execution subject may send a request for accessing the first information according to the first operation to a server (e.g., theserver 105 shown in fig. 1) after detecting the first operation. The server may return page data of the first page presenting the first information according to the received request. And then, the execution main body can display the first page according to the page data returned by the server. The page data may include, among other things, various information to be presented by the first page, style data for the first page, and so on.
Instep 202, a target data set is obtained by a first object for presenting first information, and a context object storing the first page is associated with the target data set.
In this embodiment, it is understood that the first page may be presented with other various information in addition to the first information. For example, if the first information is a video "V", the first page may also present comment information of the first video, some advertisement information, recommended other videos, and so on.
In the present embodiment, the object may refer to various objects that control presentation of information on the first page. Different information on the first page may be exposed by different object controls. For example, the objects corresponding to the first page may include various objects that support the display of various information on the first page and various interactions with respect to the first page to be performed normally. By way of example, the objects of the first page may include objects that control a class in which information is presented on the first page, various control objects (e.g., button controls, text controls, picture controls, etc.) to which the first page corresponds, and so forth.
For example, for an Activity page, the Activity page may consist of three fragments. Then, if the Activity page is regarded as the first page, the object of the first page includes an object of a class corresponding to the Activity page, and objects of classes corresponding to the three fragments respectively. Taking any Fragment of the three fragments as an example, if the Fragment includes two widgets, the object of the first page further includes the widget objects of the two widgets.
Wherein the first object may refer to an object for controlling presentation of the first information on the first page. For example, the first object may be an object of a class corresponding to the sub-portion of the first page on which the first information is located. As another example, the first object may be a control object or the like for presenting the first information.
In this embodiment, the target data set may be a set of some data specified in advance by a technician, or the target data set may be a set of some data acquired according to a preset condition. For example, the target data set may be some data related to the first page (e.g., attribute values of a number of attributes of the first page that are pre-specified, etc.). For another example, the target data set may also be page data about the first page sent by the server when the execution subject sends a request for displaying the first page to the server.
As another example, the target data set may be a set of buried point data that is preset by a technician. For example, the target data set may include page identification information indicating a page previous to the first page, identification information indicating an access entry to access the first page, and related information indicating an author of the first information (e.g., identification information of the author, etc.). Wherein the access entry may refer to the first page of a series of page jumps involved in accessing the first page. For example, the access portal may be a list page displaying a page link of the first page. For another example, the access portal may be a push page received for pushing first information for a first page display. As another example, the access portal may be a personal home page of the author of the first information, or the like.
In this embodiment, as the name implies, the context object of the first page may be used to characterize the context of the first page. The context of the first page may refer to various processes involved in the process from launch to run of the first page. Or it can be said that the context of the first page can refer to the environment in which the class corresponding to the first page is located during the execution of the code.
The context of the first page may include the launch, display, related interactions, involved data requests and data transfers, system resources occupied by the first page, acquired system services, and so forth, of the first page. Wherein the context object of the first page may uniquely identify the first page. I.e. different pages have different context objects. For example, in some programming languages, a Context object may refer to a Context object.
It should be noted that, associating and storing the context object of the first page and the target data set may refer to storing the target data set by using various storage methods, but making it possible to obtain the target data set according to the context object of the first page. For example, the context objects of the first page may be exclusively allocated storage space for storing the target data set.
Optionally, the first operation may be to instruct a jump from the second page to the first page to access the first information. For example, the second page displays the page link of the first page. At this time, the first operation may be a click operation on a page link of the first page displayed on the second page. At this time, the target data set transmitted by the second page may be received through the first object for presenting the first information. I.e. the target data set may refer to the data set passed over by the second page.
Wherein, the target data set sent by the second page can comprise various data. For example, values of some parameters pre-specified by a technician, etc. may be included. The data transfer between the second page and the first page may be implemented based on a data transfer method between pages. It will be appreciated that the method of data transfer between pages may be different in different programming languages.
For example, in some development environments, data transfer between different pages may be accomplished via global variables or local caches. In some development environments, data transfer between different pages may be implemented based on custom event listening. In some development environments, data transfer between different pages may be implemented based on forms (forms). In some development environments, data transfer between pages may be implemented based on Intent objects.
Alternatively, the context object of the second page may be stored in association with the target data set. I.e., the second page may also store data using its corresponding context object. Based on this, it can be appreciated that each page can store some data based on its corresponding context object association. The data stored in particular association with the context object may be determined depending on the particular application scenario.
Alternatively, an attribute value of a preset attribute of the first page may be acquired as the target data set by the first object for presenting the first information. The preset attribute of the first page may refer to an attribute that is specified in advance by a technician.
Optionally, the first object used for presenting the first information may receive a data set sent by the second page, and may further obtain an attribute value of a preset attribute of the first page, and store the received data set and the obtained attribute value as a whole in association with the context object of the first page as a target data set.
Step 203, according to the context object of the first page, a target data set is obtained through a second object for displaying second information displayed by the first page.
In this embodiment, the second information may refer to other information than the first information presented by the first page. The second object may refer to an object for presenting second information on the first page. For example, the second object may be an object of a class corresponding to the sub-portion of the first page in which the second information is located. As another example, the second object may be a control object or the like for presenting the second information.
Since the context object of the first page can be used to uniquely identify the first page, each object of the first page can acquire the context object of the first page. Therefore, the second object can acquire the target data set based on the context object of the first page without transferring the target data set by means of the existing data transfer method among various different objects.
It is understood that one or more objects other than the first object corresponding to the first page may be obtained to the target data set based on the context object of the first page.
Optionally, in response to detecting the second operation on the second information, the target data set is obtained through the second object for presenting the second information presented by the first page according to the context object of the first page. Wherein the second operation may be various user operations. Such as click operations, comment operations, and the like.
When a second operation for second information is detected, that is, the second operation is related to a second object, the second operation can be used as an occasion for data transfer between the first object and the second object. It will be appreciated that the transfer of data between the first object and the second object may be triggered at various times. The timing of data transfer between the first object and the second object may be set according to actual application requirements.
For example, in some cases, it is necessary to record the target data set and the related information of the second operation (such as the operation type, the time of the second operation, etc.) in association. At this time, the second operation for the second information may be used as a trigger for data transfer between the first object and the second object.
Optionally, after the second object acquires the target data set, the data to be analyzed may be determined and sent based on the acquired target data set. As previously mentioned, the target data set may include buried point data that is preset by a technician. Thus, it is possible to determine data to be analyzed and transmit the data to be analyzed from the target data set. For example, the data to be analyzed may be sent to the server, and the server performs statistical analysis on the data to be analyzed to obtain an analysis result.
Wherein, based on the target data set, the specific method of determining the data to be analyzed may be selected based on the specific application scenario. For example, the target data set and the current time may be directly transmitted as the data to be analyzed. For another example, the target data set and the related data of the user operation thereafter may be transmitted as the data to be analyzed.
Alternatively, an attribute value of a preset attribute of the second operation may be acquired by the second object, and the attribute value of the preset attribute of the second operation and the acquired target data set may be merged as the data to be analyzed. The preset attribute of the second operation may be set by a technician according to an application requirement. For example, when the second operation is a click operation, the preset attribute may include identification information of an object clicked by the click operation, a browsing duration of the clicked object, and the like.
On the basis that each object on the first page can conveniently and quickly acquire a target data set, the data to be analyzed can be further acquired according to application requirements based on the target data set, and therefore the efficiency and the accuracy of acquiring the data to be analyzed are improved.
The method provided by the above embodiment of the present disclosure stores a context object of a page and a data set required to be transferred by associating the context object with the data set. Because each object on the page can take the context object of the page, each object can conveniently acquire the corresponding data set at any moment according to the context object of the page without mutually transferring the data sets among the page objects, the data transfer process among the objects of the page is simplified, and the error rate in the data transfer process can also be reduced.
With further reference to FIG. 3, aflow 300 of yet another embodiment of a method for acquiring data is illustrated. Theprocess 300 of the method for acquiring data comprises the following steps:
step 301, in response to detecting a first operation for indicating access to first information, presenting a first page presenting the first information.
The specific implementation process of step 301 may refer to the related description of step 201 in the corresponding embodiment of fig. 2, and is not repeated herein.
Step 302, based on Architecture Components, a target data set is obtained by a first object for presenting first information, and a context object storing the first page is associated with the target data set.
In this embodiment, architecture Components is a library that can assist in building a stable, easily tested and easily maintained end-application Architecture. Architecture Components provide framework Components such as Room, liveData, viewModel, etc. The modularization and low coupling of the terminal application can be better realized by various Components provided by Architecture Components, and the data can be conveniently and efficiently persisted.
In particular, the target dataset may be stored by means of the ViewModel component provided by Architecture Components. The first object may generate a ViewModel object corresponding to the context object of the first page based on the context object of the first page, and may further store the target data set using the generated ViewModel object (e.g., call a data storage method corresponding to the ViewModel to store the target data set, etc.).
Step 303, based on Architecture Components, according to the context object of the first page, a target data set is obtained through a second object for displaying the second information displayed by the first page.
In this embodiment, the second object may acquire the previously stored target data set by using the generated ViewModel object based on the context object of the first page (e.g., call a data acquisition method corresponding to the ViewModel to acquire the target data set, etc.).
In addition, architecture Components are also configured with lifecycle management of the frame Components such as Room, liveData, viewModel, etc., so that technicians do not need to additionally process related data processing cycles, thereby reducing maintenance and management costs.
With continued reference to fig. 4, fig. 4 is a schematic diagram 400 of an application scenario of the method for acquiring data according to the present embodiment. In the application scene of fig. 4, thevideo list page 401 displays link information of "video 01", "video 02", "video 03", and "video 04".
When the user clicks the link information of "video 02", thedetail page 402 of "video 02" is jumped to. As shown in the figure, on thedetail page 402 of "video 02", three pieces of comment information of "video 02" and comment user information corresponding to the three pieces of comment information, respectively, are also displayed.
As indicated byreference numeral 403, the context object of thevideo list page 401 may be "ContextA", the ViewModel object corresponding to thevideo list page 401 is "ViewModel a", and the target data set may be stored using the "ViewModel a" object based on the context object "ContextA" of thevideo list page 401.
When the user clicks the link information of "video 02" to jump to thedetail page 402 of "video 02", the text control object displaying "video 02" on thevideo list page 401 may acquire a target data set based on the context object "ContextA" of thevideo list page 401, and, when jumping, is transferred to the detail page of "video 02" based on the Intent object.
As indicated by reference numeral 404, the context object of the detail page of "video 02" may be "ContextB". The detail page of "video 02" after receiving the target data set, the object displaying "video 02" may generate the ViewModel object "ViewModel b" of the detail page of "video 02" based on the context object "ContextB" of the detail page of "video 02" and store the target data set using "ViewModel b".
Thereafter, if the user clicks "comment 02" of "video 02", the text control object displaying "comment 02" may be retrieved to the target data set based on the context object "ContextB" of the detail page of "video 02".
Similarly, if the user clicks the comment user information corresponding to "comment 02", the image control object for displaying the comment user corresponding to "comment 02" may be acquired to the target data set based on the context object "ContextB" of the detail page of "video 02".
If the user clicks the comment user information corresponding to the comment 02 and can jump to thepersonal homepage 405 of the comment user indicated by the comment user information corresponding to the comment 02, the image control object for displaying the comment user corresponding to the comment 02 can transfer the target data set to thepersonal homepage 405 based on the Intent object.
As shown in the drawing by reference numeral 406, the context object of thepersonal homepage 405 may be "ContextC". The image control object for displaying the comment user corresponding to the "comment 02" may generate a ViewModel object "ViewModel c" corresponding to thepersonal homepage 405 based on the context object "ContextC" of thepersonal homepage 405, and store the target dataset using the "ViewModel c".
Similarly, if the user continues to click on the "video", "image" and "article" tabs displayed on thehomepage 405, the object corresponding to the clicked tab may obtain the target data set based on the context object "ContextC" of thehomepage 405.
As can also be seen from the application scenario, each object on each page can conveniently acquire a target data set based on the context object of the page. In the prior art, after thedetail page 402, which is usually "video 02", receives the target data set sent by thevideo list page 401, the target data set needs to be transferred to each "comment" by the object displaying "video 02", and the target data set needs to be transferred to the comment user corresponding to each comment. If there are other objects on thedetail page 402 for "video 02," then the target data set needs to be passed to the other objects as well.
Therefore, in the prior art, data transfer between different objects on the same page is troublesome, and the more objects on the page, the more times the data transfer is required, which leads to more and more complex corresponding processing logic. The method provided by the embodiment of the disclosure can enable each object of the same page to conveniently acquire the corresponding data set at any time according to the context object of the page without mutually transferring the data sets among the page objects, simplifies the data transfer process among the objects of the page, and can also reduce the error rate in the data transfer process.
Moreover, data can be conveniently persisted and managed through a Room, liveData, viewModel, or other framework component configured via Architecture Components. Meanwhile, as the Architecture Components provide a management method for the life cycle of each component, the management and maintenance cost of resources, objects, services and the like in the data interaction process of the page can be reduced, and the data transmission efficiency and the fault tolerance rate are further improved.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for acquiring data, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, theapparatus 500 for acquiring data provided by the present embodiment includes apresentation unit 501, astorage unit 502 and anacquisition unit 503. Wherein thepresentation unit 501 is configured to present a first page presented with first information in response to detecting a first operation indicating access to the first information; thestorage unit 502 is configured to acquire a target data set by a first object for presenting first information, and associate a context object storing a first page with the target data set; the obtainingunit 503 is configured to obtain the target data set by a second object for presenting second information presented by the first page according to the context object of the first page.
In the present embodiment, in theapparatus 500 for acquiring data: the detailed processing of thepresentation unit 501, thestorage unit 502, and the obtainingunit 503 and the technical effects thereof can refer to the related descriptions of step 201,step 202, and step 203 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementations of the embodiment, the first operation is to instruct to jump from the second page to the first page to access the first information; and thestorage unit 502 is further configured to: and receiving the target data set sent by the second page through the first object.
In some optional implementations of the embodiment, the context object of the second page is stored in association with the target data set.
In some optional implementations of the present embodiment, thestorage unit 502 is further configured to: and acquiring an attribute value of a preset attribute of the first page as a target data set through the first object.
In some optional implementations of the present embodiment, theapparatus 500 for acquiring data further includes: the transmitting unit (not shown in the figure) is configured to determine data to be analyzed based on the acquired target data set by the second object, and transmit the data to be analyzed.
In some optional implementations of this embodiment, the obtainingunit 503 is further configured to: in response to detecting a second operation on second information, acquiring a target data set through a second object for displaying the second information displayed by the first page according to the context object of the first page; and the sending unit is further configured to: and acquiring an attribute value of a preset attribute of the second operation through the second object, and combining the attribute value of the preset attribute of the second operation and the acquired target data set to be used as data to be analyzed.
In some optional implementations of this embodiment, thestorage unit 502 is further configured to: the method includes obtaining a target data set through a first object for presenting first information based on Architecture Components, and associating a context object storing a first page with the target data set.
The apparatus provided by the foregoing embodiment of the present disclosure presents, by the presentingunit 501, in response to detecting a first operation for instructing access to first information, a first page presented with the first information; thestorage unit 502 acquires a target data set by a first object for presenting first information, and stores a context object of a first page in association with the target data set; the obtainingunit 503 obtains the target data set through the second object for displaying the second information displayed by the first page according to the context object of the first page, thereby simplifying the data transfer process between different objects of the page.
Referring now to FIG. 6, shown is a schematic block diagram of an electronic device (e.g., terminal device in FIG. 1) 600 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device/server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6,electronic device 600 may include a processing device (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from astorage device 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of theelectronic apparatus 600 are also stored. Theprocessing device 601, theROM 602, and the RAM603 are connected to each other via abus 604. An input/output (I/O)interface 605 is also connected tobus 604.
Generally, the following devices may be connected to the I/O interface 605:input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like;output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like;storage 608 including, for example, tape, hard disk, etc.; and acommunication device 609. The communication means 609 may allow theelectronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates anelectronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from theROM 602. The computer program, when executed by theprocessing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the terminal; or may exist separately and not be assembled into the terminal. The computer readable medium carries one or more programs which, when executed by the terminal, cause the terminal to: in response to detecting a first operation for indicating access to first information, presenting a first page presenting the first information; obtaining a target data set by a first object for presenting first information, and associating a context object storing a first page with the target data set; and acquiring the target data set through a second object for displaying second information displayed by the first page according to the context object of the first page.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, which may be described as: a processor includes a presentation unit, a storage unit, and an acquisition unit. Where the names of these elements do not in some cases constitute a limitation on the elements themselves, for example, a presentation element may also be described as an "element presenting a first page presenting first information in response to detecting a first operation indicating access to the first information".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (6)

CN201910528759.XA2019-06-182019-06-18Method and apparatus for acquiring dataActiveCN110619100B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910528759.XACN110619100B (en)2019-06-182019-06-18Method and apparatus for acquiring data

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910528759.XACN110619100B (en)2019-06-182019-06-18Method and apparatus for acquiring data

Publications (2)

Publication NumberPublication Date
CN110619100A CN110619100A (en)2019-12-27
CN110619100Btrue CN110619100B (en)2023-02-28

Family

ID=68921368

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910528759.XAActiveCN110619100B (en)2019-06-182019-06-18Method and apparatus for acquiring data

Country Status (1)

CountryLink
CN (1)CN110619100B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111552620B (en)*2020-04-032023-07-11北京字节跳动网络技术有限公司Data acquisition method, device, terminal and storage medium
CN111538746A (en)*2020-05-152020-08-14北京明略软件系统有限公司Information processing method, device, storage medium and equipment
CN114238814B (en)*2021-12-162025-07-11挂号网(杭州)科技有限公司 Method, device, electronic device and storage medium for determining source data
CN115033812A (en)*2021-12-212022-09-09北京字跳网络技术有限公司Information processing method, device, terminal and storage medium
CN114567623B (en)*2022-02-202023-09-08中国银联股份有限公司 A page display method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101866342B (en)*2009-04-162013-09-11富士通株式会社Method and device for generating or displaying webpage label and information sharing system
US20130174050A1 (en)*2011-12-302013-07-04Nokia CorporationMethod and apparatus for downloading third party content within the same web page context
CN102902774A (en)*2012-09-282013-01-30用友软件股份有限公司Page presenting system and page presenting method
CN105653545B (en)*2014-11-102020-01-31阿里巴巴集团控股有限公司Method and device for providing service object information in page
US9710439B1 (en)*2014-12-302017-07-18Open Text CorporationImplementing context based display of objects in web applications using link relationships
CN105574207A (en)*2016-01-212016-05-11上海谦讯网络科技有限公司WAP webpage developing method
CN108573002B (en)*2017-03-142022-04-26阿里巴巴集团控股有限公司Method and device for providing page information
CN108363597A (en)*2018-01-022018-08-03武汉斗鱼网络科技有限公司A kind of method for page jump and system
CN109117221B (en)*2018-07-202021-07-23武汉斗鱼网络科技有限公司Data sharing method, device and equipment of active window and storage medium
CN109710329A (en)*2018-12-172019-05-03浩云科技股份有限公司Web page rendering method, apparatus and terminal device

Also Published As

Publication numberPublication date
CN110619100A (en)2019-12-27

Similar Documents

PublicationPublication DateTitle
CN110619100B (en)Method and apparatus for acquiring data
CN111679990B (en)Test data generation method and device, readable medium and electronic equipment
CN111510760B (en)Video information display method and device, storage medium and electronic equipment
CN109976620B (en)Method, device, equipment and storage medium for determining list item display attribute information
CN112306340B (en)Information display method, information transmission device, electronic equipment and medium
CN111400625B (en)Page processing method and device, electronic equipment and computer readable storage medium
CN111813685B (en)Automatic test method and device
CN109753332B (en)Method and device for displaying information
CN110619096A (en)Method and apparatus for synchronizing data
CN110865846B (en)Application management method, device, terminal, system and storage medium
CN111596991A (en)Interactive operation execution method and device and electronic equipment
CN110618768B (en)Information presentation method and device
CN114021016A (en)Data recommendation method, device, equipment and storage medium
CN111694629A (en)Information display method and device and electronic equipment
CN110619101B (en)Method and apparatus for processing information
CN110673886A (en)Method and device for generating thermodynamic diagram
CN112083982B (en)Information processing method and device
CN110086880B (en)Method and apparatus for creating instances of network requests
CN109040223B (en)Method and device for pushing and displaying information
CN112148744A (en)Page display method and device, electronic equipment and computer readable medium
EP4451143A1 (en)Template selection method and apparatus, and electronic device and storage medium
CN111552620A (en)Data acquisition method, device, terminal and storage medium
CN112468849B (en)Method, apparatus, electronic device and medium for video information transmission
CN117391801A (en) An item information display method, device, equipment and medium
CN110046171B (en)System, method and apparatus for obtaining information

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20230419

Address after:Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299

Patentee after:Beijing youzhuju Network Technology Co.,Ltd.

Address before:No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081

Patentee before:Beijing infinite light field technology Co.,Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp