TWI908183B - Method, apparatus, and non-transitory computer-readable recording medium storing instruction for rendering web page - Google Patents
Method, apparatus, and non-transitory computer-readable recording medium storing instruction for rendering web pageInfo
- Publication number
- TWI908183B TWI908183B TW113125769A TW113125769A TWI908183B TW I908183 B TWI908183 B TW I908183B TW 113125769 A TW113125769 A TW 113125769A TW 113125769 A TW113125769 A TW 113125769A TW I908183 B TWI908183 B TW I908183B
- Authority
- TW
- Taiwan
- Prior art keywords
- webpage
- template
- information
- aforementioned
- request
- Prior art date
Links
Abstract
本發明揭示了一種用以呈現網頁之技術。本發明之一態樣之方法係於裝置中實行者,該裝置包括一個以上之處理器、及儲存有用以藉由上述一個以上之處理器而執行之命令之一個以上的記憶體,上述一個以上之處理器包括如下步驟:響應於瀏覽器加載網頁之請求,將第1請求傳輸至外部裝置,該第1請求係請求上述網頁之資訊且包括與上述網頁對應之URL者;自上述外部裝置獲得與上述網頁對應之模板之識別符及應用於上述模板之資料集;及基於上述識別符及上述資料集,產生用於展露上述網頁之網頁資訊。This invention discloses a technique for presenting web pages. One aspect of the method of this invention is implemented in a device including one or more processors and one or more memories storing commands to be executed by the one or more processors. The one or more processors include the following steps: in response to a request from a browser to load a web page, transmitting a first request to an external device, the first request being a request for information about the web page and including a URL corresponding to the web page; obtaining from the external device an identifier of a template corresponding to the web page and a dataset applied to the template; and generating web page information for displaying the web page based on the identifier and the dataset.
Description
本發明係關於一種呈現網頁之方法。This invention relates to a method for presenting web pages.
隨著通訊技術之發展與社會環境變化,電子商務服務通過電子商務平台(例如,線上平台)向眾多用戶提供了各種商品與服務。電子商務平台提供了具有可供用戶便利地利用服務之各種介面之網頁,此種網頁可基於網頁資訊而呈現於用戶終端中。With the development of communication technology and changes in the social environment, e-commerce services provide a variety of goods and services to numerous users through e-commerce platforms (such as online platforms). E-commerce platforms provide web pages with various interfaces that allow users to conveniently utilize services; these web pages can be presented on user terminals based on web page information.
可修正網頁資訊以修正現有之網頁之設計,或提供追加之功能。於存在對網頁資訊進行之修正之情形時,遠程伺服器可根據修正之內容來發佈網頁。It can modify webpage information to change the design of existing webpages or provide additional functionality. When modifications are made to webpage information, the remote server can publish the webpage based on the modified content.
[發明所欲解決之問題] 本發明之至少一個實施例可將應用網頁資訊之修正事項所花費之時間最小化來提高網頁之開發速度。[Problem to be solved by the invention] At least one embodiment of the invention can improve the speed of web page development by minimizing the time spent on correcting web page information.
本發明之至少一個實施例於應用網頁資訊修正事項時,區域伺服器可僅與遠程伺服器收發最少之資料,並於區域伺服器中利用模板引擎來對模板進行編譯。In at least one embodiment of the present invention, when applying web page information corrections, the local server may send and receive only minimal data with the remote server, and the template may be compiled using a template engine on the local server.
本發明之技術課題並不限制於以上提及之技術課題,於本發明之技術領域中之普通技術人員可根據以下之記載而明確地理解未提及之其他技術課題。 [解決問題之技術手段]The technical problems of this invention are not limited to those mentioned above. Those skilled in the art can clearly understand other technical problems not mentioned based on the following description. [Technical Means for Solving the Problem]
本發明之一態樣之方法係於裝置中實行者,該裝置包括一個以上之處理器、及儲存有用以藉由上述一個以上之處理器而執行之命令之一個以上的記憶體,上述一個以上之處理器可包括如下步驟:響應於瀏覽器(browser)加載(loading)網頁之請求,將第1請求傳輸至外部裝置,該第1請求係請求上述網頁之資訊且包括與上述網頁對應之URL(Uniform Resource Locator,全球資源定址器)者;自上述外部裝置獲得與上述網頁對應之模板之識別符及應用於上述模板之資料集;及基於上述識別符及上述資料集,產生用於展露上述網頁之網頁資訊。One aspect of the present invention is implemented in an apparatus comprising one or more processors and one or more memories storing commands to be executed by the one or more processors. The one or more processors may include the following steps: in response to a browser loading a webpage, transmitting a first request to an external device, the first request being a request for information about the webpage and including a URL (Uniform Resource Locator) corresponding to the webpage; obtaining from the external device an identifier of a template corresponding to the webpage and a dataset applied to the template; and generating webpage information for displaying the webpage based on the identifier and the dataset.
於一實施例中,上述方法可進而包括如下步驟:上述一個以上之處理器將上述網頁資訊傳輸至上述瀏覽器;且上述瀏覽器基於上述網頁資訊而展露上述網頁。In one embodiment, the above method may further include the following steps: the one or more processors transmit the web page information to the browser; and the browser displays the web page based on the web page information.
於一實施例中,上述方法可進而包括如下步驟:將變更與上述網頁對應之第1模板之至少一部分所得之第2模板的資訊傳輸至上述外部裝置;且上述識別符識別上述第2模板,產生上述網頁資訊之步驟包括如下步驟:基於上述識別符而獲得上述第2模板;及基於上述第2模板及上述資料集,產生上述網頁資訊。In one embodiment, the above method may further include the following steps: transmitting information of a second template obtained by modifying at least a portion of the first template corresponding to the above webpage to the above external device; and the step of generating the webpage information by the identifier identifying the second template includes the following steps: obtaining the second template based on the identifier; and generating the webpage information based on the second template and the above dataset.
於一實施例中,上述識別符可識別與上述網頁對應之第1模板,產生上述網頁資訊之步驟可包括如下步驟:基於上述識別符而獲得上述第1模板;產生變更上述第1模板之至少一部分所得之第2模板;及基於上述第2模板及上述資料集,產生上述網頁資訊。In one embodiment, the aforementioned identifier can identify a first template corresponding to the aforementioned webpage, and the steps for generating the aforementioned webpage information may include the following steps: obtaining the aforementioned first template based on the aforementioned identifier; generating a second template by modifying at least a portion of the aforementioned first template; and generating the aforementioned webpage information based on the aforementioned second template and the aforementioned dataset.
於一實施例中,上述方法可進而包括如下步驟:上述一個以上之處理器將上述第2模板之資訊傳輸至上述外部裝置。In one embodiment, the above method may further include the following steps: the one or more processors transmit the information of the second template to the external device.
於一實施例中,上述第1請求可包括如下之資訊:指示用戶是否登入上述網頁或上述用戶是否加入會員資格中之至少一者。In one embodiment, the first request above may include information indicating whether a user has logged into the above webpage or whether the user has joined at least one of the membership qualifications.
於一實施例中,上述URL可根據用戶是否登入上述網頁或上述用戶是否加入會員資格中之至少一者而具有不同之字串。In one embodiment, the URL may have different strings depending on whether the user is logged into the webpage or whether the user has joined a membership.
於一實施例中,產生上述網頁資訊之步驟可包括如下步驟:利用Handlebar、Vue或React中之至少一個模板引擎來產生上述網頁資訊。In one embodiment, the steps to generate the above web page information may include the following steps: using at least one template engine among Handlebar, Vue, or React to generate the above web page information.
本發明之另一態樣之裝置可包括一個以上之處理器;及一個以上之記憶體,其儲存有用以藉由上述一個以上之處理器而執行之命令;於執行上述命令時,上述一個以上之處理器如下:響應於瀏覽器加載網頁之請求,將第1請求傳輸至外部裝置,該第1請求係請求上述網頁之資訊且包括與上述網頁對應之URL者;自上述外部裝置獲得與上述網頁對應之模板之識別符及應用於上述模板之資料集;及基於上述識別符及上述資料集,產生用於展露上述網頁之網頁資訊。Another embodiment of the device of the present invention may include one or more processors; and one or more memory stores commands to be executed by the one or more processors; when executing the commands, the one or more processors perform the following: in response to a request to load a webpage in a browser, transmit a first request to an external device, the first request being a request for information of the webpage and including a URL corresponding to the webpage; obtain from the external device an identifier of a template corresponding to the webpage and a data set applied to the template; and generate webpage information for displaying the webpage based on the identifier and the data set.
於一實施例中,上述一個以上之處理器可如下:將上述網頁資訊傳輸至上述瀏覽器;及上述瀏覽器基於上述網頁資訊而展露上述網頁。In one embodiment, the one or more processors may: transmit the web page information to the browser; and the browser displays the web page based on the web page information.
於一實施例中,上述一個以上之處理器可如下:將變更與上述網頁對應之第1模板之至少一部分所得之第2模板的資訊傳輸至上述外部裝置;基於識別上述第2模板之上述識別符而獲得上述第2模板;及基於上述第2模板及上述資料集,產生上述網頁資訊。In one embodiment, the above-mentioned one or more processors may: transmit information of a second template obtained by modifying at least a portion of the first template corresponding to the above-mentioned webpage to the above-mentioned external device; obtain the above-mentioned second template based on the identification of the above-mentioned second template; and generate the above-mentioned webpage information based on the above-mentioned second template and the above-mentioned data set.
於一實施例中,上述識別符可識別與上述網頁對應之第1模板,上述一個以上之處理器可如下:基於上述識別符而獲得上述第1模板;產生變更上述第1模板之至少一部分所得之第2模板;及基於上述第2模板及上述資料集,產生上述網頁資訊。In one embodiment, the identifier can identify a first template corresponding to the webpage, and the one or more processors can: obtain the first template based on the identifier; generate a second template by modifying at least a portion of the first template; and generate the webpage information based on the second template and the dataset.
於一實施例中,上述一個以上之處理器可將上述第2模板之資訊傳輸至上述外部裝置。In one embodiment, one or more processors may transmit the information of the second template to the external device.
於一實施例中,上述第1請求可包括如下之資訊:指示用戶是否登入上述網頁或上述用戶是否加入會員資格中之至少一者。In one embodiment, the first request above may include information indicating whether a user has logged into the above webpage or whether the user has joined at least one of the membership qualifications.
於一實施例中,上述URL可根據用戶是否登入上述網頁或上述用戶是否加入會員資格中之至少一者而具有不同之字串。In one embodiment, the URL may have different strings depending on whether the user is logged into the webpage or whether the user has joined a membership.
於一實施例中,上述一個以上之處理器可利用Handlebar、Vue或React中之至少一個模板引擎來產生上述網頁資訊。In one embodiment, the aforementioned one or more processors may utilize at least one template engine from Handlebar, Vue, or React to generate the aforementioned web page information.
本發明之另一態樣之非暫時性電腦可讀記錄媒體記錄有用以藉由一個以上之處理器而執行之命令,上述命令能夠以如下方式構成,即,於執行上述命令時,上述一個以上之處理器執行如下步驟:響應於瀏覽器加載網頁之請求,將第1請求傳輸至外部裝置,該第1請求係請求上述網頁之資訊且包括與上述網頁對應之URL者;自上述外部裝置獲得與上述網頁對應之模板之識別符及應用於上述模板之資料集;及基於上述識別符及上述資料集,產生用於展露上述網頁之網頁資訊。 [發明之效果]Another aspect of the invention is a non-transitory computer-readable recording medium that records commands executable by one or more processors. These commands are configured such that, upon execution of the commands, the one or more processors perform the following steps: responding to a browser request to load a webpage, transmitting a first request to an external device, the first request being a request for information about the webpage and including a URL corresponding to the webpage; obtaining from the external device an identifier for a template corresponding to the webpage and a dataset applied to the template; and generating webpage information for displaying the webpage based on the identifier and the dataset. [Effects of the Invention]
根據本發明之至少一個實施例,可將應用網頁資訊之修正事項所花費之時間最小化來提高網頁之開發速度。According to at least one embodiment of the present invention, the time spent on correcting application web page information can be minimized to improve web page development speed.
根據本發明之至少一個實施例,於應用網頁資訊修正事項時,區域伺服器可僅與遠程伺服器收發最少之資料,於區域伺服器中利用模板引擎來對模板進行編譯。According to at least one embodiment of the present invention, when applying web page information corrections, the local server may send and receive only minimal data with the remote server, and the template may be compiled on the local server using a template engine.
本發明之技術思想之效果並不限制於以上提及之效果,普通技術人員可根據說明書之記載而明確地理解未提及之其他效果。The effects of the technical concept of this invention are not limited to those mentioned above. Those skilled in the art can clearly understand other effects not mentioned based on the description in the manual.
本文中記載之各種實施例係以明確地說明本發明之技術思想為目的而例示者,並不意欲將其限定為特定之實施方式。本發明之技術思想包括本文中記載之各實施例之各種變更(modifications)、均等物(equivalents)、替代物(alternatives)及各實施例之全部或選擇性地組合一部分所得之實施例。又,本發明之技術思想之權利範圍並不限定於以下提出之各種實施例或其具體說明。The various embodiments described herein are illustrated for the purpose of clearly illustrating the technical concept of the present invention and are not intended to limit them to specific embodiments. The technical concept of the present invention includes various modifications, equivalents, alternatives, and embodiments obtained by combining all or a portion of the embodiments described herein. Furthermore, the scope of the technical concept of the present invention is not limited to the various embodiments or their specific descriptions presented below.
關於本文中使用之用語,包括技術性或科學性用語在內,除非另有定義,否則可具有本發明所屬之技術領域中具有常識者普遍理解之含義。The terms used herein, including technical or scientific terms, shall, unless otherwise defined, have the meanings commonly understood by a person of common knowledge in the technical field to which this invention pertains.
關於本文中使用之如「包括」、「可包括」、「具備」、「可具備」、「具有」、「可具有」等之表述,意味著存在對象特徵(例如,功能、動作或構成要素等),並不排除其他追加性特徵之存在。即,如上所述之表述應理解為具有包含其他實施例之可能性之開放型用語(open-ended terms)。The expressions used herein, such as "including," "may include," "possibly possess," "has," "may have," and "may have," imply the presence of object features (e.g., functions, actions, or constituent elements) and do not exclude the existence of other additional features. That is, the expressions described above should be understood as open-ended terms that have the possibility of including other embodiments.
關於本文中使用之單數型之表述,除非另有提及,否則可包括複數型之含義,這同樣適用於發明申請專利範圍中記載之單數型之表述。Unless otherwise stated, the singular form used herein may include the meaning of the plural form, and this also applies to the singular form recorded in the scope of the invention application.
關於本文中使用之「第1」、「第2」或「第一」、「第二」等表述,除非另有提及,否則係用以於指代複數個同類對象時將一個對象與其他對象區分開來,並非用以限定該等對象間之順序或重要度。The terms “first,” “second,” “first,” “second,” etc., used in this document are, unless otherwise specified, used to distinguish one object from others when referring to multiple objects of the same kind, and are not used to define the order or importance of such objects.
本文中使用之「A、B及C」、「A、B或C」、「A、B及/或C」、或「A、B及C中之至少一者」、「A、B或C中之至少一者」、「A、B及/或C中之至少一者」等表述可指列出之各項目或列出之項目之可實現的所有組合。例如,「A或B中之至少一者」可指(1)至少一個A、(2)至少一個B、(3)至少一個A及至少一個B。The expressions “A, B and C”, “A, B or C”, “A, B and/or C”, “at least one of A, B and C”, “at least one of A, B or C”, “at least one of A, B and/or C”, etc., used in this document may refer to each of the listed items or all possible combinations of the listed items. For example, “at least one of A or B” may refer to (1) at least one A, (2) at least one B, (3) at least one A and at least one B.
本文中使用之所謂「基於~」之表述用於記述包含該表述之語句或文章中記述之對確定、判斷之行為或動作產生影響的一個以上之因素,該表述並不排除對確定、判斷之行為或動作產生影響之另外之因素。The term "based on" as used in this article is used to describe one or more factors described in the sentence or article that affect the determination or judgment of an action or behavior. This term does not exclude other factors that affect the determination or judgment of an action or behavior.
本文中使用之某個構成要素(例如,第1構成要素)「連接」或「連結」於另一構成要素(例如,第2構成要素)之表述可指上述某個構成要素直接連接或連結於上述另一構成要素,或以新的其他構成要素(例如,第3構成要素)為介質而連接或連結於上述另一構成要素。The expression used herein to describe a constituent element (e.g., the first constituent element) as "connected" or "linked" to another constituent element (e.g., the second constituent element) may mean that the first constituent element is directly connected to or linked to the other constituent element, or is connected to or linked to the other constituent element through a new other constituent element (e.g., the third constituent element).
根據上下文,本文中使用之「以~方式構成(configured to)」之表述可具有「以~方式設定」、「具有~之能力」、「以~方式變更」、「以~方式製成」、「可進行~」等含義。該表述並不限制於「硬體上特別設計」之含義,例如,所謂以實行特定動作之方式構成之處理器可指藉由執行軟體而可實行該特定動作之通用處理器(generic purpose processor)。Depending on the context, the phrase "configured to" as used in this document can mean "configured in a specific way," "possessing specific capabilities," "modified in a specific way," "made in a specific way," or "capable of performing specific actions." This phrase is not limited to the meaning of "specially designed in hardware." For example, a processor configured to perform a specific action can refer to a generic processor that can perform that specific action by executing software.
以下,參照附圖,對本發明之各種實施例進行說明。於附圖及附圖說明中,對相同或實質上等同(substantially equivalent)之構成要素賦予相同之參照符號。又,於以下之各種實施例之說明中,可省略對相同或對應之構成要素之重複記述,但這並不意味該構成要素不包括於該實施例中。The various embodiments of the present invention will now be described with reference to the accompanying drawings. In the drawings and their descriptions, identical or substantially equivalent constituent elements are assigned the same reference numerals. Furthermore, in the following descriptions of the various embodiments, repeated descriptions of identical or corresponding constituent elements may be omitted, but this does not mean that the constituent element is not included in that embodiment.
圖1係表示可應用本發明之一實施例之裝置之環境。裝置110與瀏覽器120、外部裝置130可藉由網路連接而彼此通訊。裝置110及外部裝置130亦可為伺服器。裝置110可為如執行瀏覽器120之終端之終端,或亦可為其他終端。根據一實施例,裝置110可為利用命令行介面(Command Line Interface,CLI)而與用戶(例如,電子商務服務之開發人員)進行交互作用之裝置。Figure 1 illustrates the environment of an apparatus to which one embodiment of the present invention can be applied. The apparatus 110, browser 120, and external device 130 can communicate with each other via a network connection. The apparatus 110 and external device 130 can also be servers. The apparatus 110 can be a terminal such as the terminal executing browser 120, or it can be other terminals. According to one embodiment, the apparatus 110 can be a device that interacts with users (e.g., e-commerce service developers) using a command-line interface (CLI).
裝置110可為具有網頁之管理權限之區域伺服器。網頁可為藉由網路而提供之電子商務服務之網頁、及藉由應用程式而提供之應用程式頁面。本發明中將二者統稱為網頁以便於說明。網頁可基於將模板(template)及應用於模板之資料集結合所得之網頁資訊(例如,HTML文本)而呈現(rendering)。網頁之模板係呈現網頁時反覆使用之設計模式,模板可包括用以動態地產生內容之一個以上之變量。根據一實施例,各模板具有對應之識別符(例如,ViewName(視圖名稱)),裝置110、瀏覽器120及外部裝置130可確定與所獲得之識別符對應之模板。資料集(例如,ViewModel(視圖模型))可指模板中包括之一個以上之變量之輸入值之集合。資料集例如可為JSON(JavaScript Object Notation,JavaScript物件表示法)格式之資料。網頁之管理權限例如可包括可查詢網頁資訊之訪問權限及可變更網頁資訊之一部分之權限。Device 110 may be a regional server with webpage management privileges. A webpage may be a webpage providing e-commerce services via the internet, or an application page provided by an application. In this invention, both are collectively referred to as a webpage for ease of explanation. A webpage may be rendered based on webpage information (e.g., HTML text) obtained by combining a template and a dataset applied to the template. A webpage template is a design pattern repeatedly used when rendering the webpage, and the template may include one or more variables for dynamically generating content. According to one embodiment, each template has a corresponding identifier (e.g., ViewName), and device 110, browser 120, and external device 130 can determine the template corresponding to the obtained identifier. A data set (e.g., a ViewModel) can refer to a collection of input values for one or more variables in a template. A data set can be, for example, data in JSON (JavaScript Object Notation) format. Webpage administrative permissions can include, for example, access permissions to query webpage information and permissions to modify parts of the webpage information.
裝置110可包括區域網頁伺服器(local web server)及資料庫伺服器(database server)中之至少一者。例如,裝置110可於區域網頁伺服器中修正網頁資訊之至少一部分,並且可對經修正之網頁資訊實行測試與除錯。根據一實施例,裝置110之網頁管理權限可與網頁資訊之發佈無關。例如,於裝置110中修正之網頁資訊僅可應用於區域伺服器中。以下,修正網頁資訊可意味著修正構成網頁資訊(或,模板或資料集之至少一部分)之程式碼之至少一部分。Device 110 may include at least one of a local web server and a database server. For example, device 110 may modify at least a portion of web page information on the local web server and may test and debug the modified web page information. According to one embodiment, the web page management permissions of device 110 may be independent of the publication of web page information. For example, web page information modified in device 110 may only be applied to the local server. Hereinafter, modifying web page information may mean modifying at least a portion of the code that constitutes at least a portion of the web page information (or, template, or database).
執行瀏覽器120之終端可為用戶(例如,電子商務服務之顧客)利用電子商務服務之裝置。執行瀏覽器120之終端可實現為能夠藉由網路而與裝置110或外部裝置130收發各種資訊之終端。例如,執行瀏覽器120之終端可為電腦、膝上型電腦(laptop)、攜帶用通訊終端(智慧型手機等)、攜帶用多媒體裝置、可穿戴裝置或HMD(Head Mounted Display,頭戴式顯示器)中之一者。然而,執行瀏覽器120之終端之種類並不限定於此,執行瀏覽器120之終端可為如下之任意之裝置:包括可由用戶輸入資訊、或向用戶輸出資訊之輸入輸出介面,可藉由網路而與裝置110或外部裝置130實行通訊。The terminal running browser 120 can be a device used by a user (e.g., a customer of e-commerce services) to access e-commerce services. The terminal running browser 120 can be implemented as a terminal capable of sending and receiving various information with device 110 or external device 130 via a network. For example, the terminal running browser 120 can be one of a computer, laptop, portable communication terminal (smartphone, etc.), portable multimedia device, wearable device, or HMD (Head Mounted Display). However, the type of terminal executing browser 120 is not limited to this. The terminal executing browser 120 can be any of the following devices: including an input/output interface that allows the user to input information or output information to the user, and that can communicate with device 110 or external device 130 via a network.
瀏覽器120可向用戶提供自裝置110或外部裝置130接收之資訊,並且可自用戶接收輸入並將其傳輸至裝置110或外部裝置130。具體而言,瀏覽器120可自用戶獲得指示呼叫各種頁面之輸入,並對應於獲得之輸入而產生指示呼叫各種頁面之命令。瀏覽器120可向裝置110或外部裝置130傳輸指示呼叫各種頁面之命令。例如,可將指示呼叫電子商務服務所附帶之如下各種頁面之命令傳輸至裝置110或外部裝置130,即,物品目錄頁面、商品詳細說明頁面、檢索結果頁面、商品銷售頁面、事件頁面、與用戶之訪問請求對應之登錄頁面。自用戶獲得之輸入可包括利用滑鼠進行之點擊、利用觸控板或觸控屏進行之觸控、語音識別、其他電子輸入等各種形態之輸入。瀏覽器120可自裝置110或外部裝置130接收各種頁面,並輸出接收到之各種頁面。Browser 120 can provide users with information received from device 110 or external device 130, and can receive input from users and transmit it to device 110 or external device 130. Specifically, browser 120 can obtain input from users instructing them to call various pages, and generate commands instructing them to call various pages in response to the obtained input. Browser 120 can transmit commands instructing them to call various pages to device 110 or external device 130. For example, commands instructing users to call various pages associated with e-commerce services can be transmitted to device 110 or external device 130, namely, item catalog pages, product detail pages, search results pages, product sales pages, event pages, and login pages corresponding to user access requests. Input obtained by the user may include various forms of input such as mouse clicks, touch controls using a touchpad or touchscreen, voice recognition, and other electronic inputs. The browser 120 may receive various pages from the device 110 or an external device 130 and output the received pages.
例如,瀏覽器120可向裝置110或外部裝置130傳輸加載網頁之請求,並響應於此而接收與該網頁對應之網頁資訊。瀏覽器120可基於接收到之網頁資訊來呈現網頁。例如,網頁資訊可為HTML文本,瀏覽器120可基於接收到之HTML文本來呈現網頁。For example, browser 120 may transmit a request to device 110 or external device 130 to load a webpage, and in response, receive webpage information corresponding to that webpage. Browser 120 may render the webpage based on the received webpage information. For example, the webpage information may be HTML text, and browser 120 may render the webpage based on the received HTML text.
外部裝置130可為提供電子商務服務之伺服器裝置。根據一實施例,外部裝置130可包括網頁伺服器、資料庫伺服器及應用程式伺服器中之至少一者。外部裝置130可管理用以產生如下網頁之模板之識別符(或,模板)及輸入資料,該網頁係提供電子商務服務之線上平台中所提供者。根據一實施例,外部裝置130可將網頁與對應於該網頁之模板之識別符及輸入資料進行映射並儲存。例如,外部裝置130可將第1頁面之URL(Uniform Resource Locator,全球資源定址器)、構成第1頁面之第1模板及第1資料集進行映射並儲存。External device 130 may be a server device providing e-commerce services. According to one embodiment, external device 130 may include at least one of a web server, a database server, and an application server. External device 130 may manage identifiers (or templates) and input data for generating web pages provided on an online platform offering e-commerce services. According to one embodiment, external device 130 may map and store web pages with identifiers and input data corresponding to the templates of those web pages. For example, external device 130 may map and store the URL (Uniform Resource Locator) of a first page, a first template constituting the first page, and a first dataset.
外部裝置130可響應於自用戶端(例如,裝置110或瀏覽器120)接收到請求來查詢所需之資料,產生動態或靜態內容並將其回傳給用戶端。例如,外部裝置130可響應於自裝置110接收到網頁加載請求,將產生網頁所需之模板之識別符及資料集回傳至裝置110。即,外部裝置130可為於電子商務服務之操作主體之管理下操作之伺服器裝置。例如,外部裝置130可響應於自裝置110接收到加載第1頁面之請求,將映射於第1頁面之第1模板之識別符及第1資料集傳輸至裝置110。External device 130 may respond to a request received from a client (e.g., device 110 or browser 120) to query required data, generate dynamic or static content, and send it back to the client. For example, external device 130 may respond to a webpage loading request received by device 110 by sending back the identifier and data set of the template required to generate the webpage to device 110. That is, external device 130 may be a server device operating under the management of an e-commerce service operating entity. For example, external device 130 may respond to a request received by device 110 to load a first page by sending the identifier and first data set of the first template mapped to the first page to device 110.
上述外部裝置130可由一個以上之計算裝置實現。例如,外部裝置130之所有功能可於單個計算裝置中實現。作為另一示例,外部裝置130之第1功能可於第1計算裝置中實現,第2功能可於第2計算裝置中實現。作為又一示例,可使用分別實現外部裝置130之所有功能或特定功能之複數個計算裝置。上述計算裝置可為桌上型電腦(desktop computer)、膝上型電腦(laptop computer)、應用程式伺服器(application server)、代理伺服器(proxy server)或雲端伺服器(cloud server)等,但並不侷限於此,具備計算功能之所有種類之裝置均可為計算裝置。The aforementioned external device 130 can be implemented by more than one computing device. For example, all functions of the external device 130 can be implemented in a single computing device. As another example, a first function of the external device 130 can be implemented in a first computing device, and a second function can be implemented in a second computing device. As yet another example, a plurality of computing devices can be used to implement all or specific functions of the external device 130. The aforementioned computing device can be a desktop computer, a laptop computer, an application server, a proxy server, or a cloud server, but is not limited to these; all types of devices with computing capabilities can be computing devices.
網路可起到將裝置110、瀏覽器120、或外部裝置130連接之作用。例如,網路可提供連接路徑,以使瀏覽器120或外部裝置130可與裝置110連接而與裝置110收發封包資料。網路例如可實現為如區域網(Local Area Network,LAN)、廣域網(Wide Area Network,WAN)、行動通訊網(Mobile Radio Communication Network)、Wibro(Wireless Broadband Internet,無線寬頻網)等之所有種類之有線或無線網路。The network serves to connect device 110, browser 120, or external device 130. For example, the network provides connection paths so that browser 120 or external device 130 can connect to device 110 and send and receive packet data with device 110. The network can be implemented as any type of wired or wireless network, such as a Local Area Network (LAN), a Wide Area Network (WAN), a Mobile Radio Communication Network, or Wibro (Wireless Broadband Internet).
於一實施例中,裝置110與執行瀏覽器120之終端可作為一個裝置來進行動作。執行瀏覽器120之終端可作為裝置110之全部或一部分構成要素而包括於裝置110中。於該情形時,例如,藉由網路而在裝置110與瀏覽器120間收發之各種資訊可為一個裝置內之各構成要素間收發之各種資訊。In one embodiment, device 110 and the terminal executing browser 120 can operate as a single device. The terminal executing browser 120 can be included in device 110 as all or part of its constituent elements. In such a case, for example, the various information exchanged between device 110 and browser 120 via a network can be various information exchanged between the constituent elements within a single device.
本發明之各種實施例之裝置(例如,裝置110)為各種形態之裝置。例如,裝置110可為攜帶用通訊裝置、電腦裝置、攜帶用多媒體裝置、可穿戴裝置、家電裝置或上述裝置中之一者或將一者以上組合而成之裝置。本發明之裝置110並不限定於上述裝置。The devices in various embodiments of the present invention (e.g., device 110) are devices of various forms. For example, device 110 may be a portable communication device, a computer device, a portable multimedia device, a wearable device, a home appliance device, or one or more of the above devices. The device 110 of the present invention is not limited to the above-described devices.
圖2係本發明之一實施例之電子裝置之方塊圖。裝置110可對電子商務服務之資訊進行處理。於一實施例中,裝置110可包括一個以上之處理器210、一個以上之記憶體220及通訊介面230作為構成要素。於一實施例中,可省略裝置110之構成要素中之至少一者、或將其他構成要素追加至裝置110。於一實施例中,可附加地或替代地(alternatively)整合一部分構成要素而實現、或實現為單個或複數個個體。於本發明中,可將一個以上之處理器210表述為處理器210。若未於上下文中明確地進行不同之表述,則所謂處理器210之表述可指一個或一個以上之處理器之集合。於本發明中,可將一個以上之記憶體220表述為記憶體220。若未於上下文中明確地進行不同之表述,則所謂記憶體220之表述可指一個或一個以上之記憶體之集合。於一實施例中,裝置110之內部/外部之構成要素中之至少一部分構成要素可藉由匯流排、GPIO(General Purpose Input/Output,通用目的輸入輸出)、SPI(Serial Peripheral Interface,串列周邊介面)或MIPI(Mobile Industry Processor Interface,行動產業處理器介面)等而彼此連接,從而收發資訊(資料、信號等)。Figure 2 is a block diagram of an electronic device according to one embodiment of the present invention. Device 110 can process information related to e-commerce services. In one embodiment, device 110 may include one or more processors 210, one or more memory units 220, and a communication interface 230 as constituent elements. In one embodiment, at least one of the constituent elements of device 110 may be omitted, or other constituent elements may be added to device 110. In one embodiment, some constituent elements may be additionally or alternatively integrated to implement the device, or the device may be implemented as a single or multiple entities. In the present invention, one or more processors 210 may be referred to as processor 210. Unless explicitly stated otherwise in the context, the term "processor 210" may refer to a collection of one or more processors. In this invention, one or more memory units 220 may be referred to as memory 220. Unless explicitly stated otherwise in the context, the term "memory unit 220" may refer to a collection of one or more memory units. In one embodiment, at least some of the internal/external components of device 110 may be interconnected via buses, GPIO (General Purpose Input/Output), SPI (Serial Peripheral Interface), or MIPI (Mobile Industry Processor Interface) to transmit and receive information (data, signals, etc.).
處理器210可驅動軟體(例如,命令、程式等)而對連接於處理器210上之裝置110之至少一個構成要素進行控制。又,處理器210可實行與本發明相關之各種運算、處理、資料之產生或加工等動作。又,處理器210可自記憶體220加載資料等、或將該等資料儲存至記憶體220。進而,處理器210可藉由通訊介面230而與用戶之終端及外部裝置130收發各種資訊。於一實施例中,處理器210可藉由控制通訊介面230而向用戶之終端發送各種頁面之資訊等各種資訊。The processor 210 can drive software (e.g., commands, programs, etc.) to control at least one component of the device 110 connected to the processor 210. Furthermore, the processor 210 can perform various operations, processing, data generation, or manipulation related to the present invention. The processor 210 can also load data from memory 220 or store such data in memory 220. Moreover, the processor 210 can send and receive various messages with the user's terminal and external device 130 via the communication interface 230. In one embodiment, the processor 210 can send various information, such as page information, to the user's terminal by controlling the communication interface 230.
記憶體220可儲存各種資訊(資料)。儲存於記憶體220中之資訊作為藉由裝置110之至少一個構成要素而獲得、處理、或使用之資訊,可包括軟體(例如,命令、程式等)。記憶體304可包括揮發性及/或非揮發性記憶體。於本發明中,命令或程式作為儲存於記憶體220之軟體,可包括用以控制裝置110之資源之操作系統、應用程式及/或中間軟體等,該中間軟體係為了使應用程式能夠運用裝置110之資源而將各種功能提供至應用程式者。於一實施例中,記憶體220可儲存如下之命令:於藉由處理器210而執行時,使處理器210實行運算。記憶體220可儲存藉由通訊介面230而自終端接收到之資訊及/或藉由通訊介面230而向終端發送之資訊之至少一部分。處理器210可將藉由通訊介面230而自終端接收到之資訊及/或藉由通訊介面230而向終端發送之資訊之至少一部分儲存至記憶體220。Memory 220 can store various information (data). The information stored in memory 220, as information obtained, processed, or used by at least one component of device 110, may include software (e.g., commands, programs, etc.). Memory 304 may include volatile and/or non-volatile memory. In this invention, commands or programs, as software stored in memory 220, may include operating systems, applications, and/or middleware for controlling the resources of device 110, wherein the middleware provides various functions to the application to enable the application to utilize the resources of device 110. In one embodiment, memory 220 may store commands that, when executed by processor 210, cause processor 210 to perform calculations. Memory 220 may store at least a portion of information received from the terminal via communication interface 230 and/or information sent to the terminal via communication interface 230. Processor 210 may store at least a portion of information received from the terminal via communication interface 230 and/or information sent to the terminal via communication interface 230 into memory 220.
通訊介面(communication interface)230可與用戶之終端及外部裝置通訊。通訊介面230可實行裝置110與終端間之無線或有線通訊。例如,通訊介面230可藉由如下方式實行無線通訊:eMBB(enhanced Mobile Broadband,增強行動寬頻)、URLLC(Ultra Reliable Low-Latency Communications,超可靠低延遲通訊)、MMTC(Massive Machine Type Communications,大規模機器型通訊)、LTE(Long-Term Evolution,長期演進)、LTE-A(LTE Advance,進階長期演進)、NR(New Radio,新無線)、UMTS(Universal Mobile Telecommunications System,通用行動通訊系統)、GSM(Global System for Mobile communications,全球行動通訊系統)、CDMA(Code Division Multiple Access,碼分多重存取)、WCDMA(Wideband CDMA,寬頻碼分多重存取)、WiBro(Wireless Broadband)、WiFi(Wireless Fidelity,無線保真)、藍牙(Bluetooth)、NFC(Near Field Communication,近場通訊)、GPS(Global Positioning System,全球定位系統)或GNSS(Global Navigation Satellite System,全球導航衛星系統)等。例如,通訊介面230可藉由如下方式實行有線通訊:USB(Universal Serial Bus,通用串列匯流排)、HDMI(High Definition Multimedia Interface,高清晰度多媒體介面)、RS-232(Recommended Standard-232,推薦標準-232)或POTS(Plain Old Telephone Service,簡易老式電話業務)等。於一實施例中,裝置110亦可與其他裝置整合而實現。於該情形時,通訊介面230可作為連接裝置110與相應之其他裝置之連接電路或介面而發揮作用。The communication interface 230 can communicate with the user's terminal and external devices. The communication interface 230 can enable wireless or wired communication between device 110 and the terminal. For example, the communication interface 230 can implement wireless communication in the following ways: eMBB (enhanced Mobile Broadband), URLLC (Ultra Reliable Low-Latency Communications), MMTC (Massive Machine Type Communications), LTE (Long-Term Evolution), LTE-A (LTE Advance), NR (New Radio), UMTS (Universal Mobile Telecommunications System), GSM (Global System for Mobile communications), CDMA (Code Division Multiple Access), WCDMA (Wideband CDMA), WiBro (Wireless Broadband), WiFi (Wireless Fidelity), Bluetooth, NFC (Near Field Communication), GPS (Global System for Mobile Communications). Positioning System (GPS) or GNSS (Global Navigation Satellite System), etc. For example, the communication interface 230 can implement wired communication via USB (Universal Serial Bus), HDMI (High Definition Multimedia Interface), RS-232 (Recommended Standard-232), or POTS (Plain Old Telephone Service), etc. In one embodiment, device 110 can also be integrated with other devices. In this case, the communication interface 230 can function as a connection circuit or interface connecting device 110 with corresponding other devices.
以下,圖3至圖7中說明為藉由裝置而實行之動作可理解為藉由圖2中說明之裝置110之處理器210而實行者。The actions described below in Figures 3 to 7 as being performed by a device can be understood as being performed by the processor 210 of the device 110 described in Figure 2.
圖3係表示本發明之一實施例之修正網頁之模板之方法的動作流程圖。於動作S310中,裝置110可基於用戶輸入而修正網頁資訊之至少一部分。例如,裝置110可基於用戶輸入而產生修正與第1頁面對應之第1模板之至少一部分所得之第2模板。例如,與第2模板對應之第2頁面可為變更第1頁面內之至少一部分構成要素之位置、大小、顏色、形態,或刪除先前之構成要素或追加新構成要素而得之頁面。Figure 3 is a flowchart illustrating the operation of a method for modifying a webpage template according to one embodiment of the present invention. In action S310, device 110 may modify at least a portion of the webpage information based on user input. For example, device 110 may generate a second template based on user input, modifying at least a portion of the first template corresponding to the first page. For example, the second page corresponding to the second template may be a page obtained by changing the position, size, color, or shape of at least a portion of the constituent elements in the first page, or by deleting previous constituent elements or adding new constituent elements.
於動作S312中,裝置110可將第2模板傳輸至外部裝置130。根據一實施例,裝置110可於傳輸第2模板時,一併傳輸第1頁面之URL。藉此,裝置110可向外部裝置130告知第2模板係修正與第1頁面對應之第1模板而得者。In action S312, device 110 may transmit the second template to external device 130. According to one embodiment, device 110 may transmit the URL of the first page at the same time as transmitting the second template. In this way, device 110 can inform external device 130 that the second template is obtained by modifying the first template corresponding to the first page.
於動作S320中,外部裝置130可將第2模板與第1頁面進行映射並儲存。例如,外部裝置130可將第1頁面之URL、第1模板及第1資料集與第1頁面進行映射並儲存,然後對應於自裝置110接收到第2模板,將第1頁面之URL、第2模板及第1資料集進行映射並儲存。In action S320, external device 130 may map and store the second template with the first page. For example, external device 130 may map and store the URL of the first page, the first template, and the first data set with the first page, and then, corresponding to receiving the second template from device 110, map and store the URL of the first page, the second template, and the first data set.
應明確地理解,上述說明中對裝置110僅修正模板之實施例進行了說明,但亦可修正與頁面對應之資料集。It should be clearly understood that the above description only illustrates an implementation of the template modification for device 110, but it can also modify the dataset corresponding to the page.
圖4係表示本發明之一實施例之呈現網頁之方法的動作流程圖。於動作S400中,裝置110可產生變更第1模板所得之第2模板並將其傳輸至外部裝置130。外部裝置130可對應於接收到第2模板,將映射於第1頁面之模板自第1模板變更為第2模板。即,外部裝置130可將第1頁面之URL、第2模板及第1資料集進行映射。Figure 4 is a flowchart illustrating the operation of a method for presenting a webpage according to one embodiment of the present invention. In operation S400, device 110 can generate a second template obtained by modifying the first template and transmit it to external device 130. Upon receiving the second template, external device 130 can modify the template mapped to the first page from the first template to the second template. That is, external device 130 can map the URL of the first page, the second template, and the first dataset.
於動作S410中,瀏覽器120可向裝置110傳輸頁面加載請求。加載請求可進而包括頁面之URL。URL可根據用戶是否登入網頁或上述用戶是否加入會員資格中之至少一者而具有不同之字串。例如,瀏覽器120可將加載第1頁面之請求傳輸至裝置110,加載第1頁面之請求可包括第1頁面之URL。此時,第1頁面之URL可根據用戶是否已登入應用程式及、用戶是否已加入會員資格而確定。其原因在於:即使為藉由相同之路徑連接之頁面,根據用戶是否登入及是否加入會員資格,其構成亦可能會有所不同。例如,於用戶登入應用程式之情形時,網頁之構成可根據如用戶之線上平台購買歷史、最近查看之商品、購物車及個人資訊之資料而有所不同,並且可根據用戶是否加入會員資格,是否應用折扣及折扣持續時間等而有所不同。In action S410, browser 120 may send a page loading request to device 110. The loading request may include the URL of the page. The URL may have different strings depending on at least one of the following: whether the user is logged into the webpage or whether the user has become a member. For example, browser 120 may send a request to load page 1 to device 110, and the request may include the URL of page 1. In this case, the URL of page 1 may be determined based on whether the user is logged into the application and whether the user has become a member. This is because even pages linked via the same path may have different structures depending on whether the user is logged in and whether they have become a member. For example, when a user logs into the application, the webpage structure may vary depending on data such as the user's online platform purchase history, recently viewed items, shopping cart, and personal information, and may also vary depending on whether the user has become a member, whether they are applying for discounts, and the duration of the discounts.
例如,第1頁面之URL可包括用戶未登入應用程式之情形時之第1 URL、用戶登入應用程式但未加入會員資格之情形時之第2 URL、用戶已登入應用程式且已加入會員資格之情形時之第3 URL。For example, the URL of the first page may include the first URL when the user is not logged into the application, the second URL when the user is logged into the application but has not registered as a member, and the third URL when the user is logged into the application and has registered as a member.
於動作S420中,裝置110可自瀏覽器120之加載請求獲得URL。例如,裝置110可獲得第1頁面之URL。於動作S422中,裝置110可將獲得之URL傳輸至外部裝置130。In action S420, device 110 may obtain a URL from a loading request from browser 120. For example, device 110 may obtain the URL of page 1. In action S422, device 110 may transmit the obtained URL to external device 130.
於動作S430中,外部裝置130可確定與獲得之URL對應之模板之識別符及資料集並將其傳輸至裝置110。由於外部裝置130將網頁之URL、與該網頁對應之模板及資料集之資訊進行映射並儲存,因此可確定與接收到之URL對應之模板之識別符及資料集。例如,外部裝置130可確定與第1頁面之URL對應之第2模板之識別符及第1資料集並將其傳輸至裝置110。In action S430, external device 130 can determine the identifier and data set of the template corresponding to the obtained URL and transmit them to device 110. Since external device 130 maps and stores the information of the webpage URL, the template corresponding to the webpage, and the data set, it can determine the identifier and data set of the template corresponding to the received URL. For example, external device 130 can determine the identifier and first data set of the second template corresponding to the URL of the first page and transmit them to device 110.
於動作S440中,裝置110可自外部裝置130接收第2模板之識別符及第1資料集來產生網頁資訊。根據一實施例,裝置110可確定與識別符對應之模板,並將利用模板引擎(例如,Handlebar、Vue、React等)而確定之模板及資料集結合。模板引擎可為將資料集與模板結合並輸出結果文本(即,網頁資訊)之軟體或硬體裝置。例如,裝置110可利用Handlebar來產生結合第2模板與第1資料集之第1網頁資訊。於動作S442中,裝置110可將產生之網頁資訊傳輸至瀏覽器120。藉此,相較於在外部裝置130中產生網頁資訊並將其傳輸至瀏覽器120之方式,減少了傳輸之資料之數量,並且瀏覽器120可更快地獲得呈現所請求之網頁所需之資料。In action S440, device 110 may receive an identifier of the second template and a first dataset from external device 130 to generate web page information. According to one embodiment, device 110 may determine a template corresponding to the identifier and combine the template and dataset determined using a template engine (e.g., Handlebar, Vue, React, etc.). The template engine may be a software or hardware device that combines the dataset and the template and outputs the resulting text (i.e., web page information). For example, device 110 may use Handlebar to generate first web page information combining the second template and the first dataset. In action S442, device 110 may transmit the generated web page information to browser 120. In this way, compared to generating web page information in the external device 130 and transmitting it to the browser 120, the amount of data transmitted is reduced, and the browser 120 can obtain the data required to present the requested web page more quickly.
於動作S450中,瀏覽器120可基於自裝置110接收到之網頁資訊而呈現網頁。例如,瀏覽器120可對應於接收到第1頁面之網頁資訊而呈現第1頁面。In action S450, browser 120 may display a webpage based on webpage information received by device 110. For example, browser 120 may display the first page in response to receiving webpage information for the first page.
圖5係表示本發明之一實施例之呈現網頁之方法的動作流程圖。以下,省略對與圖4中說明之內容重複之內容進行之說明。Figure 5 is a flowchart illustrating the method for presenting a webpage according to one embodiment of the present invention. The following description omits any content that is repeated in Figure 4.
於動作S500中,瀏覽器120可向裝置110傳輸第1頁面加載請求。於動作S510中,裝置110可獲得與第1頁面對應之URL,於動作S512中,可將URL傳輸至外部裝置130。In action S500, browser 120 may send a request to device 110 to load the first page. In action S510, device 110 may obtain the URL corresponding to the first page, and in action S512, the URL may be sent to external device 130.
於動作S520中,外部裝置130可將映射於第1頁面之URL之第1模板之識別符及第1資料集傳輸至裝置110。In action S520, external device 130 can transmit the identifier of the first template mapped to the URL of the first page and the first data set to device 110.
裝置110可接收第1模板之識別符及第1資料集,於動作S530中,可基於用戶輸入而產生變更第1模板之至少一部分所得之第2模板。於動作S532中,裝置110可基於所產生之第2模板及第1資料集而產生網頁資訊,於動作S534中,將所產生之網頁資訊傳輸至瀏覽器120。於動作S540中,瀏覽器120可基於接收到之網頁資訊而呈現第1頁面。Device 110 can receive the identifier of the first template and the first data set. In action S530, it can generate a second template by modifying at least a portion of the first template based on user input. In action S532, device 110 can generate web page information based on the generated second template and the first data set. In action S534, the generated web page information is transmitted to browser 120. In action S540, browser 120 can display the first page based on the received web page information.
根據一實施例,裝置110可將產生之第2模板傳輸至外部裝置130。外部裝置130可對應於自裝置110接收到第2模板,將映射於第1頁面之第1模板變更為第2模板。According to one embodiment, device 110 can transmit the generated second template to external device 130. External device 130 can change the first template mapped on the first page to the second template upon receiving the second template from device 110.
於圖3至圖5所示之順序圖中,依序對本發明之方法或演算法之各步驟進行了說明,但除依次實行各步驟以外,亦可按照可藉由本發明而任意組合之順序來實行。本流程圖之說明並不排除對方法或演算法實施改變或修正,且並不意味著任一動作為必需者或較佳者。於一實施例中,可並列、反覆或啟發性地實行至少一部分步驟。於一實施例中,可省略至少一部分步驟、或追加其他步驟。The steps of the method or algorithm of the present invention are described sequentially in the sequence diagrams shown in Figures 3 to 5. However, in addition to performing the steps sequentially, they can also be performed in any combination that can be achieved by the present invention. The description of this flowchart does not preclude changes or modifications to the method or algorithm, and does not imply that any action is necessary or preferred. In one embodiment, at least some steps may be performed in parallel, repeatedly, or heuristically. In one embodiment, at least some steps may be omitted, or other steps may be added.
圖6及圖7係表示本發明之一實施例之根據彼此不同之網頁資訊而於瀏覽器中加載之第1頁面的示例。Figures 6 and 7 illustrate examples of a first page loaded in a browser based on different web page information, according to one embodiment of the present invention.
裝置110可基於用戶輸入,變更網頁之模板之至少一部分。網頁之模板可定義網頁之構造及佈局。例如,可定義如配置於網頁之各構成要素之位置、大小、顏色、形態之要素。裝置110之用戶可藉由變更網頁之模板,來改善線上平台中提供之網頁之設計及功能。Device 110 can modify at least a portion of a webpage template based on user input. The webpage template defines the structure and layout of the webpage. For example, it can define elements such as the position, size, color, and shape of each component placed on the webpage. Users of device 110 can improve the design and functionality of webpages provided on the online platform by modifying the webpage template.
例如,圖6係表示藉由第1模板構成之第1頁面600。藉由第1模板構成之第1頁面600包括與複數個商品分別對應之項目602,各項目602可包括商品之影像604及文本資料606。此時,第1模板可於左側顯示商品之影像604,於右側顯示文本資料606。圖7係表示藉由第2模板構成之第1頁面610。藉由第2模板構成之第1頁面610可包括與複數個商品分別對應之項目612,各項目612可包括商品之影像614及文本資料616。此時,第2模板可於右側顯示商品之影像614,於左側顯示文本資料616。即,隨著第1頁面之模板自第1模板變更為第2模板,於第1頁面中顯示之構成要素之位置可能發生變更。應明確理解,瀏覽器120中顯示之網頁隨著網頁之模板變更而變更之示例不限制於圖6及圖7中說明之內容。For example, Figure 6 shows a first page 600 constructed using a first template. The first page 600 constructed using the first template includes items 602 corresponding to a plurality of products, each item 602 including an image 604 of the product and text data 606. In this case, the first template may display the product image 604 on the left and the text data 606 on the right. Figure 7 shows a first page 610 constructed using a second template. The first page 610 constructed using the second template may include items 612 corresponding to a plurality of products, each item 612 including an image 614 of the product and text data 616. In this case, the second template may display the product image 614 on the right and the text data 616 on the left. That is, as the template of page 1 changes from template 1 to template 2, the position of the constituent elements displayed on page 1 may change. It should be clearly understood that examples of web pages displayed in browser 120 changing as the web page template changes are not limited to the content described in Figures 6 and 7.
本發明之各種實施例可於機器(machine)可讀儲存媒體(machine-readable storage medium)中以軟體之形式實現。軟體可為用以實現本發明之各種實施例之軟體。本發明所屬之技術領域內之程式設計師可根據本發明之各種實施例而推測出軟體。例如,軟體可為包括機器可讀命令(例如,代碼或代碼段)之程式。機器係可根據自儲存媒體呼叫之命令來進行動作之裝置,例如可為電腦。於一實施例中,機器可為本發明之實施例之裝置110。於一實施例中,機器之處理器執行所呼叫之命令,從而可使機器之構成要素實行與該命令對應之功能。於一實施例中,處理器可為本發明之實施例之處理器210。儲存媒體可指能夠由機器讀取且儲存資訊之所有種類之記錄媒體(recording medium)。儲存媒體例如可包括ROM、RAM、CD-ROM、磁帶、軟碟、光學資料儲存裝置等。於一實施例中,儲存媒體可為記憶體220。於一實施例中,儲存媒體亦能夠以分散於與網路連接之電腦系統等之形態實現。軟體可分散儲存於電腦系統等來執行。儲存媒體可為非暫時性(non-transitory)儲存媒體。非暫時性儲存媒體係指無關於半永久或是臨時性儲存資料而實際存在之媒體(tangible medium),不包括暫時(transitory)傳播之信號(signal)。Various embodiments of the present invention can be implemented in the form of software on a machine-readable storage medium. The software can be the software used to implement the various embodiments of the present invention. Programmers in the art to which the present invention pertains can infer the software based on the various embodiments of the present invention. For example, the software can be a program that includes machine-readable commands (e.g., code or code segments). A machine is a device capable of performing actions according to commands invoked from a storage medium, such as a computer. In one embodiment, the machine can be device 110 of an embodiment of the present invention. In one embodiment, the machine's processor executes the invoked commands, thereby enabling the machine's components to perform functions corresponding to those commands. In one embodiment, the processor may be the processor 210 of the present invention. Storage medium may refer to all types of recording medium capable of being read by a machine and storing information. Storage medium may include, for example, ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. In one embodiment, the storage medium may be memory 220. In one embodiment, the storage medium may also be implemented in a form distributed across computer systems connected to a network. Software may be distributed across computer systems for execution. The storage medium may be a non-transitory storage medium. Non-transitory storage media refers to media that actually exist without relation to semi-permanent or temporary data storage, excluding transiently transmitted signals.
以上,根據各種實施例對本發明之技術思想進行了說明,但本發明之技術思想包括能夠於本發明所屬之技術領域內具有常識者可理解之範圍內實現之各種置換、變化及變更。又,應理解此種置換、變化及變更可包括於隨附之發明申請專利範圍內。The technical concept of the present invention has been described above based on various embodiments. However, the technical concept of the present invention includes various substitutions, changes, and modifications that can be implemented within the scope of the art to which the present invention pertains and are understandable to a person of ordinary skill. Furthermore, it should be understood that such substitutions, changes, and modifications may be included within the scope of the appended invention claims.
110:裝置 120:瀏覽器 130:外部裝置 210:處理器 220:記憶體 230:通訊介面 600:第1頁面 602:項目 604:影像 606:文本資料 610:第1頁面 612:項目 614:影像 616:文本資料 S310:動作 S312:動作 S320:動作 S400:動作 S410:動作 S420:動作 S422:動作 S430:動作 S440:動作 S442:動作 S450:動作 S500:動作 S510:動作 S512:動作 S520:動作 S530:動作 S532:動作 S534:動作 S540:動作110: Device 120: Browser 130: External Device 210: Processor 220: Memory 230: Communication Interface 600: Page 1 602: Item 604: Image 606: Text Data 610: Page 1 612: Item 614: Image 616: Text Data S310: Action S312: Action S320: Action S400: Action S410: Action S420: Action S422: Action S430: Action S440: Action S442: Action S450: Action S500: Action S510: Action S512: Action S520: Action S530: Action S532: Action S534: Action S540: Action
圖1係表示可應用本發明之一實施例之裝置之環境。 圖2係本發明之一實施例之電子裝置之方塊圖。 圖3係表示本發明之一實施例之修正網頁之模板之方法的動作流程圖。 圖4係表示本發明之一實施例之呈現網頁之方法的動作流程圖。 圖5係表示本發明之一實施例之呈現網頁之方法的動作流程圖。 圖6及圖7係表示本發明之一實施例之根據彼此不同之網頁資訊而於瀏覽器中加載之第1頁面的示例。Figure 1 illustrates the environment of an apparatus to which one embodiment of the present invention can be applied. Figure 2 is a block diagram of an electronic device according to one embodiment of the present invention. Figure 3 is a flowchart illustrating the method of modifying a webpage template according to one embodiment of the present invention. Figure 4 is a flowchart illustrating the method of presenting a webpage according to one embodiment of the present invention. Figure 5 is a flowchart illustrating the method of presenting a webpage according to one embodiment of the present invention. Figures 6 and 7 illustrate examples of a first page loaded in a browser according to different webpage information according to one embodiment of the present invention.
110:裝置 110: Device
120:瀏覽器 120: Browser
130:外部裝置 130: External Device
S400:動作 S400: Action
S410:動作 S410: Action
S420:動作 S420: Action
S422:動作 S422: Action
S430:動作 S430: Action
S440:動作 S440: Action
S442:動作 S442: Action
S450:動作 S450: Action
Claims (17)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR10-2024-0084785 | 2024-06-27 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI908183B true TWI908183B (en) | 2025-12-11 |
| TW202601411A TW202601411A (en) | 2026-01-01 |
Family
ID=
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200073921A1 (en) | 2018-08-16 | 2020-03-05 | Audioeye, Inc. | Systems, devices, and methods for facilitating website remediation and promoting assistive technologies |
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200073921A1 (en) | 2018-08-16 | 2020-03-05 | Audioeye, Inc. | Systems, devices, and methods for facilitating website remediation and promoting assistive technologies |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12307496B2 (en) | Automated extraction of data from web pages | |
| TWI757743B (en) | Mini program generation method and device | |
| US10990644B2 (en) | Systems and methods for contextual vocabularies and customer segmentation | |
| WO2021184725A1 (en) | User interface test method and apparatus, storage medium, and computer device | |
| US10025758B2 (en) | Support for non-native file types in web application environment | |
| US20130097488A1 (en) | Custom optimization of web pages | |
| EP3278217B1 (en) | Enhanced preview technology for application add-ins | |
| TW201626768A (en) | Methods for accessing hardware resources of an electronic device with an operating system and related electronic devices with an operating system and local server applied thereto | |
| CN109194714B (en) | A copywriting push method, device, terminal device and storage medium | |
| KR20210008862A (en) | Action indicator for the search action output element | |
| JP2017507376A (en) | Method, apparatus and system for communicating and presenting merchandise information | |
| JP5936103B2 (en) | System, computer, method and program for calling Java method on client | |
| CN116127219A (en) | Method and device for displaying pages in applet and computer equipment | |
| TWI908183B (en) | Method, apparatus, and non-transitory computer-readable recording medium storing instruction for rendering web page | |
| CN113656326A (en) | Program testing method, program testing device, computer system and storage medium | |
| US12047465B1 (en) | Optimized discovery system to support embedded webpages | |
| TW202601411A (en) | Method, apparatus, and non-transitory computer-readable recording medium storing instruction for rendering web page | |
| CN107562461B (en) | Feature calculation system, feature calculation method, storage medium, and electronic device | |
| US20190317649A1 (en) | Automation tool for generating web pages and links | |
| CN114936151B (en) | Debug page display method, device, equipment, storage medium and communication system | |
| US11770437B1 (en) | Techniques for integrating server-side and client-side rendered content | |
| CN115858978A (en) | A page loading method and device based on updating resources | |
| KR20260001394A (en) | Method, apparatus, and recording medium storing instruction for rendering web page | |
| CN117131302A (en) | A method and device for generating business pages | |
| US20200034119A1 (en) | Translating User Inputs Into Discretely Functional Styled Standalone Web and Mobile Software Features |