Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for generating a skeleton screen, so as to improve the skeleton screen generation efficiency.
In a first aspect, an embodiment of the present invention provides a method for generating a skeleton screen, including:
receiving a webpage access request, and sending the webpage access request to a corresponding network server;
receiving cascading style sheet information returned by the network server in response to the webpage access request, wherein elements used for generating a skeleton screen in the cascading style sheet information are marked by class name labels;
acquiring azimuth information of the elements marked by class name labels from the cascading style sheet information;
and drawing according to the acquired azimuth information of each element to obtain the skeleton screen.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the obtaining, from the cascading style sheet information, orientation information of an element labeled with a class name tag includes:
and calling a window, getcomputedstyle () method, acquiring style data of an element with a label as a class name label in the cascading style sheet information, and extracting azimuth information of the element from the style data.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the performing rendering according to the acquired orientation information of each element includes:
for each acquired element, calculating an outer frame fillet according to shape information in the azimuth information of the element, if the calculated outer frame fillet is larger than a preset circular threshold, determining that the element is in a circular shape, and calling an SVG circular element skeleton color block drawing method for drawing; otherwise, determining that the element is the rectangular element, and calling an SVG rectangular element skeleton color block drawing method for drawing.
With reference to the second possible implementation manner of the first aspect, the present invention provides a third possible implementation manner of the first aspect, wherein the rectangular shape includes: the method for calling window.
Invoking a Web API interface element & getCl ientRects () method in a window & getcomputedStyle () method to obtain style data of elements in a circular shape and elements in a single-segment rectangular shape; calling a dom, getClientRects () method in a window, getComputedStyle () method to acquire the style data of each line in the elements of the multi-section rectangular shape;
the method for drawing the color block of the SVG rectangular element skeleton is called, and comprises the following steps:
calling an SVG single-segment rectangular element skeleton color block drawing method for drawing the single-segment rectangular elements;
and calling an SVG multi-segment rectangular element skeleton color block drawing method for the multi-segment rectangular elements to draw.
With reference to the first aspect and any one possible implementation manner of the first to third possible implementation manners of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the orientation information includes: shape, size, and location.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the shape is determined according to an outer frame fillet, and the size includes: an element width and an element height, the positions including: the left margin of the element distance window and the upper margin of the element distance window.
With reference to the first aspect and any one possible implementation manner of the first to third possible implementation manners of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes:
editing the labels of the elements in the cascading style sheet information, wherein the editing comprises deleting the class name labels or adding the class name labels.
In a second aspect, an embodiment of the present invention further provides an apparatus for generating a skeleton screen, including:
the request module is used for receiving a webpage access request and sending the webpage access request to a corresponding network server;
the information receiving module is used for receiving cascading style sheet information returned by the network server in response to the webpage access request, wherein elements used for generating the skeleton screen are marked by class name labels in the cascading style sheet information;
the orientation information acquisition module is used for acquiring the orientation information of the elements marked by the class name labels from the cascading style sheet information;
and the drawing module is used for drawing according to the acquired azimuth information of each element to obtain the skeleton screen.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the method described above.
According to the method and the device for generating the skeleton screen, provided by the embodiment of the invention, the webpage access request is sent to the corresponding network server by receiving the webpage access request; receiving cascading style sheet information returned by the network server in response to the webpage access request, wherein elements used for generating a skeleton screen in the cascading style sheet information are marked by class name labels; acquiring azimuth information of the elements marked by class name labels from the cascading style sheet information; and drawing according to the acquired azimuth information of each element to obtain the skeleton screen. Therefore, the elements used for generating the skeleton screen are marked with the preset class name labels in the CSS information in advance, when the skeleton screen is generated, the elements marked with the class name labels in the CSS information are extracted, the azimuth information of the elements is obtained, the skeleton screen is automatically drawn according to the obtained azimuth information, the time required by a designer for coding is avoided, and the generation efficiency of the skeleton screen is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method and a device for generating a skeleton screen, which are described by the embodiment below.
Fig. 1 shows a flowchart of a method for generating a skeleton screen according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, receiving a web page access request, and sending the web page access request to a corresponding network server.
In the embodiment of the invention, when a user needs to access a webpage, a webpage access request is initiated to the client. The client analyzes the webpage access request, acquires a domain name corresponding to the webpage access request, analyzes the domain name, acquires an IP address of the domain name, and sends the webpage access request to a network server corresponding to the IP address. For example, the user inputs a domain name corresponding to a web page to be accessed in a browser address bar of the client and returns, or clicks a displayed link, and it may be determined that a web page access request is initiated. Illustratively, the user inputs www.a.com in the address bar of the browser and returns, or the user clicks one link "SVG tutorial" in www.a.com web page displayed in the browser, so as to determine that the user initiates the web page access request through the client.
In the embodiment of the invention, when the client loads the webpage, the client needs to request the webpage information of the webpage from the network server by initiating the webpage access request. The web page information includes: HyperText Markup Language (HTML) file information, Cascading Style Sheets (CSS) information, and the like. The HTML file information includes web page document information, i.e., data content displayed in a web page, and the CSS information is used to provide a style structure of the web page.
In the prior art, when a web page is loaded, a web server responds to a web page access request and feeds back a data packet for page loading, that is, web page information, where the data packet includes data (CSS information) for generating a skeleton screen and data (HTML file information) for normal web page loading, and after receiving the data packet, a client first loads the skeleton screen, and after completing normal web page loading, the skeleton screen is replaced with a normal web page.
And step 102, receiving cascading style sheet information returned by the network server in response to the webpage access request, wherein elements used for generating the skeleton screen are marked by class name labels in the cascading style sheet information.
In the embodiment of the invention, HTML file information in the webpage information is used for displaying webpage document information, and CSS information is used for providing a style structure of the webpage. Because the style structure of the skeleton screen is similar to that of the webpage, compared with the style structure of the webpage, the structure of the skeleton screen is simpler, namely, only part of specific HTML elements are used for drawing the skeleton screen for the elements in the cascading style sheet information, and therefore, the elements are marked for drawing the skeleton screen by setting the preset class name tags for the part of specific HTML elements, so that the skeleton screen can be constructed by utilizing CSS information. Exemplarily, in the embodiment of the present invention, when a designer designs a web page (DOM structure), for an element that needs to be used for a skeleton screen in the web page, on the basis of keeping an original tag, a class name tag representing the element for generating the skeleton screen is further set for the element to mark the element for generating the skeleton screen, and in subsequent applications, the designer may start to search from a body tag in the DOM structure, recursively find all marked elements, and obtain the element of which the tag is the class name tag. Therefore, designers do not need to write codes respectively according to the page structure diagram of each webpage, and only need to set class name tags for representing the skeleton screen for elements used for the skeleton screen, so that the generation of the skeleton screen can be realized by utilizing CSS information of the original webpage, the time required for generating the skeleton screen is effectively reduced, and the generation efficiency of the skeleton screen is improved; furthermore, the skeleton screen does not need to be stored, and the storage space is saved.
In the embodiment of the invention, for the webpages corresponding to different webpage access requests, the data volume of the corresponding webpage information is different due to different page structures and nested levels, and for the condition of small data volume, when the webpage is loaded, the webpage loading response speed is high, and the visual experience of a user can be met, so that the skeleton screen does not need to be preloaded for the webpages. As an alternative embodiment, the method further comprises:
responding to the webpage access request, and acquiring webpage information of a webpage corresponding to the webpage access request;
and based on the current network transmission performance and the data volume of the webpage information, if the transmission time for transmitting the webpage information does not exceed a preset transmission time threshold value, transmitting the webpage information, otherwise, transmitting the cascading style sheet information in the webpage information.
In the embodiment of the present invention, the transmission time threshold is a time that does not cause the user visual experience to be smooth, for example, 2 seconds, 3 seconds, and the like, and if the transmission time threshold is exceeded, the user visual experience is not smooth.
In the embodiment of the present invention, after receiving the web page information, the client further needs to analyze the web page information, first analyzes the CSS information, obtains the style structure of the web page, then analyzes the HTML file information, obtains the web page document information, fills the web page document information obtained by the analysis to the corresponding position in the style structure, and renders the web page, so as to present a complete web page to the user, and therefore, the generation time of the web page is not only related to the transmission time, but also related to the analysis performance of the client, as another optional embodiment, the web page access request includes the client performance parameters, and the method further includes:
responding to the webpage access request, and acquiring webpage information of a webpage corresponding to the webpage access request;
determining transmission time for transmitting the webpage information based on the current network transmission performance and the data volume of the webpage information;
determining the analysis time required by the client to analyze the webpage information based on the client performance parameters contained in the webpage access request;
and calculating the sum of the transmission time and the analysis time, if the sum does not exceed a preset webpage loading time threshold, transmitting the webpage resources, and otherwise, transmitting the cascading style sheet information in the webpage resources.
In the embodiment of the present invention, when a user accesses a web page, the web page may have an access right, and if the user accessing the web page does not have a corresponding access right, the user may not be allowed to access the web page, so as to be an optional embodiment, the method further includes:
and performing access authentication on a client corresponding to the webpage access request, responding to the webpage access request if the client does not have the right of accessing the webpage, returning a preset non-right access webpage, and executing the step of acquiring webpage information of the webpage corresponding to the webpage access request if the client has the right of accessing the webpage.
In the embodiment of the invention, after a user initiates webpage access, as an optional embodiment, the judgment can be carried out according to the authority of the user initiating the access, if the user does not have the right to access the webpage, the non-authority access webpage containing characters such as 'you do not have the authority to access the webpage' and the like can be returned to the mobile terminal; as another optional embodiment, the skeleton screen of the embodiment of the present invention may be displayed to the user initiating access, and then, the judgment is performed according to the authority of the user initiating access, and if the user does not have the right to access the web page, the no-authority access web page including the word "no-authority access" or the like may be returned to the client to replace the displayed skeleton screen.
Step 103, obtaining the orientation information of the elements marked by the class name labels from the cascading style sheet information.
In the embodiment of the invention, each element in the CSS information is traversed, the read tag is an element of a class name tag used for representing the skeleton screen, and the orientation information of the element is obtained from the CSS information describing the element so as to generate the skeleton screen.
In the embodiment of the present invention, the azimuth information includes: shape, size, position.
In the embodiment of the invention, the acquisition of the azimuth information can be realized by a function calling method. As an alternative embodiment, obtaining the orientation information of the element marked with the class name tag from the cascading style sheet information includes:
and calling a window, getcomputedstyle () method, acquiring style data of an element with a label as a class name label in the cascading style sheet information, and extracting azimuth information of the element from the style data.
In the embodiment of the present invention, after an element with a class name tag is obtained, the style data range of the element is located, and the orientation information in the style data of the element can be obtained by calling a window. In practical applications, the style data may include orientation information representing orientations from different dimensions or different granularities, and the different orientation information needs to be distinguished, as an optional embodiment, the shape includes an outer frame fillet, and the size includes: element width (offsetWidth) and element height (offsetHeight), positions including: element-to-window left margin (offsetLeft) and element-to-window top margin (offsetTop).
And 104, drawing according to the acquired azimuth information of each element to obtain a skeleton screen.
In the embodiment of the present invention, as an optional embodiment, a skeleton screen generation tool may be used to generate the graphic color blocks corresponding to the elements, and then the graphic color blocks are spliced to obtain the skeleton screen.
In the embodiment of the present invention, as an optional embodiment, the skeleton screen generating tool includes: scalable Vector Graphics (SVG), skeletal screen Page plug-in (PSWP), and the like. SVG is a graphic format based on eXtensible Markup Language (XML) for describing two-dimensional vector graphics. By taking SVG as an example, the length, width, position and color of elements are input in an XML language mode, and then actual corresponding graph color blocks can be drawn, the code quantity for drawing a skeleton screen is small, the execution efficiency is high, the drawing of a large number of elements can be realized, and each graph color block drawn by the SVG is an independent DOM node and can be conveniently bound with events or modified, so that the SVG is selected for drawing the elements to form the graph color blocks of the skeleton screen exemplarily.
In the embodiment of the invention, the skeleton screen is used for occupying the webpage corresponding to the webpage access request, so that the blank screen time can be reduced, and the visual experience of a user can be improved.
In the embodiment of the invention, through statistical analysis, the shapes of the elements in the front-end page corresponding to the skeleton screen are basically a circular shape (such as a head portrait) and a rectangular shape (such as a picture, a big button, a carousel and a plurality of lines of characters), and the situations that the elements are in a non-circular shape or a non-rectangular shape are rare, so that the embodiment of the invention respectively sets the corresponding SVG shape drawing methods for the circular shape and the rectangular shape to further improve the drawing efficiency of the skeleton screen. Therefore, as an alternative embodiment, the drawing according to the acquired orientation information of each element includes:
for each acquired element, calculating an outer frame fillet according to shape information in the azimuth information of the element, if the calculated outer frame fillet is larger than a preset circular threshold, determining that the element is in a circular shape, and calling an SVG circular element skeleton color block drawing method for drawing; otherwise, determining that the element is the rectangular element, and calling an SVG rectangular element skeleton color block drawing method for drawing.
In the embodiment of the present invention, as an alternative embodiment, the circular threshold may be set to 50%.
In the embodiment of the invention, the code segment of the SVG circular element skeleton color block drawing method is as follows:
<svg>
<circle cx="30"cy="30"r="30"/>
</svg>
wherein, cx, cy and r respectively correspond to the x axis, the y axis and the radius length of the circle center of the color block of the drawn graph.
The code segment of the SVG rectangular element skeleton color block drawing method is as follows:
<svg>
<rect x="10"y="10"width="100"height="100"/>
</svg>
wherein, x, y, width and height respectively correspond to the x axis, y axis, length and width of the position of the color block of the drawn graph.
In the embodiment of the invention, as an optional embodiment, in the CSS information, the elements used for generating the skeleton screen are labeled with the labels sk, and multiple rectangular elements are labeled with the labels span, for the rectangular shape, the picture, the large button, the carousel and the like are single-row rectangles, and for the multiple-row characters, the multiple-row rectangles are multiple-row rectangles. In this way, when drawing is performed, whether an element (which can be called an inline element) marked with span exists is determined from the marked elements, if so, the element is determined to be a multi-segment rectangular element, and the element is divided into a multi-segment rectangular group; for elements that are not labeled with span (which may be referred to as block-level elements), elements that are determined to be circular are divided into circular groups and elements that are determined not to be circular are divided into single-segment rectangular groups by calculating the outer border rounded corners. When drawing, the multi-segment rectangle elements are used for circularly filling the multi-segment rectangle group, the circular elements are used for circularly filling the circular group, and the single-segment rectangle elements are used for circularly filling the single-segment rectangle group.
In the embodiment of the present invention, as an alternative embodiment, the rectangular shape includes: invoking a window. getcomputedstyle () method to obtain style data of an element labeled as a class name label in cascading style sheet information, wherein the style data comprises:
invoking a Web API interface element & getCl ientRects () method in a window & getcomputedStyle () method to obtain style data of elements in a circular shape and elements in a single-segment rectangular shape; calling a dom, getClientRects () method in a window, getComputedStyle () method to acquire the style data of each line in the elements of the multi-section rectangular shape;
calling a SVG rectangular element skeleton color block drawing method for drawing, wherein the method comprises the following steps:
calling an SVG single-segment rectangular element skeleton color block drawing method for drawing the single-segment rectangular elements;
and calling an SVG multi-segment rectangular element skeleton color block drawing method for the multi-segment rectangular elements to draw.
In the embodiment of the invention, the method for drawing the SVG rectangular element skeleton color block comprises the following steps: an SVG single-segment rectangular element skeleton color block drawing method and an SVG multi-segment rectangular element skeleton color block drawing method. For a plurality of sections of rectangular elements in the rectangular elements, a class element label (span) can be set for the element in the designed webpage information, and the position and the size of each line of characters in a plurality of lines of characters can be obtained by a dom.
In the embodiment of the invention, according to the shape of the class name label element, calling a corresponding sub-method in a window. getcomputedstyle () method to obtain the style data, then calling a corresponding SVG skeleton color block drawing method, and drawing according to the obtained style data. For example, for a circular shape and a single-segment rectangular shape, a Web API (application program interface) element. getCl ientRects () method is called to obtain corresponding style data, an SVG circular element skeleton color block drawing method is called to draw elements of the circular shape, and an SVG single-segment rectangular element skeleton color block drawing method is called to draw elements of the single-segment rectangular shape; calling a dom.getClientRects () method to acquire style data of each line in the elements of the multi-section rectangular shape, and calling an SVG multi-section rectangular element skeleton color block drawing method to draw the elements of the multi-section rectangular shape; for elements with other shapes, because the browser webAPI does not have a method for acquiring the size and position parameters of the triangle or other polygon elements, custom drawing is performed by transmitting a color block drawing method of other element frameworks of the SVG.
In this embodiment of the present invention, as an optional embodiment, the method further includes:
editing the labels of the elements in the cascading style sheet information, wherein the editing comprises deleting the class name labels or adding the class name labels.
In the embodiment of the invention, the socket function can be utilized to transmit the corresponding class name elements of the SVG, for example, according to the actual display requirement, the class name element labels of the skeleton screen elements which do not need to be displayed are removed, or the class name element labels used for representing the skeleton screen elements are added to other elements in the information of the cascading style sheet, so that the other elements are displayed as the elements of the skeleton screen.
In this embodiment of the present invention, as an optional embodiment, the method further includes:
and setting animation for the graphic color blocks in the skeleton screen.
In the embodiment of the invention, the animation is set for the graphic color block, so that the set animation is operated when the skeleton screen is loaded, and the visual experience of a user can be enhanced.
According to the method for generating the skeleton screen, when a webpage is designed, the elements used for the skeleton screen are marked with the preset class name tags in the CSS information, when the skeleton screen is generated, the elements containing the tags are traversed from the CSS information, the elements marked with the class name tags are extracted, the azimuth information of the elements is obtained, and the color blocks of the skeleton screen are drawn according to the obtained azimuth information, so that the color blocks of the skeleton screen are automatically generated, a designer does not need to write and pre-draw codes, the time required for manually writing the skeleton screen by the designer is reduced, the efficiency of skeleton screen generation is improved, the designer can pay more attention to the development of app logic codes, and the iteration speed of apps is accelerated.
Fig. 2 is a schematic structural diagram of an apparatus for generating a skeleton screen according to an embodiment of the present invention. As shown in fig. 2, the apparatus includes:
the request module 201 is configured to receive a web page access request, and send the web page access request to a corresponding web server;
in the embodiment of the invention, when the client loads the webpage, the client needs to request the webpage information of the webpage from the network server. The web page information includes: HTML file information, CSS information, etc. The HTML file information includes web page document information, i.e., data content displayed in a web page, and the CSS information is used to provide a style structure of the web page.
An information receiving module 202, configured to receive cascading style sheet information returned by the network server in response to the web page access request, where in the cascading style sheet information, an element used for generating a skeleton screen is marked with a class name tag;
in the embodiment of the invention, the style structure of the skeleton screen is similar to that of the webpage, and only part of HTML elements in the information of the cascading style sheet are used for drawing the skeleton screen.
The orientation information acquisition module 203 is used for acquiring orientation information of the elements marked by class name labels from the cascading style sheet information;
and the drawing module 204 is configured to draw according to the acquired azimuth information of each element to obtain a skeleton screen.
In the embodiment of the present invention, as an optional embodiment, the skeleton screen generating tool includes: SVG, PSWP, and the like.
In this embodiment of the present invention, as an optional embodiment, the orientation information obtaining module 203 includes:
and the method calling unit is used for calling a window. getcomputedstyle () method, acquiring the style data of the element with the label as the class name label in the information of the cascading style sheet, and extracting the azimuth information of the element from the style data.
In this embodiment of the present invention, as an optional embodiment, the drawing module 204 includes:
the calculation unit is used for calculating the fillet of the outer frame according to the shape information in the azimuth information of each acquired element;
if the calculated fillet of the outer frame is larger than a preset circular threshold value, the processing unit determines that the element is a circular element and invokes an SVG circular element skeleton color block drawing method to draw; otherwise, determining that the element is the rectangular element, and calling an SVG rectangular element skeleton color block drawing method for drawing.
In the embodiment of the present invention, as an alternative embodiment, the rectangular shape includes: the method for calling window.
Invoking a Web API interface element & getClientRects () method in a window & getcomputedStyle () method to obtain style data of elements in a circular shape and elements in a single-segment rectangular shape; calling a dom, getClientRects () method in a window, getComputedStyle () method to acquire the style data of each line in the elements of the multi-section rectangular shape;
the method for drawing the color block of the SVG rectangular element skeleton is called, and comprises the following steps:
calling an SVG single-segment rectangular element skeleton color block drawing method for drawing the single-segment rectangular elements;
and calling an SVG multi-segment rectangular element skeleton color block drawing method for the multi-segment rectangular elements to draw.
In this embodiment of the present invention, as an optional embodiment, the orientation information includes: shape, size, and location. Wherein, the shape is confirmed according to outline fillet, and the size includes: element width and element height, position including: the left margin of the element distance window and the upper margin of the element distance window.
In this embodiment of the present invention, as an optional embodiment, the apparatus further includes:
and an editing module (not shown in the figure) for editing the labels of the elements in the cascading style sheet information, wherein the editing comprises deleting the class name labels or adding the class name labels.
In the embodiment of the present invention, as an optional embodiment, the network server may be further configured to respond to the web page access request, and obtain web page information of a web page corresponding to the web page access request;
and based on the current network transmission performance and the data volume of the webpage information, if the transmission time for transmitting the webpage information does not exceed a preset transmission time threshold value, transmitting the webpage information, otherwise, transmitting the cascading style sheet information in the webpage information.
In this embodiment of the present invention, as another optional embodiment, the web page access request includes a client performance parameter, and the web server may be further configured to:
responding to the webpage access request, and acquiring webpage information of a webpage corresponding to the webpage access request;
determining transmission time for transmitting the webpage information based on the current network transmission performance and the data volume of the webpage information;
determining the analysis time required by the client to analyze the webpage information based on the client performance parameters contained in the webpage access request;
and calculating the sum of the transmission time and the analysis time, if the sum does not exceed a preset webpage loading time threshold, transmitting the webpage resources, and otherwise, transmitting the cascading style sheet information in the webpage resources.
In this embodiment of the present invention, as yet another optional embodiment, the network server may further be configured to:
and performing access authentication on a client corresponding to the webpage access request, responding to the webpage access request if the client does not have the right of accessing the webpage, returning a preset non-right access webpage, and executing the step of acquiring webpage information of the webpage corresponding to the webpage access request if the client has the right of accessing the webpage.
As shown in fig. 3, an embodiment of the present application provides a computer device 300, configured to execute the method for generating the skeleton screen in fig. 1, where the device includes a memory 301, a processor 302 connected to the memory 301 through a bus, and a computer program stored in the memory 301 and executable on the processor 302, where the processor 302 implements the steps of the method for generating the skeleton screen when executing the computer program.
Specifically, the memory 301 and the processor 302 can be general-purpose memory and processor, and are not limited to this, and when the processor 302 runs the computer program stored in the memory 301, the method for generating the skeleton screen can be executed.
Corresponding to the method for generating the skeleton screen in fig. 1, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the method for generating the skeleton screen.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the method for generating the skeleton screen can be executed.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.