WO2017107620A1 - 一种页面数据的加载方法和系统 - Google Patents
一种页面数据的加载方法和系统 Download PDFInfo
- Publication number
- WO2017107620A1 WO2017107620A1 PCT/CN2016/101598 CN2016101598W WO2017107620A1 WO 2017107620 A1 WO2017107620 A1 WO 2017107620A1 CN 2016101598 W CN2016101598 W CN 2016101598W WO 2017107620 A1 WO2017107620 A1 WO 2017107620A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- business object
- business
- page
- loading
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Definitions
- the present invention relates to the technical field of computer processing, and in particular, to a method for loading page data and a loading system for page data.
- the place where the operator deploys the data may be referred to as an operation position, and the operation of the operation position is in the operation background.
- a database needs to be configured for each operation bit, and when the page is loaded, the corresponding data is read from the database.
- the present invention has been made in order to provide a method of loading page data and a corresponding loading system of page data that overcomes the above problems or at least partially solves or alleviates the above problems.
- a method for loading page data including the steps of:
- the service object corresponding to the object identifier is obtained from a cache of the server;
- the business data is loaded into the page.
- a loading system for page data comprising a client, the client comprising:
- a page loading module adapted to load a page
- a business object obtaining module configured to acquire a business object corresponding to the object identifier from a cache of the server when the object identifier is read from the page;
- a service data extraction module adapted to extract service data from the business object
- a service data loading module adapted to load the service data into the page.
- a computer program comprising computer readable code causing the server to perform the loading method of the page data described above when the computer readable code is run on a server.
- a computer readable medium wherein the computer program described above is stored.
- the embodiment of the present invention obtains a business object from a cache of a server by using an object identifier, and extracts service data from the business object for loading, thereby avoiding establishing a plurality of databases to support the business object, and the operation behaviors are completely consistent, and the learning cost is not large. Improve the simplicity and efficiency of development operations.
- the operator can configure all the data and then publish it, eliminating the problem of missing data on the line when half of the data is configured.
- the editing and presentation of the service data only needs to perform certain information editing work on the class corresponding to the operation bit.
- the background page will have corresponding changes immediately. Therefore, the addition, deletion and change of the operation position are quite convenient, which greatly improves the simplicity of operation.
- FIG. 1 is a flow chart showing the steps of an embodiment of a method for loading page data according to an embodiment of the present invention
- FIGS. 2A and 2B are diagrams schematically showing an example of contents of a business object according to an embodiment of the present invention.
- FIG. 3 is a view schematically showing an example of the structure of a business object according to an embodiment of the present invention.
- FIG. 4 is a block diagram showing the structure of an embodiment of a loading system for page data according to an embodiment of the present invention
- Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
- Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
- FIG. 1 is a flow chart showing the steps of an embodiment of a method for loading page data according to an embodiment of the present invention, which may specifically include the following steps:
- Step 101 Load a page in the client
- the client may send a load request of the page to the server to load the corresponding Page.
- the page's load request can be an indication from the client that a page is loaded.
- a user can request to load a web page by clicking on a link in a browser, or launch a game client, open a home page, and the like.
- the content of the loading request may include an identifier of a page requested by the user and/or a feature of the webpage.
- the page identifier may be information that can represent a uniquely determined webpage, such as a Uniform Resource Identifier (URI), and the uniform resource identifier may specifically include a Uniform Resource Locator (URL), or a unified resource. Name (Uniform Resource Name, URN) and so on.
- URI Uniform Resource Identifier
- URL Uniform Resource Locator
- URN Uniform Resource Name
- the client uses the DNS (Domain Name System) to resolve the IP (Internet Protocol) protocol mapped by the domain name in the URL of the web page.
- DNS Domain Name System
- the client After obtaining the IP address successfully, the client can request a connection to the server where the IP address is located. After successfully connecting to the server where the IP address is located, the client can initiate a page load request to the server where the IP address is located by using the HTTP (Hypertext Transfer Protocol) protocol. The server waits for processing after receiving the request, and finally returns a response to the client.
- HTTP Hypertext Transfer Protocol
- the client can receive a document of the HTML (Hypertext Markup Language) type from the server.
- HTML Hypertext Markup Language
- the client can parse the HTML document and generate a tree-structured object, namely the DOM (Document Object Model).
- DOM Document Object Model
- Each object is a node on the DOM, and these objects can represent web resources such as text and images.
- the client can start displaying the HTML document and get the address of the embedded page resource, and then the client initiates a request to the server to obtain the page resources and display them in the client's HTML document.
- Step 102 When the object identifier is read from the page, obtain a service object corresponding to the object identifier from a cache of the server.
- the service bit can be encapsulated in a business object.
- the business object may include business object data (ie, operational bit data), and the business object data (ie, operational bit data) may include header data and list data (list), and list data (list) There are one or more business data in it.
- the header contains unique information such as id, title, online date, online time, offline date, offline time, etc., that is, there will be no two titles, and there will be no two online time.
- the header can be increased, decreased, and changed by code editing. This type of editing does not affect the storage at the database level.
- a list can be a series of data that has the same data attributes and is sorted according to a certain rule.
- a list of games, a banner that can be rotated, and the like can be supported in the form of such data.
- the operating system has an upper limit on the amount of data in the list.
- the maximum number is (63000/the total length of a single data string). Because it is stored in a composite field, there is a maximum length limit.
- the amount of data required in an operational position is greater than the system limit, it can be considered that such a large amount of data should not be artificially controlled.
- the number of humans can be controlled by a few or dozens, and more needs to use the basic database. achieve.
- the service object may further include a service object description information (ie, an operation bit description), where the service object description information is used to load the description information of the service object, and the operation operator manages the operation bit.
- a service object description information ie, an operation bit description
- the business object when an editing instruction for a business object is received in the server, the business object may be edited according to the editing instruction.
- An operational bit corresponds to a class in the underlying code that is represented in the member variable graph in the class.
- Each data item is called information.
- the header data and the list data in the business object can be edited according to the editing instruction
- the editor includes one or more of the following:
- the basic framework of the operating position is fixed. For different operating positions, only the field data in the in-going box and the corresponding information are edited, that is, the editing is completed, and one can be spelled out according to the name of the class. In the background address, you can display the above picture.
- the editing and presentation of the service data only needs to perform certain information editing work on the class corresponding to the operation bit.
- the background page will have corresponding changes immediately. Therefore, the addition, deletion and change of the operation position are quite convenient, which greatly improves the simplicity of operation.
- the data can be published to the online, and the corresponding data is saved in the online cache.
- the business object data in the business object can be pushed into the cache.
- the operation bit frame is fixed, it is easy to store an operation bit in the cache system in the form of a json string. In the presence of a database (such as redis), it is guaranteed not to expire, so that the cached data can be saved before the second release is overwritten. effective.
- the so-called “release” is to push the operation bit data in the database to the cache. This process is only related to the "mark” in the operation bit information (as a key), and the header and list are directly pushed to the data in the frame. In the cache.
- the operation bit corresponding to the identifier of the operation bit may be searched from the cache of the server.
- Step 103 Extract service data from the business object.
- the business data can be searched for suitable business data for loading.
- the first type only the list, or only a certain data presentation, requires an operational bit data to be processed. Therefore, the tagged business object is obtained from the server cache. If many items are returned, the data is unpacked one by one through the framework structure. , extracting business data;
- step 103 may include the following sub-steps:
- Sub-step S11 determining whether the service data is valid based on the header data
- the effective start time of the service data (characterized by id) (such as the online date and online time in FIG. 2A) and the effective end time (such as the offline date and the offline line in FIG. 2A) may be extracted from the header data. time);
- Determining whether the current time is in the effective start time and the effective end time if yes, determining that the service data is valid; if not, determining that the service data is invalid.
- Sub-step S12 when the business object is valid, the business data is extracted from the list data.
- the business object If the business object is valid, it can be extracted for loading. If the business object is invalid, it can be filtered out.
- Step 104 Load the service data into the page.
- the service bit generally has a designated area, and therefore, in the page, the service data can be loaded into the area indicated by the object identifier.
- the embodiment of the present invention obtains a business object from a cache of a server by using an object identifier, and extracts service data from the business object for loading, thereby avoiding establishing a plurality of databases to support the business object, and the operation behaviors are completely consistent, and the learning cost is not large. Improve the ease of development and effectiveness.
- the operator can configure all the data and then publish it, eliminating the problem of missing data on the line when half of the data is configured.
- FIG. 4 a block diagram of a system for loading a page data according to an embodiment of the present invention is shown.
- the system includes a client, and the client may specifically include the following modules:
- a page loading module 401 adapted to load a page
- the business object obtaining module 402 is configured to acquire a business object corresponding to the object identifier from a cache of the server when the object identifier is read from the page;
- the service data extraction module 403 is adapted to extract service data from the business object
- the service data loading module 404 is adapted to load the service data into the page.
- the business object includes business object data, the business object data includes header data and list data, and the list data has one or more service data;
- the service data extraction module 403 can also be adapted to:
- the business data is extracted from the list data.
- the service data extraction module 403 is further adapted to:
- the service data loading module 404 is further adapted to:
- the service data is loaded into an area indicated by the object identifier.
- the business object further includes business object description information, where the business object description information is used to load the description information of the business object.
- system further includes a server, and the server may specifically include the following modules:
- the editing module is adapted to edit the business object according to the editing instruction when receiving an editing instruction for the business object.
- the editing module may further be adapted to:
- the editing includes one or more of the following:
- system further includes a server, and the server may specifically include the following modules:
- the publishing module is adapted to push the business object data in the business object into the cache when receiving the publishing instruction for the business object.
- the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the page data loading device in accordance with embodiments of the present invention.
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- Figure 5 illustrates a load computing device, such as an application server, that can implement page data in accordance with the present invention.
- the computing device conventionally includes a computer program product or computer readable medium in the form of a processor 510 in the form of a memory 520.
- the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
- Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above.
- storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
- the program code can be read from or written to one or more computer program products.
- These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
- the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
- the program code can be compressed, for example, in an appropriate form.
- the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种页面数据的加载方法和系统,该方法包括:在客户端中加载一页面(101);当从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象(102);从所述业务对象中提取业务数据(103);将所述业务数据加载至所述页面中(104)。避免了建立众多的数据库对业务对象进行支持,操作行为都完全一致,没学习成本,大大提高了开发操作的简便性以及效率。此外,通过发布到缓存,运营人员可配置完所有数据后再发布,杜绝了配置一半数据时,线上出现缺少数据的问题。
Description
本发明涉及计算机处理的技术领域,尤其涉及一种页面数据的加载方法和一种页面数据的加载系统。
在加载某一页面时,除了页面内容本身之外,一般还会基于业务需求,加载其他数据,例如,横幅、推荐的信息等等。
如果这些展现的数据需要运营人员人工挑选确认,使数据相应区域上展现质量更高的数据,那么这个由运营人员部署数据的地方,可以称之为运营位,运营位的操作在运营后台中。
在传统的展示方式中,需要为每一个运营位配置一个数据库,当加载页面时,从该数据库读取相应的数据。
由于产品会经常发生变化,比如在某一个版本的页面中,在原来的展现区域中增加或者颠覆了一种内容,那么原来的运营位不能适用这个新版本,所以需要有一个新的运营位处理这个区域的数据。
然而,旧版本产品还要继续运营,所以,此时出现两个运营位,即不同版本的产品,会调用不同的运营位获取数据。
通常,针对不同运营位的属性,需要建立不同的数据库结构来支持,单一的、多重的、列表的、自动上下线的等等,每增加或者修改一个页面上的运营位,需要的开发量都有可能是要操作底层数据库的,而且开发完以后的操作方式也可能根据内容的不同而发生了变化,开发操作十分繁琐,效应效率低。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或减缓上述问题的一种页面数据的加载方法和相应的一种页面数据的加载系统。
根据本发明的一个方面,提供了一种页面数据的加载方法,包括步骤:
在客户端中加载一页面;
当从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象;
从所述业务对象中提取业务数据;
将所述业务数据加载至所述页面中。
根据本发明的另一方面,提供了一种页面数据的加载系统,所述系统包括客户端,所述客户端包括:
页面加载模块,适于加载一页面;
业务对象获取模块,适于在从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象;
业务数据提取模块,适于从所述业务对象中提取业务数据;
业务数据加载模块,适于将所述业务数据加载至所述页面中。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行上述的页面数据的加载方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。本发明的有益效果为:
本发明实施例通过对象标识从服务器的缓存中获取业务对象,从该业务对象中提取业务数据进行加载,避免了建立众多的数据库对业务对象进行支持,操作行为都完全一致,没学习成本,大大提高了开发操作的简便性以及效率。此外,通过发布到缓存,,运营人员可配置完所有数据后再发布,杜绝了配置一半数据时,线上出现缺少数据的问题。
本发明实施例对业务数据的编辑和展现只需要对该运营位对应的类进行一定的信息编辑工作,编辑后,后台页面马上会有相应的变化。所以,运营位的增删改查都是相当方便的,大大提高了操作的简便性。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示意性地示出了根据本发明一个实施例的一种页面数据的加载方法实施例的步骤流程图;
图2A和图2B示意性地示出了根据本发明一个实施例的业务对象的内容示例图;
图3示意性地示出了根据本发明一个实施例的一种业务对象的结构示例图;
图4示意性地示出了根据本发明一个实施例的一种页面数据的加载系统实施例的结构框图;
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
下面结合附图和具体的实施方式对本发明作进一步的描述。
参照图1,示出了根据本发明一个实施例的一种页面数据的加载方法实施例的步骤流程图,具体可以包括如下步骤:
步骤101,在客户端中加载一页面;
在具体实现中,客户端可以向服务器发送页面的加载请求,以加载相应
的页面。
页面的加载请求可以是指客户端发出的加载某个页面的指示。
例如,用户可以在浏览器中通过点击某链接请求加载一个网页,或者,启动游戏客户端、打开主页等等。
当用户点击某链接时,就相当于接收到了页面的加载请求;同样,启动时游戏客户端,也相当于接收到了加载页面的加载请求。
其中,加载请求的内容可以包括用户请求加载的页面的标识和/或网页的特征。
页面标识可以是能够代表一个唯一确定的网页的信息,例如统一资源标识符(Uniform Resource Identifier,URI),统一资源标识符又具体可以包括统一资源定位符(Uniform Resource Locator,URL),或者统一资源名称(Uniform Resource Name,URN)等等。
客户端通过DNS(Domain Name System,域名解析系统)解析查找该网页URL中的域名(Domain Name)所映射的IP(Internet Protocol,网络之间互连的协议)地址。
在获取IP地址成功之后,客户端可以向该IP地址所在的服务器请求连接。在成功连接该IP地址所在的服务器之后,客户端可以将请求头信息通过HTTP(Hypertext transfer protocol,超文本传送协议)协议向此IP地址所在的服务器发起页面加载的请求。该服务器接收到该请求之后等待处理,最后向客户端返回响应。
此时,在HTTP协议下,客户端可以从服务器接收到HTML(Hypertext Markup Language,超文本标记语言)类型的文档。
客户端可以解析HTML文档,生成树状结构的对象,即DOM(Document Object Model,文件对象模型),每个对象是DOM上的一个结点,而这些对象可以代表文字、图片等网页资源。
客户端可以开始显示此HTML文档,并获取其中内嵌的页面资源的地址,然后客户端再向服务器发起请求来获取这些页面资源,并在客户端的HTML文档中显示。
步骤102,当从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象;
应用本发明实施例,可以将运营位封装在一个业务对象中。
如图2A所示,业务对象中可以包括业务对象数据(即运营位数据),该业务对象数据(即运营位数据)可以包括头部数据(header)和列表数据(list),列表数据(list)中具有一个或多个业务数据。
其中,header中包含了id、标题、上线日期、上线时间、下线日期、下线时间等唯一性信息,即不会有两个标题,不会有两个上线时间。
header是可以通过代码编辑随意增减、改变的,此种编辑不会影响数据库层面的存储。
list可以是一系列有同样数据属性的,按照某个规则排序出来的数据。
例如,游戏列表,可轮播的广告banner(横幅)等等,都可以以此类数据形式支持。
通常,运营位系统对列表的数据量是有上限的,最大个数为(63000/单条数据字符串总长度),因为是按复合字段存储的,所以有最大长度限制。
假如一个运营位上,需要的数据量大于系统限制,可以认为那么大的数据量不应该是人为控制的,人力能控制的数量也就几条或者几十条,再多就需要使用基础数据库来实现。
此外,如图2B所示,业务对象中还可以包括业务对象说明信息(即运营位说明),业务对象说明信息用于加载业务对象的说明信息,辅助运营人员管理该运营位。
其中可以包含此运营位的一些基本信息,专门给运营人员区别该运营位属性特点的,一般不会发布到线上。
主要有运营位标题,用于运营人员标记该运营位一些特点,还有创建时间,创建人,最后修改者等一些针对运营位的描述信息。
在本发明实施例中,在服务器中接收到针对业务对象的编辑指令时,可以根据编辑指令对业务对象进行编辑。
一个运营位对应了底层代码中的一个类,该类中的成员变量图中展现的
各个数据项,叫做信息。
对于一个运营位中具体有什么信息,只需要在类中将对应的字段以及属性填写上,无论是header中的还是list中的,都可随意更改。
因此,可以根据编辑指令对业务对象中的头部数据及列表数据进行编辑;
其中,编辑包括如下的一种或多种:
增加头部数据及业务数据、删除业务数据、修改业务数据。
如图3所示,运营位的基本框架是固定的,对于不同的运营位,只需要编辑途中框内字段数据,以及对应的一些信息,即算编辑完了,在一个可根据该类名称拼写出来的后台地址中,就可以展现上图。
本发明实施例对业务数据的编辑和展现只需要对该运营位对应的类进行一定的信息编辑工作,编辑后,后台页面马上会有相应的变化。所以,运营位的增删改查都是相当方便的,大大提高了操作的简便性。
此外,运营添加完数据,可以将数据发布到线上,线上缓存中保存好对应的数据。
在服务器中接收到针对业务对象的发布指令时,可以将业务对象中的业务对象数据推送至缓存中。
由于运营位框架固定,所以很容易将一个运营位按照json串的形式存储在缓存系统中,存在数据库(如redis)中,保证不会过期,可使缓存数据在没有第二次发布覆盖之前都有效。
所谓的“发布”,即是将数据库中的运营位数据推送到缓存中,此过程只跟运营位信息中的“标记”有关(作为key),header和list作为框架中的数据直接被推送到了缓存里。
在客户端中,若在页面文档中解析到运营位的标识(即对象标识),则可以从服务器的缓存中查找该运营位的标识对应的运营位。
步骤103,从所述业务对象中提取业务数据;
若获取到业务对象,则可以从该业务对象中查找合适的业务数据进行加载。
在提取业务数据时,一般分两种情况,只有一个列表,或,有很多个列表组层的块状形式:
第一种,只有列表,或者只有某个数据展现,需要一个运营位数据即可处理,所以,从服务器缓存中获取标记的业务对象,如果返回了很多条,那么要逐一通过框架结构解开数据,提取业务数据;
第二种,有很多列表包组成的块状样式,这种需要很多个运营位数据,依然是从服务器缓存中获取标记的业务对象,通过框架解开数据,提取业务数据。
在本发明的一种可选实施例中,步骤103可以包括如下子步骤:
子步骤S11,基于所述头部数据判断所述业务数据是否有效;
在具体实现中,可以从头部数据中提取业务数据(以id表征)的生效起始时间(如图2A的上线日期、上线时间)和生效终结时间(如图2A的下线日期、下线时间);
判断当前的时间是否在生效起始时间和所述生效终结时间之中,若是,则确定业务数据有效;若否,则确定业务数据无效。
需要说明的是,由于生效起始时间和生效终结时间可以进行有效性筛选,实现了自动上下线,运营人员可在预先配置好所有的数据,在后数据会自动生效,进一步提高了操作的简便性。
子步骤S12,当所述业务对象有效时,从所述列表数据中提取所述业务数据。
若业务对象有效,则可以提取出来进行加载,若业务对象无效,则可以筛选掉。
步骤104,将所述业务数据加载至所述页面中。
在具体实现中,运营位一般具有指定的区域,因此,在页面中,可以将业务数据加载至对象标识指示的区域中。
本发明实施例通过对象标识从服务器的缓存中获取业务对象,从该业务对象中提取业务数据进行加载,避免了建立众多的数据库对业务对象进行支持,操作行为都完全一致,没学习成本,大大提高了开发操作的简便性以及
效率。此外,通过发布到缓存,,运营人员可配置完所有数据后再发布,杜绝了配置一半数据时,线上出现缺少数据的问题。
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
参照图4,示出了根据本发明一个实施例的一种页面数据的加载系统实施例的结构框图,所述系统包括客户端,所述客户端具体可以包括如下模块:
页面加载模块401,适于加载一页面;
业务对象获取模块402,适于在从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象;
业务数据提取模块403,适于从所述业务对象中提取业务数据;
业务数据加载模块404,适于将所述业务数据加载至所述页面中。
在本发明的一种可选实施例中,所述业务对象中包括业务对象数据,所述业务对象数据包括头部数据和列表数据,所述列表数据中具有一个或多个业务数据;
所述业务数据提取模块403还可以适于:
基于所述头部数据判断所述业务数据是否有效;
当所述业务对象有效时,从所述列表数据中提取所述业务数据。
在本发明的一种可选实施例中,所述业务数据提取模块403还可以适于:
从所述头部数据中提取业务数据的生效起始时间和生效终结时间;
判断当前的时间是否在所述生效起始时间和所述生效终结时间之中;
若是,则确定所述业务数据有效;
若否,则确定所述业务数据无效。
在本发明的一种可选实施例中,所述业务数据加载模块404还可以适于:
在所述页面中,将所述业务数据加载至所述对象标识指示的区域中。
在本发明的一种可选实施例中,所述业务对象中还包括业务对象说明信息,所述业务对象说明信息用于加载业务对象的说明信息。
在本发明的一种可选实施例中,所述系统还包括服务器,所述服务器具体可以包括如下模块:
编辑模块,适于接收到针对业务对象的编辑指令时,根据所述编辑指令对所述业务对象进行编辑。
在本发明的一种可选实施例中,所述编辑模块还可以适于:
根据编辑指令对所述业务对象中的头部数据及列表数据进行编辑;
其中,所述编辑包括如下的一种或多种:
增加头部数据及业务数据、删除业务数据、修改业务数据。
在本发明的一种可选实施例中,所述系统还包括服务器,所述服务器具体可以包括如下模块:
发布模块,适于在接收到针对业务对象的发布指令时,将所述业务对象中的业务对象数据推送至缓存中。
对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的页面数据的加载设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5出了可以实现根据本发明的页面数据的加载计算设备,例如应用服务器。该计算设备传统上包括处理器510以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6述的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计
算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。
Claims (12)
- 一种页面数据的加载方法,包括步骤:在客户端中加载一页面;当从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象;从所述业务对象中提取业务数据;将所述业务数据加载至所述页面中。
- 如权利要求1所述的方法,所述业务对象中包括业务对象数据,所述业务对象数据包括头部数据和列表数据,所述列表数据中具有一个或多个业务数据;所述从所述业务对象中提取业务数据的步骤包括:基于所述头部数据判断所述业务数据是否有效;当所述业务对象有效时,从所述列表数据中提取所述业务数据。
- 如权利要求2所述的方法,所述基于所述头部数据判断所述业务数据是否有效的步骤包括:从所述头部数据中提取业务数据的生效起始时间和生效终结时间;判断当前的时间是否在所述生效起始时间和所述生效终结时间之中;若是,则确定所述业务数据有效;若否,则确定所述业务数据无效。
- 如权利要求1所述的方法,所述将所述业务数据加载至所述页面中的步骤包括:在所述页面中,将所述业务数据加载至所述对象标识指示的区域中。
- 如权利要求2所述的方法,所述业务对象中还包括业务对象说明信息,所述业务对象说明信息用于加载业务对象的说明信息。
- 如权利要求1或2或3或4或5所述的方法,还包括步骤:在服务器中接收到针对业务对象的编辑指令时,根据所述编辑指令对所述业务对象进行编辑。
- 如权利要求6所述的方法,所述根据编辑指令对所述业务对象进行 编辑的步骤包括:根据编辑指令对所述业务对象中的头部数据及列表数据进行编辑;其中,所述编辑包括如下的一种或多种:增加头部数据及业务数据、删除业务数据、修改业务数据。
- 如权利要求1或2或3或4或5或7所述的方法,还包括步骤:在服务器中接收到针对业务对象的发布指令时,将所述业务对象中的业务对象数据推送至缓存中。
- 一种页面数据的加载系统,所述系统包括客户端,所述客户端包括:页面加载模块,适于加载一页面;业务对象获取模块,适于在从所述页面读取到对象标识时,从服务器的缓存中获取所述对象标识对应的业务对象;业务数据提取模块,适于从所述业务对象中提取业务数据;业务数据加载模块,适于将所述业务数据加载至所述页面中。
- 如权利要求9所述的系统,所述业务对象中包括业务对象数据,所述业务对象数据包括头部数据和列表数据,所述列表数据中具有一个或多个业务数据;所述业务数据提取模块还适于:基于所述头部数据判断所述业务数据是否有效;当所述业务对象有效时,从所述列表数据中提取所述业务数据。
- 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算机设备上运行时,导致所述计算机设备执行根据权利要求1-8中的任一个所述的页面数据的加载方法。
- 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510982888.8 | 2015-12-23 | ||
| CN201510982888.8A CN105528452A (zh) | 2015-12-23 | 2015-12-23 | 一种页面数据的加载方法和系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017107620A1 true WO2017107620A1 (zh) | 2017-06-29 |
Family
ID=55770675
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/101598 Ceased WO2017107620A1 (zh) | 2015-12-23 | 2016-10-09 | 一种页面数据的加载方法和系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105528452A (zh) |
| WO (1) | WO2017107620A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111273964A (zh) * | 2020-02-14 | 2020-06-12 | 北京字节跳动网络技术有限公司 | 一种数据加载方法及装置 |
| CN118051687A (zh) * | 2024-04-16 | 2024-05-17 | 太平金融科技服务(上海)有限公司 | 页面响应方法、装置、电子设备及存储介质 |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105528452A (zh) * | 2015-12-23 | 2016-04-27 | 北京奇虎科技有限公司 | 一种页面数据的加载方法和系统 |
| CN106055564B (zh) * | 2016-05-18 | 2019-03-12 | 平安科技(深圳)有限公司 | 页面加载方法和装置 |
| CN106874327B (zh) * | 2016-07-08 | 2021-02-23 | 创新先进技术有限公司 | 一种针对业务数据的计数方法及装置 |
| CN106502738A (zh) * | 2016-10-24 | 2017-03-15 | 福建中金在线信息科技有限公司 | 一种移动终端中的数据加载方法及装置 |
| CN106570121A (zh) * | 2016-10-25 | 2017-04-19 | 广州新博庭网络信息科技股份有限公司 | 一种业务数据的展现方法和装置 |
| CN107291940A (zh) * | 2017-07-07 | 2017-10-24 | 腾讯科技(深圳)有限公司 | 页面内容管理方法、装置及相关服务器 |
| CN108089894A (zh) * | 2017-12-15 | 2018-05-29 | 福建中金在线信息科技有限公司 | 页面的显示方法、装置及电子设备 |
| CN108388607A (zh) * | 2018-02-06 | 2018-08-10 | 北京奇艺世纪科技有限公司 | 一种页面显示方法和装置 |
| CN109522073A (zh) * | 2018-11-06 | 2019-03-26 | 网宿科技股份有限公司 | 基于json的多层级页面存储方法、装置及电子设备 |
| CN111367596B (zh) * | 2018-12-25 | 2023-06-23 | 阿里巴巴集团控股有限公司 | 一种实现业务数据处理的方法及装置和客户端 |
| CN111797345B (zh) * | 2019-04-08 | 2024-04-30 | 北京百度网讯科技有限公司 | 应用页面展现方法、装置、计算机设备和存储介质 |
| CN114881715B (zh) | 2021-02-05 | 2025-10-10 | 阿里巴巴集团控股有限公司 | 文本生成方法及装置 |
| CN116595052A (zh) * | 2023-05-18 | 2023-08-15 | 深圳市溯原科技有限公司 | 一种数据查询方法、通信系统及相关装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101295302A (zh) * | 2007-04-25 | 2008-10-29 | 百度在线网络技术(北京)有限公司 | 广告投放系统及方法 |
| CN101593331A (zh) * | 2008-05-31 | 2009-12-02 | 华为技术有限公司 | 一种广告内容的选择方法、系统和装置 |
| CN102708504A (zh) * | 2012-05-15 | 2012-10-03 | 合一网络技术(北京)有限公司 | 一种基于网络视频的虚拟微轮播广告投放方法及其装置 |
| CN105528452A (zh) * | 2015-12-23 | 2016-04-27 | 北京奇虎科技有限公司 | 一种页面数据的加载方法和系统 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104426863B (zh) * | 2013-08-27 | 2019-09-20 | 腾讯科技(深圳)有限公司 | 一种页面请求方法、页面请求装置、中转服务器及终端 |
| CN103701929A (zh) * | 2014-01-02 | 2014-04-02 | 中安消技术有限公司 | 实现业务数据缓存的方法及装置 |
| CN104765622B (zh) * | 2014-01-03 | 2019-12-27 | 腾讯科技(深圳)有限公司 | 页面资源的加载方法及装置 |
| CN104850560A (zh) * | 2014-02-18 | 2015-08-19 | 北京京东尚科信息技术有限公司 | 一种实时加载网页中业务数据的方法和系统 |
-
2015
- 2015-12-23 CN CN201510982888.8A patent/CN105528452A/zh active Pending
-
2016
- 2016-10-09 WO PCT/CN2016/101598 patent/WO2017107620A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101295302A (zh) * | 2007-04-25 | 2008-10-29 | 百度在线网络技术(北京)有限公司 | 广告投放系统及方法 |
| CN101593331A (zh) * | 2008-05-31 | 2009-12-02 | 华为技术有限公司 | 一种广告内容的选择方法、系统和装置 |
| CN102708504A (zh) * | 2012-05-15 | 2012-10-03 | 合一网络技术(北京)有限公司 | 一种基于网络视频的虚拟微轮播广告投放方法及其装置 |
| CN105528452A (zh) * | 2015-12-23 | 2016-04-27 | 北京奇虎科技有限公司 | 一种页面数据的加载方法和系统 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111273964A (zh) * | 2020-02-14 | 2020-06-12 | 北京字节跳动网络技术有限公司 | 一种数据加载方法及装置 |
| CN111273964B (zh) * | 2020-02-14 | 2024-03-08 | 抖音视界有限公司 | 一种数据加载方法及装置 |
| CN118051687A (zh) * | 2024-04-16 | 2024-05-17 | 太平金融科技服务(上海)有限公司 | 页面响应方法、装置、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105528452A (zh) | 2016-04-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101364979B (zh) | 下载资料解析及处理系统及方法 | |
| CN105528452A (zh) | 一种页面数据的加载方法和系统 | |
| JP5443513B2 (ja) | ドメインにわたりクッキーを処理する方法およびシステム | |
| US8578019B2 (en) | Monitoring the health of web page analytics code | |
| JP6416374B2 (ja) | 動的コンテンツと古いコンテンツとを含んでいるウェブサイトの高速レンダリング | |
| JP5823620B2 (ja) | ネットデータの採集方法及びシステム | |
| CN108304498A (zh) | 网页数据采集方法、装置、计算机设备和存储介质 | |
| CN104301379A (zh) | 一种网页跨域通信方法和装置 | |
| WO2020088104A1 (zh) | 一种通过文件获取对网页进行区块链存证的方法及装置 | |
| US20180150460A1 (en) | Method of programatically adding tld registration capability to a domain name registrar | |
| CN1987851A (zh) | 一种网页数据的更新显示方法 | |
| CN103631905A (zh) | 一种网页的加载方法和浏览器 | |
| US9876879B2 (en) | Distributed network page generation | |
| CN107807937A (zh) | 一种网站seo处理方法、装置及系统 | |
| US20110276876A1 (en) | Method and system for storing words and their context to a database | |
| CN105094753A (zh) | 一种线框图的绘制方法、装置和系统 | |
| CN107291940A (zh) | 页面内容管理方法、装置及相关服务器 | |
| CN104750679A (zh) | 一种网页文档编辑器中的资源加载方法 | |
| CN103856827A (zh) | 一种基于服务模拟交互的视频内容获取方法及系统 | |
| CN114329281A (zh) | 渲染服务器、网页渲染方法及装置 | |
| US20140189489A1 (en) | Creating and using a tld markup language | |
| WO2015154682A1 (zh) | 一种网络请求处理方法、网络服务器和网络系统 | |
| CN102004729A (zh) | 一种网站网页的展现方法、系统及网站服务器 | |
| JP5215393B2 (ja) | コンテンツサーバの待ち時間の決定 | |
| US20140188872A1 (en) | Tld markup language based domain name registering entity |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16877431 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16877431 Country of ref document: EP Kind code of ref document: A1 |