技术领域technical field
本发明涉及互联网技术领域,尤其涉及一种页面数据的加载方法和装置。The invention relates to the technical field of the Internet, in particular to a method and device for loading page data.
背景技术Background technique
随着互联网技术的飞速发展,浏览器在日常生活、工作和学习中的应用已经越来越频繁。With the rapid development of Internet technology, the application of browsers in daily life, work and study has become more and more frequent.
目前,一般浏览器进行页面加载的过程是:当接收到用户提交的URL(Uniform/Universal Resource Locator,统一资源定位符,也被称为网页地址)请求时(例如,用户在浏览器的地址栏输入网址),向相应服务器请求页面数据,并将请求到的页面数据下载到浏览器,然后对该页面数据进行渲染,通过浏览器窗口展示经渲染处理后的页面。At present, the general browser's page loading process is: when receiving a URL (Uniform/Universal Resource Locator, Uniform Resource Locator, also known as a web page address) request submitted by a user (for example, the user enters the URL in the address bar of the browser Enter the URL), request the page data from the corresponding server, download the requested page data to the browser, then render the page data, and display the rendered page through the browser window.
在渲染时如果出现一些特定类型的页面数据,则浏览器根据页面数据的MIME(Multipurpose Internet Mail Extensions,多用途互联网邮件扩展)类型,调用相应的程序或插件进行处理,例如JPG格式的图片等。然而,当从服务器回传来的页面数据中携带的MIME类型不正确或者为空时,则就会导致浏览器打开该页面时不能对其进行加载并渲染,使得加载失败,从而导致用户不能正常地浏览查看该页面数据对应的网页内容,导致用户体验变差。If some specific types of page data appear during rendering, the browser will call the corresponding program or plug-in to process according to the MIME (Multipurpose Internet Mail Extensions) type of the page data, such as pictures in JPG format, etc. However, when the MIME type carried in the page data sent back from the server is incorrect or empty, it will cause the browser to fail to load and render the page when it is opened, causing the loading to fail, resulting in the user being unable to Browsing and viewing the web page content corresponding to the data on the page indiscriminately leads to poor user experience.
发明内容Contents of the invention
本发明的目的旨在至少在一定程度上解决上述的技术问题之一。The object of the present invention is to solve one of the above-mentioned technical problems at least to a certain extent.
为此,本发明的第一个目的在于提出一种页面数据的加载方法。该方法能够正确地加载并渲染页面数据,提高加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升用户体验。Therefore, the first object of the present invention is to propose a method for loading page data. The method can correctly load and render the page data, improve the loading effect, and for the user, enable the user to normally browse and check the web page content corresponding to the page data, thereby improving the user experience.
本发明的第二个目的在于提出一种页面数据的加载装置。The second object of the present invention is to provide a device for loading page data.
本发明的第三个目的在于提出一种终端。The third object of the present invention is to provide a terminal.
为了实现上述目的,本发明第一方面实施例的页面数据的加载方法,包括:接收服务器发送的页面数据;确定所述页面数据中的数据帧的数据格式;根据所述数据格式确定所述页面数据对应的多用途互联网邮件扩展MIME类型;以及根据所述确定的MIME类型加载所述页面数据。In order to achieve the above purpose, the method for loading page data in the embodiment of the first aspect of the present invention includes: receiving the page data sent by the server; determining the data format of the data frame in the page data; determining the page data format according to the data format a MIME type corresponding to the data; and loading the page data according to the determined MIME type.
本发明实施例的页面数据的加载方法,可确定接收到的页面数据中的数据帧的数据格式,并根据该数据格式确定页面数据对应的MIME类型,以及根据该MIME类型加载页面数据,从而可以使得浏览器类应用程序能够正确地加载并渲染页面数据,提高了加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升了用户体验。The page data loading method of the embodiment of the present invention can determine the data format of the data frame in the received page data, and determine the MIME type corresponding to the page data according to the data format, and load the page data according to the MIME type, so that The browser application program can correctly load and render the page data, which improves the loading effect, and for the user, enables the user to normally browse and view the web page content corresponding to the page data, thereby improving the user experience.
为了实现上述目的,本发明第二方面实施例的页面数据的加载装置,包括:接收模块,用于接收服务器发送的页面数据;第一确定模块,用于确定所述页面数据中的数据帧的数据格式;第二确定模块,用于根据所述数据格式确定所述页面数据对应的多用途互联网邮件扩展MIME类型;以及加载模块,用于根据所述确定的MIME类型加载所述页面数据。In order to achieve the above object, the device for loading page data in the embodiment of the second aspect of the present invention includes: a receiving module, used to receive the page data sent by the server; a first determining module, used to determine the number of data frames in the page data data format; a second determination module, configured to determine the MIME type corresponding to the page data according to the data format; and a loading module, configured to load the page data according to the determined MIME type.
本发明实施例的页面数据的加载装置,可通过接收模块接收服务器发送的页面数据,第一确定模块确定页面数据中的数据帧的数据格式,第二确定模块根据该数据格式确定页面数据对应的MIME类型,加载模块根据该MIME类型加载页面数据,从而可以使得浏览器类应用程序能够正确地加载并渲染页面数据,提高了加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升了用户体验。The page data loading device of the embodiment of the present invention can receive the page data sent by the server through the receiving module, the first determining module determines the data format of the data frame in the page data, and the second determining module determines the corresponding frame of the page data according to the data format. MIME type, the loading module loads page data according to the MIME type, so that browser applications can correctly load and render page data, improve the loading effect, and for users, enable users to browse and view page data normally The corresponding webpage content improves the user experience.
为了实现上述目的,本发明第三方面实施例的终端,包括:外壳,处理器和电路板;所述电路板安置在所述外壳围成的空间内部,所述处理器设置在所述电路板上;所述处理器用于运行应用程序,具体用于:接收服务器发送的页面数据;确定所述页面数据中的数据帧的数据格式;根据所述数据格式确定所述页面数据对应的多用途互联网邮件扩展MIME类型;以及根据所述确定的MIME类型加载所述页面数据。In order to achieve the above object, the terminal according to the embodiment of the third aspect of the present invention includes: a casing, a processor and a circuit board; the circuit board is placed inside the space enclosed by the casing, and the processor is arranged on the circuit board above; the processor is used to run the application program, and is specifically used to: receive the page data sent by the server; determine the data format of the data frame in the page data; determine the multi-purpose Internet corresponding to the page data according to the data format mail extension MIME type; and loading the page data according to the determined MIME type.
本发明实施例的终端,可确定接收到的页面数据中的数据帧的数据格式,并根据该数据格式确定页面数据对应的MIME类型,以及根据该MIME类型加载页面数据,从而可以使得浏览器类应用程序能够正确地加载并渲染页面数据,提高了加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升了用户体验。The terminal of the embodiment of the present invention can determine the data format of the data frame in the received page data, and determine the MIME type corresponding to the page data according to the data format, and load the page data according to the MIME type, so that the browser class can The application program can correctly load and render the page data, which improves the loading effect, and for the user, enables the user to normally browse and view the web page content corresponding to the page data, thereby improving the user experience.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1是根据本发明一个实施例的页面数据的加载方法的流程图;FIG. 1 is a flowchart of a method for loading page data according to an embodiment of the present invention;
图2是根据本发明另一个实施例的页面数据的加载方法的流程图;FIG. 2 is a flow chart of a method for loading page data according to another embodiment of the present invention;
图3是根据本发明又一个实施例的页面数据的加载方法的流程图;3 is a flowchart of a method for loading page data according to another embodiment of the present invention;
图4是根据本发明再一个实施例的页面数据的加载方法的流程图;4 is a flowchart of a method for loading page data according to another embodiment of the present invention;
图5是根据本发明一个实施例的页面数据的加载装置的结构示意图;FIG. 5 is a schematic structural diagram of a device for loading page data according to an embodiment of the present invention;
图6是根据本发明另一个实施例的页面数据的加载装置的结构示意图;6 is a schematic structural diagram of a device for loading page data according to another embodiment of the present invention;
图7是根据本发明又一个实施例的页面数据的加载装置的结构示意图;以及FIG. 7 is a schematic structural diagram of a device for loading page data according to yet another embodiment of the present invention; and
图8是根据本发明再一个实施例的页面数据的加载装置的结构示意图。Fig. 8 is a schematic structural diagram of an apparatus for loading page data according to yet another embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
为了解决页面数据中的MIME类型不正确或者为空时,导致浏览器打开该页面时不能对其进行加载并渲染的问题,本发明提出了一种页面数据的加载方法和装置。具体地,下面参考附图描述根据本发明实施例的页面数据的加载方法和装置。In order to solve the problem that the browser cannot load and render the page when the MIME type in the page data is incorrect or empty, the present invention proposes a page data loading method and device. Specifically, the method and device for loading page data according to the embodiments of the present invention will be described below with reference to the accompanying drawings.
图1是根据本发明一个实施例的页面数据的加载方法的流程图。如图1所示,该页面数据的加载方法可以包括:Fig. 1 is a flowchart of a method for loading page data according to an embodiment of the present invention. As shown in Figure 1, the loading method of the page data may include:
S100,接收服务器发送的页面数据。S100, receiving page data sent by the server.
例如,用户可通过浏览器类应用程序提交输入的URL请求,浏览器类应用程序向相应服务器请求网页数据,并接收服务器根据该URL请求发送的对应的网页数据。For example, a user may submit an input URL request through a browser-type application program, and the browser-type application program requests webpage data from a corresponding server, and receives corresponding webpage data sent by the server according to the URL request.
S101,确定页面数据中的数据帧的数据格式。S101. Determine the data format of the data frame in the page data.
其中,在本发明的一个实施例中,上述页面数据中的数据帧可理解为一个或多个的数据帧。数据帧是数据在网络上传输时的一个数据单元,可包括帧头、数据部分和帧尾等。Wherein, in one embodiment of the present invention, the data frames in the above page data can be understood as one or more data frames. A data frame is a data unit when data is transmitted on the network, and may include a frame header, a data part, and a frame tail.
举例而言,可从页面数据中的开始几帧中获取数据帧的数据格式,如,GIF格式、JPEG格式、MP3格式、文本格式、PDF格式、AVI格式、PNG格式等。For example, the data format of the data frame can be obtained from the first few frames in the page data, such as GIF format, JPEG format, MP3 format, text format, PDF format, AVI format, PNG format, etc.
S102,根据数据格式确定页面数据对应的MIME类型。S102. Determine the MIME type corresponding to the page data according to the data format.
例如,对于JPEG图片来说,由于JPEG(Joint Photographic Experts Group)是由国际标准组织(ISO:International Standardization Organization)和国际电话电报咨询委员会(CCITT:Consultation Commitee of the International Telephone andTelegraph)为静态图像所建立的国际数字图像压缩标准,因此,JPEG图片的数据格式要符合一定的标准。For example, for JPEG images, since JPEG (Joint Photographic Experts Group) was established by the International Standardization Organization (ISO: International Standardization Organization) and the International Telephone and Telegraph Consultative Committee (CCITT: Consultation Committee of the International Telephone and Telegraph) for static images Therefore, the data format of JPEG pictures must meet certain standards.
因此,如果页面数据的数据格式为符合该标准的数据格式,那么就可以推断该页面数 据的MIME类型为“image/jpeg”。同样地,对于其他类型如GIF格式、MP3格式、PDF格式、AVI格式、PNG格式等均适用,在此不再赘述。Therefore, if the data format of the page data is a data format conforming to the standard, it can be deduced that the MIME type of the page data is "image/jpeg". Similarly, it is applicable to other types such as GIF format, MP3 format, PDF format, AVI format, PNG format, etc., and will not be repeated here.
举例来说,如果根据页面数据的第N帧,确定数据帧的数据格式为JPEG格式,所以可根据该数据格式确定对应的MIME类型为“image/jpeg”。For example, if according to the Nth frame of the page data, it is determined that the data format of the data frame is JPEG format, so it can be determined according to the data format that the corresponding MIME type is "image/jpeg".
S103,根据确定的MIME类型加载页面数据。S103. Load page data according to the determined MIME type.
具体地,可根据确定的MIME类型调用对应的应用、程序或插件来打开该MIME类型的页面数据,使页面数据能够正确地加载并渲染。Specifically, a corresponding application, program or plug-in can be invoked according to the determined MIME type to open the page data of the MIME type, so that the page data can be correctly loaded and rendered.
本发明实施例的页面数据的加载方法,可确定接收到的页面数据中的数据帧的数据格式,并根据该数据格式确定页面数据对应的MIME类型,以及根据该MIME类型加载页面数据,从而可以使得浏览器类应用程序能够正确地加载并渲染页面数据,提高了加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升了用户体验。The page data loading method of the embodiment of the present invention can determine the data format of the data frame in the received page data, and determine the MIME type corresponding to the page data according to the data format, and load the page data according to the MIME type, so that The browser application program can correctly load and render the page data, which improves the loading effect, and for the user, enables the user to normally browse and view the web page content corresponding to the page data, thereby improving the user experience.
图2是根据本发明另一个实施例的页面数据的加载方法的流程图。Fig. 2 is a flowchart of a method for loading page data according to another embodiment of the present invention.
为了提高准确度,提高加载效果,在本发明的实施例中,如图2所示,上述S103之前,还可以包括:In order to improve the accuracy and improve the loading effect, in an embodiment of the present invention, as shown in FIG. 2, before the above S103, it may also include:
S203,如果页面数据中携带有MIME类型,则将确定的MIME类型与页面数据中携带的MIME类型进行比对。S203, if the page data carries the MIME type, compare the determined MIME type with the MIME type carried in the page data.
S204,如果确定的MIME类型与页面数据中携带的MIME类型不一致,则执行S103以及S205。S204, if the determined MIME type is inconsistent with the MIME type carried in the page data, execute S103 and S205.
例如,如果页面数据中携带的MIME类型为自定义的MIME类型,或为误配置错的类型,或者为空,则可根据确定的MIME类型找到对应的应用程序或插件来加载页面数据,使页面数据能够正确地加载并渲染。由此,提高了准确度。For example, if the MIME type carried in the page data is a self-defined MIME type, or is a misconfigured type, or is empty, you can find the corresponding application or plug-in to load the page data according to the determined MIME type, so that the page Data is loaded and rendered correctly. Thereby, accuracy is improved.
S205,向页面数据提供商发送提示信息。S205. Send prompt information to the page data provider.
具体地,当确定的MIME类型与页面数据中携带的MIME类型不一致,可判断确定原来的页面数据中携带的MIME类型版本是错误的,并可向页面数据提供商发送提示信息,可方便提供商完善页面数据中携带的MIME类型版本。Specifically, when the determined MIME type is inconsistent with the MIME type carried in the page data, it can be determined that the version of the MIME type carried in the original page data is wrong, and a prompt message can be sent to the page data provider, which can facilitate the provider Improve the MIME type version carried in the page data.
本发明实施例的页面数据的加载方法,如果原来的页面数据中携带的MIME类型版本是错误的时候,可向页面数据提供商发送提示信息,从而方便提供商来完善页面数据中携带的MIME类型版本。In the page data loading method of the embodiment of the present invention, if the MIME type version carried in the original page data is wrong, a prompt message can be sent to the page data provider, so as to facilitate the provider to improve the MIME type carried in the page data Version.
可选的,根据本发明又一个实施例,如图3所示,上述S102之前,还可以包括:Optionally, according to yet another embodiment of the present invention, as shown in FIG. 3, before the above S102, it may also include:
S302,判断根据数据格式是否能确定页面数据对应的MIME类型;如果能够确定页面数据对应的MIME类型,则执行S102;否则,执行S305。S302. Determine whether the MIME type corresponding to the page data can be determined according to the data format; if the MIME type corresponding to the page data can be determined, perform S102; otherwise, perform S305.
S305,将页面数据传输至指定地址。S305. Transmit the page data to a designated address.
例如,若页面数据中的数据格式为误配置错的数据格式,这样就不能获取到对应的MIME类型,此时可将该页面数据传输到指定地址。在本发明的实施例中,指定地址可为浏览器下载文件或者应用程序等所指定的存储地址。该指定地址可为浏览器默认的地址,也可为用户设置的地址。For example, if the data format in the page data is a misconfigured data format, and the corresponding MIME type cannot be obtained, then the page data can be transmitted to a specified address. In an embodiment of the present invention, the designated address may be a storage address designated by the browser to download files or application programs. The specified address may be a default address of the browser, or may be an address set by a user.
本发明实施例的页面数据的加载方法,如果不能确定页面数据对应的MIME类型,则可将页面数据传输至指定地址,即可将页面数据传输到指定的存储地址,方便后续用户的查看。In the page data loading method of the embodiment of the present invention, if the MIME type corresponding to the page data cannot be determined, the page data can be transmitted to a specified address, that is, the page data can be transmitted to a specified storage address, which is convenient for subsequent users to view.
可选的,为了使得用户更加直观地了解到页面数据的下载位置,在本发明的实施例中,在将页面数据传输至指定地址(S305)之后,如图4所示,还可以包括:Optionally, in order to make the user understand the download location of the page data more intuitively, in an embodiment of the present invention, after the page data is transmitted to the specified address (S305), as shown in FIG. 4 , it may also include:
S406,弹出提示框向用户提示上述指定地址。S406, popping up a prompt box to prompt the user for the specified address.
本发明实施例的页面数据的加载方法,在将页面数据传输至指定地址之后,可弹出提示框向用户提示该指定地址,从而使得用户更加直观地了解到页面数据的下载位置。In the page data loading method of the embodiment of the present invention, after the page data is transmitted to the specified address, a prompt box may pop up to prompt the user of the specified address, so that the user can more intuitively know the download location of the page data.
此外,本发明还提出了一种页面数据的加载装置。In addition, the invention also proposes a page data loading device.
图5是根据本发明一个实施例的页面数据的加载装置的结构示意图。Fig. 5 is a schematic structural diagram of an apparatus for loading page data according to an embodiment of the present invention.
如图5所示,该页面数据的加载装置可以包括:接收模块10、第一确定模块20、第二确定模块30和加载模块40。其中:As shown in FIG. 5 , the device for loading page data may include: a receiving module 10 , a first determining module 20 , a second determining module 30 and a loading module 40 . in:
接收模块10,用于接收服务器发送的页面数据。The receiving module 10 is configured to receive page data sent by the server.
例如,用户可通过浏览器类应用程序提交输入的URL请求,浏览器类应用程序向相应服务器请求网页数据,并接收服务器根据该URL请求发送的对应的网页数据。For example, a user may submit an input URL request through a browser-type application program, and the browser-type application program requests webpage data from a corresponding server, and receives corresponding webpage data sent by the server according to the URL request.
第一确定模块20,用于确定页面数据中的数据帧的数据格式。The first determining module 20 is configured to determine the data format of the data frame in the page data.
第二确定模块30,用于根据数据格式确定页面数据对应的MIME类型。The second determination module 30 is configured to determine the MIME type corresponding to the page data according to the data format.
加载模块40,用于根据确定的MIME类型加载页面数据。例如,加载模块40可用于根据确定的MIME类型调用对应的应用、程序或插件来打开该MIME类型的页面数据,使页面数据能够正确地加载并渲染。A loading module 40, configured to load page data according to the determined MIME type. For example, the loading module 40 can be used to call a corresponding application, program or plug-in according to the determined MIME type to open the page data of the MIME type, so that the page data can be loaded and rendered correctly.
可选地,在本发明的一个实施例中,如果页面数据中携带有MIME类型,如图6所示,该页面数据的加载装置还可以包括比对模块50和通知模块41。具体地,比对模块50,用于将确定的MIME类型与页面数据中携带的MIME类型进行比对。Optionally, in an embodiment of the present invention, if the page data carries the MIME type, as shown in FIG. 6 , the device for loading the page data may further include a comparison module 50 and a notification module 41 . Specifically, the comparison module 50 is configured to compare the determined MIME type with the MIME type carried in the page data.
如果确定的MIME类型与页面数据中携带的MIME类型不一致,对比模块50可以触发加载模块40和通知模块41。If the determined MIME type is inconsistent with the MIME type carried in the page data, the comparison module 50 may trigger the loading module 40 and the notification module 41 .
通知模块41,用于向页面数据提供商发送提示信息。由此,可方便提供商完善页面数 据中携带的MIME类型版本。The notification module 41 is configured to send prompt information to the page data provider. Thus, it is convenient for the provider to improve the MIME type version carried in the page data.
可选地,在本发明的一个实施例中,如图7所示,该页面数据的加载装置还可以包括判断模块60和传输模块70。具体地,判断模块60,用于判断根据数据格式是否能确定页面数据对应的MIME类型;如果能够确定页面数据对应的MIME类型,触发第二确定模块30;否则,触发传输模块70。传输模块70,用于将页面数据传输至指定地址。由此,可方便后续用户的查看。Optionally, in an embodiment of the present invention, as shown in FIG. 7 , the device for loading page data may further include a judgment module 60 and a transmission module 70 . Specifically, the judgment module 60 is used to judge whether the MIME type corresponding to the page data can be determined according to the data format; if the MIME type corresponding to the page data can be determined, trigger the second determination module 30; otherwise, trigger the transmission module 70. The transmission module 70 is configured to transmit the page data to a designated address. In this way, it is convenient for subsequent users to check.
可选地,在本发明的一个实施例中,如图8所示,该页面数据的加载装置还可以包括提示模块80。具体地,提示模块80可用于在传输模块70将页面数据传输至指定地址之后,弹出提示框向用户提示上述指定地址。由此,使得用户更加直观地了解到页面数据的下载位置。Optionally, in an embodiment of the present invention, as shown in FIG. 8 , the apparatus for loading page data may further include a prompt module 80 . Specifically, the prompting module 80 may be configured to pop up a prompt box to remind the user of the specified address after the transmission module 70 transmits the page data to the specified address. Thus, the user can more intuitively know the download location of the page data.
本发明实施例的页面数据的加载装置,可通过接收模块接收服务器发送的页面数据,第一确定模块确定页面数据中的数据帧的数据格式,第二确定模块根据该数据格式确定页面数据对应的MIME类型,加载模块根据该MIME类型加载页面数据,从而可以使得浏览器类应用程序能够正确地加载并渲染页面数据,提高了加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升了用户体验。The page data loading device of the embodiment of the present invention can receive the page data sent by the server through the receiving module, the first determining module determines the data format of the data frame in the page data, and the second determining module determines the corresponding frame of the page data according to the data format. MIME type, the loading module loads page data according to the MIME type, so that browser applications can correctly load and render page data, improve the loading effect, and for users, enable users to browse and view page data normally The corresponding webpage content improves the user experience.
此外,本发明还提出了一种终端,需要说明的是,在本发明的实施例中,终端可理解为PC(Personal Computer,个人计算机)机、手机、平板电脑等具有各种操作系统的硬件设备。其可以包括:外壳,处理器和电路板;电路板安置在外壳围成的空间内部,处理器设置在电路板上;处理器用于运行应用程序,具体用于执行以下步骤:In addition, the present invention also proposes a terminal. It should be noted that in the embodiments of the present invention, a terminal can be understood as a PC (Personal Computer, personal computer) machine, a mobile phone, a tablet computer, and other hardware with various operating systems. equipment. It may include: a housing, a processor and a circuit board; the circuit board is placed inside the space surrounded by the housing, and the processor is arranged on the circuit board; the processor is used to run an application program, specifically to perform the following steps:
S101’,接收服务器发送的页面数据。S101', receiving page data sent by the server.
S102’,确定页面数据中的数据帧的数据格式。S102', determine the data format of the data frame in the page data.
S103’,根据数据格式确定页面数据对应的多用途互联网邮件扩展MIME类型。S103', determine the MIME type corresponding to the page data according to the data format.
S104’,根据确定的MIME类型加载页面数据。S104', load page data according to the determined MIME type.
本发明实施例的终端,可确定接收到的页面数据中的数据帧的数据格式,并根据该数据格式确定页面数据对应的MIME类型,以及根据该MIME类型加载页面数据,从而可以使得浏览器类应用程序能够正确地加载并渲染页面数据,提高了加载效果,并且对于用户来讲,使得用户能够正常地浏览查看页面数据对应的网页内容,提升了用户体验。The terminal of the embodiment of the present invention can determine the data format of the data frame in the received page data, and determine the MIME type corresponding to the page data according to the data format, and load the page data according to the MIME type, so that the browser class can The application program can correctly load and render the page data, which improves the loading effect, and for the user, enables the user to normally browse and view the web page content corresponding to the page data, thereby improving the user experience.
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In the description of the present invention, it should be understood that the terms "first" and "second" are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410281815.1ACN104077370B (en) | 2014-06-20 | 2014-06-20 | The loading method and device of page data |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410281815.1ACN104077370B (en) | 2014-06-20 | 2014-06-20 | The loading method and device of page data |
| Publication Number | Publication Date |
|---|---|
| CN104077370A CN104077370A (en) | 2014-10-01 |
| CN104077370Btrue CN104077370B (en) | 2017-12-29 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410281815.1AExpired - Fee RelatedCN104077370B (en) | 2014-06-20 | 2014-06-20 | The loading method and device of page data |
| Country | Link |
|---|---|
| CN (1) | CN104077370B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10416940B2 (en)* | 2017-03-17 | 2019-09-17 | Ricoh Company, Ltd. | Image processing apparatus, image processing system, and image processing method for interpreting content obtained from a web browser and displaying a screen based on the interpreted content |
| CN114385273A (en)* | 2022-03-25 | 2022-04-22 | 深圳市维度数据科技股份有限公司 | Page display method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101127897A (en)* | 2006-08-18 | 2008-02-20 | 三星电子株式会社 | Device and method for detecting MIME type in digital video broadcasting terminal |
| CN102868765A (en)* | 2012-10-09 | 2013-01-09 | 乐视网信息技术(北京)股份有限公司 | Method and system for uploading files |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7660999B2 (en)* | 2004-06-22 | 2010-02-09 | Microsoft Corporation | MIME handling security enforcement |
| US8751493B2 (en)* | 2012-04-23 | 2014-06-10 | Google Inc. | Associating a file type with an application in a network storage service |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101127897A (en)* | 2006-08-18 | 2008-02-20 | 三星电子株式会社 | Device and method for detecting MIME type in digital video broadcasting terminal |
| CN102868765A (en)* | 2012-10-09 | 2013-01-09 | 乐视网信息技术(北京)股份有限公司 | Method and system for uploading files |
| Title |
|---|
| 第11章Response对象功能(asp课件);000yiyuan7;《道客巴巴 URL:http://www.doc88.com/p-313737707248.html》;20120121;第2页第2段-第3页第1段* |
| Publication number | Publication date |
|---|---|
| CN104077370A (en) | 2014-10-01 |
| Publication | Publication Date | Title |
|---|---|---|
| CN110096660B (en) | Method and device for loading page pictures and electronic equipment | |
| JP5989762B2 (en) | Presenting links to content as attachments in electronic messages | |
| JP6002211B2 (en) | Storing metadata in a file for browsing a shared version of the file | |
| US8346878B2 (en) | Flagging resource pointers depending on user environment | |
| CN103020160B (en) | Method, device, and browser for using Internet shopping information of browser user | |
| WO2015143905A1 (en) | Picture loading device and method | |
| CN103034517A (en) | Method and device for loading browser control tool | |
| CN110020305B (en) | Webpage loading method, webpage loading device, computer equipment and storage medium | |
| CN104935655A (en) | Data display method and device | |
| CN112187622B (en) | Instant message display method and device and server | |
| CN102982149A (en) | Browse method and browse device utilizing browser user online shopping information, and browser | |
| CN106547769A (en) | A DOI display method and device | |
| CN105589631A (en) | Information display method and device | |
| CN105988837A (en) | Installation method and device of application program | |
| CN104484386A (en) | Information sharing method and browser client | |
| CN104469528A (en) | A method, device and browser client for loading video data | |
| CN105491129A (en) | Page loading progress display method and device and mobile terminal | |
| CN107391182B (en) | A method, device, server and storage medium for generating a theme installation package | |
| US10445397B2 (en) | Method and apparatus for uploading information | |
| CN112130908A (en) | Method and device for setting user guidance | |
| JP2018500670A (en) | Handling unstructured messages | |
| CN111783010B (en) | Webpage blank page monitoring method, device, terminal and storage medium | |
| US9363217B2 (en) | Indicating in an electronic message whether a user has previously accessed content provided by a resource | |
| CN104077370B (en) | The loading method and device of page data | |
| CN109343908B (en) | A method and device for delay loading JS script |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20171229 |