CN110187913A - Publication, operation method and the device of small routine - Google Patents

Publication, operation method and the device of small routine Download PDF

Info

Publication number
CN110187913A
CN110187913A CN201910410366.9A CN201910410366A CN110187913A CN 110187913 A CN110187913 A CN 110187913A CN 201910410366 A CN201910410366 A CN 201910410366A CN 110187913 A CN110187913 A CN 110187913A
Authority
CN
China
Prior art keywords
small routine
file
page
skeleton screen
service logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910410366.9A
Other languages
Chinese (zh)
Other versions
CN110187913B (en
Inventor
陈都
刘超凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910410366.9A priority Critical patent/CN110187913B/en
Publication of CN110187913A publication Critical patent/CN110187913A/en
Application granted granted Critical
Publication of CN110187913B publication Critical patent/CN110187913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention proposes a kind of publication of small routine, operation method and device, wherein, method includes: to obtain the service logic of small routine to be released, service logic is run to obtain the small routine page, according to the small routine page, generate the file of skeleton screen, the service logic of small routine and the file packing of skeleton screen are issued, by the service logic for obtaining small routine to be released, service logic is run to obtain preview interface, the file of skeleton screen is automatically generated according to preview page, without writing manually, improve efficiency for issuing, it reduces costs, it solves and skeleton screen file is write manually in the prior art, and it needs to invade applet code, it is lower to write efficiency, the technical issues of higher cost.

Description

Publication, operation method and the device of small routine
Technical field
The present invention relates to field of computer technology more particularly to a kind of publications of small routine, operation method and device.
Background technique
With the development of mobile network's technology, user browse small routine when experience requirements it is higher and higher.And small routine page The problem of it is too long that there may be page load times when face is opened and jumped, and white screen waiting etc. seriously affects user experience.
And in the prior art, due to needing to write manually to skeleton screen, it is lower that small routine writes efficiency for issuing, cost It is higher.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of dissemination method of small routine, it is to be released by obtaining The service logic of small routine runs service logic to obtain preview interface, automatically generates corresponding bone according to preview page The file of frame screen improves efficiency for issuing, reduces costs without writing manually.
Second object of the present invention is to propose a kind of operation method of small routine.
Third object of the present invention is to propose a kind of distributing device of small routine.
Fourth object of the present invention is to propose a kind of running gear of small routine.
5th purpose of the invention is to propose a kind of electronic equipment.
6th purpose of the invention is to propose a kind of computer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of dissemination method of small routine, comprising:
Obtain the service logic of small routine to be released;
The service logic is run to obtain the small routine page;
According to the small routine page, the file of skeleton screen is generated;
The service logic of the small routine and the file packing of the skeleton screen are issued.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of operation method of small routine, comprising:
Obtain the packaging file of small routine;
The packaging file is installed, to obtain the service logic of small routine and the file of skeleton screen;
The service logic is executed, obtains the static resource of the small routine page, and according to the service logic to service The dynamic resource of the small routine page described in device request;
During waiting dynamic resource to be obtained, according to the file of the skeleton screen, the skeleton screen is shown Show content;
After getting the dynamic resource, the small routine page is generated according to the static resource and the dynamic resource Face;
The displaying content switching of the skeleton screen is shown as the small routine page.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of distributing device of small routine, device includes:
Module is obtained, for obtaining the service logic of small routine to be released;
Module is run, for running the service logic to obtain the small routine page;
Generation module, for generating the file of skeleton screen according to the small routine page;
Release module, for issuing the service logic of the small routine and the file packing of skeleton screen.
In order to achieve the above object, fourth aspect present invention embodiment proposes a kind of running gear of small routine, device includes:
Module is obtained, for obtaining the packaging file of small routine;
Module is installed, for installing the packaging file, to obtain the service logic of small routine and the file of skeleton screen;
Execution module obtains the static resource of the small routine page, and according to the industry for executing the service logic Business dynamic resource of the logic to the small routine page described in server request;
Display module, for according to the file of the skeleton screen, showing during waiting dynamic resource to be obtained The displaying content of the skeleton screen;
Processing module, for being given birth to according to the static resource and the dynamic resource after getting the dynamic resource At the small routine page;
Switching module, for the displaying content switching of the skeleton screen to be shown as the small routine page.
To achieve the goals above, fifth aspect present invention embodiment proposes a kind of electronic equipment, including memory, place The computer program managing device and storage on a memory and can running on a processor, when the processor executes described program, The dissemination method of small routine as described in relation to the first aspect is realized, alternatively, realizing the operation side of the small routine as described in second aspect Method.
To achieve the goals above, sixth aspect present invention embodiment proposes a kind of computer readable storage medium, On be stored with computer program, the dissemination method of small routine as described in relation to the first aspect is realized when which is executed by processor, Alternatively, realizing the operation method of the small routine as described in second aspect.
Technical solution provided by the embodiment of the present invention may include it is following the utility model has the advantages that
The service logic of small routine to be released is obtained, runs service logic to obtain the small routine page, according to small routine page Face generates the file of skeleton screen, and the service logic of small routine and the file packing of skeleton screen are issued, pending by obtaining The service logic of the small routine of cloth, runs service logic to obtain preview interface, automatically generates correspondence according to preview page The file of skeleton screen improve efficiency for issuing without writing manually.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the dissemination method of small routine provided by the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the operation method of small routine provided by the embodiment of the present invention;
Fig. 3 is the flow diagram of another kind small routine page operation method provided by the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the distributing device of small routine provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the running gear of small routine provided by the embodiment of the present invention;And
Fig. 6 shows the block diagram for being suitable for the example electronic device for being used to realize the application embodiment.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings publication, operation method and the device of the small routine of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of the dissemination method of small routine provided by the embodiment of the present invention.
As shown in Figure 1, method includes the following steps:
Step 101, the service logic of small routine to be released is obtained.
Wherein, service logic is exactly that the logic of data is handled in small routine, for example, Xiao Ming will be bought by certain shopping small routine The happy good fortune shoes of female, the service logic of the shopping small routine are as follows: search " the happy good fortune shoes of female "-, which is found, mono- under desirable shoes-must log in account Number-clearing-pays a bill-receives.And the service logic of small routine has the corresponding page, that is to say, that by showing the different pages To realize the service logic of small routine.
Specifically, small routine is different, and corresponding service logic then may be different, to need first to obtain little Cheng to be released The service logic of sequence, and then the corresponding small routine page is obtained according to service logic.
Step 102, service logic is run to obtain the small routine page.
Specifically, service logic is run using developer's tool, in operation to preview link or Webization publication link, According in service logic hypertext markup language html file and Cascading Style list CSS file, preview obtain small routine The page.
Step 103, according to the small routine page, the file of skeleton screen is generated.
The present embodiment middle skeleton screen file includes the html file of skeleton screen and the CSS file of skeleton screen, for generating bone The displaying content of frame screen.
Wherein, skeleton screen can be understood as before data have not also loaded the small routine page, corresponding loading page The only template of the blank comprising display frame, before seeing that the small routine page renders completion completely, user can be appreciated that a sample Formula is simple, depicts the skeleton screen page of the substantially frame of the current small routine page, by the displaying content of skeleton screen, realizes flat The sliding small routine page for switching to truthful data rendering, improves the experience sense of user.Wherein, skeleton screen is applicable to a variety of Scene, such as are as follows: the homepage of electric business small routine, commodity details page etc., another example is: the discussion bar homepage and article of discussion bar small routine are detailed Feelings page etc., for example, first showing the displaying content of skeleton screen in homepage content loading process, that is, corresponding to the sky of the homepage page White edge frame generates the impatience waited to avoid user.
Specifically, in operation to preview link or Webization publication link, the small routine page can be obtained by preview, By text, picture and the customized label in the small routine page, corresponding placeholder is replaced with automatically, obtains depicting current small The displaying content of the corresponding skeleton screen of the substantially frame of the program page generates skeleton screen according to the displaying content of skeleton screen The CSS file of html file and skeleton screen realizes the file for generating the corresponding skeleton screen of the page of automation.Due to the bone Frame screen is either to obtain in webization publication link when preparing publication after the completion of small routine service logic in preview link Preview page is automatically generated the file of corresponding skeleton screen by obtained preview page, is different from the prior art using complete Hand-written mode gives the scheme of a set of skeleton screen of each page customization, or the exploitation environment by building pre-rendered, passes through Pre-rendered generates skeleton screen, and therefore, for the skeleton screen of the present embodiment when generating, there is no the service codes for invading script, realizes Free from small routine page load logic functional development, therefore, the cost of access of exploitation is lower, development efficiency compared with Height, while the file of the skeleton screen generated according to the preview page finally to be issued, corresponding skeleton screen and the true page it Between compatible degree it is also higher.
Step 104, the service logic of small routine and the file packing of skeleton screen are issued.
Specifically, it after the file generated of the corresponding skeleton screen of the small routine page, can be beaten together with the service logic of small routine It is issued after packet compression, since the file of the service logic of program and the corresponding skeleton screen of the page of small routine is individually to store , therefore need to establish between the service logic of small routine and the file of the corresponding skeleton screen of the small routine page when dismissing publication Corresponding relationship, as a kind of possible implementation, according to the file of the page iden-tity of the small routine page and corresponding skeleton screen Mark, generate mapping relation information, the service logic of the mapping relation information of generation, the file of skeleton screen and small routine is beaten Packet is issued, and is improved the efficiency of the small routine publication comprising skeleton screen, is reduced costs.
In the dissemination method of the small routine of the embodiment of the present invention, the service logic of small routine to be released is obtained, runs business Logic obtains the small routine page with preview, according to the small routine page, the file of corresponding skeleton screen is generated, by the business of small routine The file packing of the corresponding skeleton screen of the logical AND small routine page is issued, and the business by obtaining small routine to be released is patrolled Volume, preview is carried out to service logic and obtains preview interface, the file of corresponding skeleton screen is automatically generated according to preview page, is not necessarily to It writes manually, improves efficiency for issuing, reduce costs.
Based on a upper embodiment, a kind of operation method of small routine is present embodiments provided, Fig. 2 is institute of the embodiment of the present invention A kind of flow diagram of the operation method of the small routine provided.
As shown in Fig. 2, this method may comprise steps of:
Step 201, the packaging file of small routine is obtained.
Step 202, packaging file is installed, to obtain the service logic of small routine and the file of skeleton screen.
Step 203, service logic is executed, obtains the static resource of the small routine page, and according to service logic to service The dynamic resource of the device request small routine page.
Step 204, during waiting dynamic resource to be obtained, according to the file of skeleton screen, the displaying of skeleton screen is shown Content.
Step 205, after getting dynamic resource, the small routine page is generated according to static resource and dynamic resource.
Step 206, the displaying content switching of skeleton screen is shown as the small routine page.
Specifically, the file of the service logic of small routine and the corresponding skeleton screen of the small routine page is beaten in above-described embodiment Packet is issued, and the packaging file of small routine is generated after publication, obtains the packaging file of the small routine, and to small routine Packaging file installed, by run small routine, to obtain the service logic of corresponding small routine and the file of skeleton screen, The service logic of small routine is executed, the load of the page in service logic is realized, obtains the static resource of the small routine page, wherein Static resource refers to the data for not needing to obtain from server, for example, the page of local cache storage text, the picture to be shown With CSS file etc., and according to the small routine page from service logic to server request dynamic resource, for example, the page The data, such as picture, video etc. to be requested from server, and when waiting dynamic resource to be loaded to be obtained, in order to avoid Use Loading icon, and reduce user because the waiting time is unpredictable and the case where be lost, according to the HTML of skeleton screen The CSS file of file and skeleton screen generates the displaying content of the corresponding skeleton screen of the small routine current presentation page, such as load is in detail The displaying content of the corresponding skeleton screen of the page of feelings page, and the displaying of skeleton screen is carried out, until getting the dynamic of server return After state resource, the small routine page to be shown is generated according to static resource and dynamic resource, and the displaying content of skeleton screen is cut Change and be shown as the small routine page and be shown, avoid user in small routine page loading procedure, because waiting time relatively long or Waiting time is unpredictable and the case where be lost, improve the satisfaction that user uses small routine.
In the small routine operation method of the embodiment of the present invention, by obtaining the packaging file of small routine, small routine is carried out Installation and operation obtains the service logic of small routine and the file of skeleton screen, according to the service logic of small routine and skeleton screen File shows the corresponding skeleton screen of the small routine page in the page loading procedure of small routine, until when page load is completed, The small routine page is generated according to the dynamic resource of acquisition and static resource, and the displaying content of the skeleton screen of current presentation is switched It is shown, is realized in small routine page loading procedure for the small routine page, avoid user too long because of page load duration And the page is left, lead to customer churn, the poor technical problem of user satisfaction.
Based on a upper embodiment, the embodiment of the present invention also proposed a kind of possible realization of small routine page operation method Mode, Fig. 3 are the flow diagram of another kind small routine page operation method provided by the embodiment of the present invention, as shown in figure 3, Further include step 301 before step 204:
Step 301, according to the mapping relation information in packaging file, the text of the corresponding skeleton screen of the small routine page is determined Part.
Specifically, the file of the service logic of small routine and corresponding skeleton screen is when being packaged, due to small routine The file of skeleton screen individually stores, therefore, when carrying out packing and issuing, according to the page iden-tity of the small routine page with it is corresponding The mark of the file of skeleton screen has pre-generated mapping relations, therefore, in small routine operation, according to service logic load The page determines the mark of the page, and according to the mapping relation information, it is corresponding can to find the page iden-tity in packaging file The mark of the file of skeleton screen, and then according to the file identification of skeleton screen, the file of the determination skeleton screen to be shown, i.e. skeleton screen Html file and skeleton screen CSS file.
In the small routine page operation method of the embodiment of the present invention, during the load of the small routine page, obtains and open up Before showing the skeleton screen of small routine, since the file of the small routine page and corresponding skeleton screen individually stores, therefore, it is necessary to elder generations The mapping relation information of the file of the small routine page according to the pre-stored data and corresponding skeleton screen, finds the page currently loaded The file of the corresponding skeleton screen in face, and the file of skeleton screen is shown, to realize natural and tripping by skeleton screen It is transitioned into the display page really loaded, user is avoided and generates impatience, improve the satisfaction of user.
In order to realize above-described embodiment, the present invention also proposes a kind of distributing device of small routine.
Fig. 4 is a kind of structural schematic diagram of the distributing device of small routine provided in an embodiment of the present invention.
As shown, the device includes: to obtain module 41, operation module 42, generation module 43 and release module 44.
Module 41 is obtained, for obtaining the service logic of small routine to be released.
Module 42 is run, for running service logic to obtain the small routine page.
Generation module 43, for generating the file of skeleton screen according to the small routine page.
Release module 44, for issuing the service logic of small routine and the file packing of skeleton screen.
Further, in a kind of possible implementation of the embodiment of the present invention, above-mentioned operation module 42 is specific to use In:
Service logic is run using developer's tool, in operation to preview link or Webization publication link, according to industry Business logic, preview obtain the small routine page.As a kind of possible implementation, above-mentioned generation module 43 is specifically used for:
In preview link, or in Webization publication link, according to the small routine page, generate the file of skeleton screen.
As a kind of possible implementation, the file of skeleton screen, comprising: the html file and the bone of the skeleton screen The CSS file of frame screen, above-mentioned generation module 43, is specifically also used to:
By text, picture and the customized label in the small routine page, corresponding placeholder is replaced with, obtains skeleton screen It shows content, according to the displaying content of the skeleton screen, generates the html file of the skeleton screen and the CSS text of the skeleton screen Part.
As a kind of possible implementation, above-mentioned release module 44 is specifically used for:
According to the mark of the page iden-tity of the small routine page and corresponding skeleton screen, mapping relation information is generated, mapping is closed Be information, the file of skeleton screen and small routine service logic packing issued.
It should be noted that the explanation of the aforementioned dissemination method embodiment to small routine is also applied for the embodiment Distributing device, principle is identical, and details are not described herein again.
In the distributing device of the small routine of the embodiment of the present invention, the service logic of small routine to be released is obtained, runs business Logic, according to the small routine page, generates the file of skeleton screen, by the service logic and skeleton of small routine to obtain the small routine page The file packing of screen is issued, and by obtaining the service logic of small routine to be released, is carried out preview to service logic and is obtained Preview interface automatically generates the file of corresponding skeleton screen according to preview page, without writing manually, improves efficiency for issuing, It reduces costs.
Based on the above embodiment, the embodiment of the invention also provides a kind of running gears of small routine.
Fig. 5 is a kind of structural schematic diagram of the running gear of small routine provided by the embodiment of the present invention, as shown in figure 5, The device includes: to obtain module 51, installation module 52, execution module 53, display module 54, processing module 55 and switching module 56。
Module 51 is obtained, for obtaining the packaging file of small routine.
Module 52 is installed, for installing packaging file, to obtain the service logic of small routine and the file of skeleton screen.
Execution module 53 obtains the static resource of the small routine page, and according to service logic for executing service logic To the dynamic resource of the server request small routine page.
Display module 54, for according to the file of the skeleton screen, showing institute during waiting dynamic resource to be obtained State the displaying content of skeleton screen.
Processing module 55, for generating small routine page according to static resource and dynamic resource after getting dynamic resource Face.
Switching module 56, for the displaying content switching of the skeleton screen to be shown as the small routine page.
As a kind of possible implementation, the device further include: determining module.
Determining module, for determining the corresponding skeleton screen of the small routine page according to the mapping relation information in packaging file File.
It should be noted that the explanation of the aforementioned operation method embodiment to small routine is also applied for the embodiment Running gear, principle is identical, and details are not described herein again.
In the small routine running gear of the embodiment of the present invention, by obtaining the packaging file of small routine, small routine is carried out Installation and operation obtains the service logic of small routine and the file of skeleton screen, according to the service logic of small routine and skeleton screen File shows the corresponding skeleton screen of the small routine page in the page loading procedure of small routine, until when page load is completed, The small routine page is generated according to the dynamic resource of acquisition and static resource, and the displaying content of the skeleton screen of current presentation is switched It is shown, is realized in small routine page loading procedure for the small routine page, avoid user too long because of page load duration And the page is left, lead to customer churn, the poor technical problem of user satisfaction.
In order to realize above-described embodiment, the embodiment of the present invention also proposed a kind of electronic equipment, including memory, processor And the computer program that can be run on a memory and on a processor is stored, when the processor executes described program, realize Dissemination method described in the dissemination method embodiment of small routine as the aforementioned, alternatively, realizing the operation side of small routine as the aforementioned Operation method described in method embodiment.
Fig. 6 shows the block diagram for being suitable for the example electronic device for being used to realize the application embodiment.The electricity that Fig. 6 is shown Sub- equipment 12 is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 12 is showed in the form of universal computing device.The component of electronic equipment 12 may include But be not limited to: one or more processor or processing unit 16, system storage 28, connect different system components (including System storage 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component Interconnection;Hereinafter referred to as: PCI) bus.
Electronic equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be electric The usable medium that sub- equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
Memory 28 may include the computer system readable media of form of volatile memory, such as random access memory Device (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Electronic equipment 12 can be into One step includes other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, it deposits Storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 6 do not show, commonly referred to as " hard drive Device ").Although being not shown in Fig. 6, the disk for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided and driven Dynamic device, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read Only Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiments described herein.
Electronic equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.) Communication, can also be enabled a user to one or more equipment interact with the electronic equipment 12 communicate, and/or with make the electricity Any equipment (such as network interface card, modem etc.) that sub- equipment 12 can be communicated with one or more of the other electronic equipment Communication.This communication can be carried out by input/output (I/O) interface 22.Also, electronic equipment 12 can also be suitable by network Orchestration 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as: LAN), wide area network (Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.As shown, network is suitable Orchestration 20 is communicated by bus 18 with other modules of electronic equipment 12.It should be understood that although not shown in the drawings, can be in conjunction with electricity Sub- equipment 12 uses other hardware and/or software module, including but not limited to: microcode, device driver, redundancy processing are single Member, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the method referred in previous embodiment.
In order to realize above-described embodiment, the embodiment of the present invention also proposes a kind of non-transitorycomputer readable storage medium, It is stored thereon with computer program, which realizes the dissemination method embodiment institute of small routine as the aforementioned when being executed by processor The dissemination method stated, alternatively, realizing operation method described in the operation method embodiment of small routine as the aforementioned.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (15)

1. a kind of dissemination method of small routine, which is characterized in that the described method comprises the following steps:
Obtain the service logic of small routine to be released;
The service logic is run to obtain the small routine page;
According to the small routine page, the file of skeleton screen is generated;
The service logic of the small routine and the file packing of the skeleton screen are issued.
2. dissemination method according to claim 1, which is characterized in that the operation service logic is to obtain small routine The page, comprising:
The service logic is run using developer's tool;
In operation to preview link or Webization publication link, according to the service logic, preview obtains the small routine page;
It is described according to the small routine page, generate the file of skeleton screen, comprising:
In the preview link, or in Webization publication link, according to the small routine page, generate the text of skeleton screen Part.
3. dissemination method according to claim 1, which is characterized in that the file of the skeleton screen, comprising: the skeleton screen Html file and the skeleton screen CSS file.
4. dissemination method according to claim 3, which is characterized in that it is described according to the small routine page, generate skeleton The file of screen, comprising:
By text, picture and the customized label in the small routine page, corresponding placeholder is replaced with, obtains the skeleton The displaying content of screen;
According to the displaying content of the skeleton screen, the html file of the skeleton screen and the CSS file of the skeleton screen are generated.
5. dissemination method according to claim 1-4, which is characterized in that the business by the small routine is patrolled It collects and is issued with the packing of the file of the skeleton screen, comprising:
According to the mark of the page iden-tity of the small routine page and corresponding skeleton screen, mapping relation information is generated;
The mapping relation information, the file of the skeleton screen and the service logic packing of the small routine are issued.
6. a kind of operation method of small routine, which is characterized in that the described method comprises the following steps:
Obtain the packaging file of small routine;
The packaging file is installed, to obtain the service logic of small routine and the file of skeleton screen;
The service logic is executed, obtains the static resource of the small routine page, and ask to server according to the service logic Seek the dynamic resource for obtaining the small routine page;
During waiting dynamic resource to be obtained, according to the file of the skeleton screen, the displaying of the skeleton screen is shown Content;
After getting the dynamic resource, the small routine page is generated according to the static resource and the dynamic resource;
The displaying content switching of the skeleton screen is shown as the small routine page.
7. operation method according to claim 6, which is characterized in that the file according to the skeleton screen shows institute Before the displaying content for stating skeleton screen, further includes:
According to the mapping relation information in the packaging file, the file of the corresponding skeleton screen of the small routine page is determined.
8. a kind of distributing device of small routine, which is characterized in that described device includes:
Module is obtained, for obtaining the service logic of small routine to be released;
Module is run, for running the service logic to obtain the small routine page;
Generation module, for generating the file of skeleton screen according to the small routine page;
Release module, for issuing the service logic of the small routine and the file packing of the skeleton screen.
9. distributing device according to claim 8, which is characterized in that the operation module is specifically used for:
The service logic is run using developer's tool;
In operation to preview link or Webization publication link, according to the service logic, preview obtains the small routine page;
The generation module, is specifically used for: in the preview link, or in Webization publication link, according to the little Cheng The sequence page generates the file of skeleton screen.
10. dissemination method according to claim 8, which is characterized in that the file of the skeleton screen, comprising: the skeleton The CSS file of the html file of screen and the skeleton screen;The generation module, is specifically used for:
By text, picture and the customized label in the small routine page, corresponding placeholder is replaced with, obtains the skeleton The displaying content of screen;
According to the displaying content of the skeleton screen, the html file of the skeleton screen and the CSS file of the skeleton screen are generated.
11. according to the described in any item distributing devices of claim 8-10, which is characterized in that the release module is specifically used for:
According to the mark of the page iden-tity of the small routine page and corresponding skeleton screen, mapping relation information is generated;
The mapping relation information, the file of the skeleton screen and the service logic packing of the small routine are issued.
12. a kind of running gear of small routine, which is characterized in that described device includes:
Module is obtained, for obtaining the packaging file of small routine;
Module is installed, for installing the packaging file, to obtain the service logic of small routine and the file of skeleton screen;
Execution module obtains the static resource of the small routine page, and patrol according to the business for executing the service logic Collect the dynamic resource to the small routine page described in server request;
Display module, for during waiting dynamic resource to be obtained, according to the file of the skeleton screen, described in display The displaying content of skeleton screen;
Processing module, for generating institute according to the static resource and the dynamic resource after getting the dynamic resource State the small routine page;
Switching module, for the displaying content switching of the skeleton screen to be shown as the small routine page.
13. running gear according to claim 12, which is characterized in that described device, further includes:
Determining module, for determining the corresponding bone of the small routine page according to the mapping relation information in the packaging file Frame screen.
14. a kind of electronic equipment, which is characterized in that on a memory and can be in processor including memory, processor and storage The computer program of upper operation when the processor executes described program, realizes such as little Cheng as claimed in any one of claims 1 to 5 The dissemination method of sequence, alternatively, realizing the operation method of small routine as claimed in claims 6 or 7.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The dissemination method such as small routine as claimed in any one of claims 1 to 5 is realized when execution, alternatively, realizing such as claim 6 or 7 institutes The operation method for the small routine stated.
CN201910410366.9A 2019-05-17 2019-05-17 Method and device for issuing and running applet Active CN110187913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910410366.9A CN110187913B (en) 2019-05-17 2019-05-17 Method and device for issuing and running applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910410366.9A CN110187913B (en) 2019-05-17 2019-05-17 Method and device for issuing and running applet

Publications (2)

Publication Number Publication Date
CN110187913A true CN110187913A (en) 2019-08-30
CN110187913B CN110187913B (en) 2023-06-09

Family

ID=67716533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910410366.9A Active CN110187913B (en) 2019-05-17 2019-05-17 Method and device for issuing and running applet

Country Status (1)

Country Link
CN (1) CN110187913B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569108A (en) * 2019-09-04 2019-12-13 腾讯科技(深圳)有限公司 Method for creating execution environment of mini-game virtual machine and related product
CN111008019A (en) * 2019-12-06 2020-04-14 北京百度网讯科技有限公司 Web running method, device, equipment and medium of small program
CN111222062A (en) * 2020-01-09 2020-06-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
CN111352627A (en) * 2020-02-27 2020-06-30 政采云有限公司 Page skeleton screen generation method, device, equipment and readable storage medium
CN111506300A (en) * 2020-04-22 2020-08-07 上海极链网络科技有限公司 Applet generation method, device, equipment and storage medium
CN111506387A (en) * 2020-03-02 2020-08-07 百度在线网络技术(北京)有限公司 Page pre-rendering method and device, electronic equipment and storage medium
CN111522599A (en) * 2020-04-13 2020-08-11 百度在线网络技术(北京)有限公司 Method and apparatus for transmitting information
CN111552473A (en) * 2020-04-27 2020-08-18 腾讯科技(深圳)有限公司 Application processing method, device and equipment
CN112131535A (en) * 2020-09-21 2020-12-25 厦门南讯股份有限公司 Integrated small program authorization method for multi-deployment environment
CN112307385A (en) * 2020-10-22 2021-02-02 北京达佳互联信息技术有限公司 Webpage data loading and processing method and device, electronic equipment and storage medium
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112650540A (en) * 2019-09-26 2021-04-13 华为技术有限公司 Method for starting fast application and related device
CN112786034A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
WO2023178952A1 (en) * 2022-03-24 2023-09-28 中国银联股份有限公司 Method and apparatus for integrating native program with applet, and device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177175A1 (en) * 2001-04-26 2003-09-18 Worley Dale R. Method and system for display of web pages
CN109254773A (en) * 2018-09-19 2019-01-22 广州视源电子科技股份有限公司 Skeleton page generation method, device, equipment and storage medium
CN109298864A (en) * 2018-08-23 2019-02-01 深圳点猫科技有限公司 The method and electronic equipment of automation generation project skeleton screen under teaching platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030177175A1 (en) * 2001-04-26 2003-09-18 Worley Dale R. Method and system for display of web pages
CN109298864A (en) * 2018-08-23 2019-02-01 深圳点猫科技有限公司 The method and electronic equipment of automation generation project skeleton screen under teaching platform
CN109254773A (en) * 2018-09-19 2019-01-22 广州视源电子科技股份有限公司 Skeleton page generation method, device, equipment and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
BARNETT_Y: "一种自动化生成骨架屏的方案", 《HTTPS://BLOG.CSDN.NET/SINA_17775997/ARTICLE/DETAILS/83443744》 *
BARNETT_Y: "一种自动化生成骨架屏的方案", 《HTTPS://BLOG.CSDN.NET/SINA_17775997/ARTICLE/DETAILS/83443744》, 27 October 2018 (2018-10-27), pages 1 - 16 *
HTML5: "前端骨架屏方案小结", 《HTTPS://WWW.JQHTML.COM/17952.HTML》 *
HTML5: "前端骨架屏方案小结", 《HTTPS://WWW.JQHTML.COM/17952.HTML》, 30 October 2018 (2018-10-30), pages 1 - 3 *
极乐君: "小程序远程图片资源按需预加载", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/43719598》 *
极乐君: "小程序远程图片资源按需预加载", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/43719598》, 4 September 2018 (2018-09-04), pages 1 - 7 *

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569108B (en) * 2019-09-04 2021-04-30 腾讯科技(深圳)有限公司 Method for creating execution environment of mini-game virtual machine and related product
CN110569108A (en) * 2019-09-04 2019-12-13 腾讯科技(深圳)有限公司 Method for creating execution environment of mini-game virtual machine and related product
CN112650540B (en) * 2019-09-26 2022-07-22 华为技术有限公司 Method for starting fast application and related device
CN112650540A (en) * 2019-09-26 2021-04-13 华为技术有限公司 Method for starting fast application and related device
CN112786034B (en) * 2019-11-08 2023-04-07 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
CN112786034A (en) * 2019-11-08 2021-05-11 阿里巴巴集团控股有限公司 Voice interaction method, device, equipment and storage medium
CN111008019A (en) * 2019-12-06 2020-04-14 北京百度网讯科技有限公司 Web running method, device, equipment and medium of small program
CN111008019B (en) * 2019-12-06 2021-07-02 北京百度网讯科技有限公司 Web running method, device, equipment and medium of small program
CN111222062A (en) * 2020-01-09 2020-06-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
US11461111B2 (en) 2020-01-09 2022-10-04 Baidu Online Network Technology (Beijing) Co., Ltd. Method for running applets, and electronic device
WO2021139127A1 (en) * 2020-01-09 2021-07-15 百度在线网络技术(北京)有限公司 Method and apparatus for running mini program, electronic device, and storage medium
CN111222062B (en) * 2020-01-09 2021-06-01 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
CN111352627B (en) * 2020-02-27 2023-04-07 政采云有限公司 Page skeleton screen generation method, device, equipment and readable storage medium
CN111352627A (en) * 2020-02-27 2020-06-30 政采云有限公司 Page skeleton screen generation method, device, equipment and readable storage medium
CN111506387B (en) * 2020-03-02 2023-09-22 百度在线网络技术(北京)有限公司 Page prerendering method and device, electronic equipment and storage medium
US11829436B2 (en) 2020-03-02 2023-11-28 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus of pre-rendering page, electronic device, and storage medium
CN111506387A (en) * 2020-03-02 2020-08-07 百度在线网络技术(北京)有限公司 Page pre-rendering method and device, electronic equipment and storage medium
US20220308900A1 (en) 2020-03-02 2022-09-29 Baidu Online Network Technology (Beijing) Co., Ltd. Method and apparatus of pre-rendering page, electronic device, and storage medium
CN111522599A (en) * 2020-04-13 2020-08-11 百度在线网络技术(北京)有限公司 Method and apparatus for transmitting information
CN111506300A (en) * 2020-04-22 2020-08-07 上海极链网络科技有限公司 Applet generation method, device, equipment and storage medium
CN111552473A (en) * 2020-04-27 2020-08-18 腾讯科技(深圳)有限公司 Application processing method, device and equipment
US20220253588A1 (en) * 2020-04-27 2022-08-11 Tencent Technology (Shenzhen) Company Limited Page processing method and related apparatus
WO2021218327A1 (en) * 2020-04-27 2021-11-04 腾讯科技(深圳)有限公司 Page processing method and related device
TWI808393B (en) * 2020-04-27 2023-07-11 大陸商騰訊科技(深圳)有限公司 Page processing method, device, apparatus and storage medium
CN111552473B (en) * 2020-04-27 2024-02-09 腾讯科技(深圳)有限公司 Application processing method, device and equipment
CN112131535B (en) * 2020-09-21 2022-07-15 厦门南讯股份有限公司 Integrated small program authorization method for multi-deployment environment
CN112131535A (en) * 2020-09-21 2020-12-25 厦门南讯股份有限公司 Integrated small program authorization method for multi-deployment environment
CN112307385A (en) * 2020-10-22 2021-02-02 北京达佳互联信息技术有限公司 Webpage data loading and processing method and device, electronic equipment and storage medium
CN112579092B (en) * 2020-12-07 2022-04-08 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
WO2023178952A1 (en) * 2022-03-24 2023-09-28 中国银联股份有限公司 Method and apparatus for integrating native program with applet, and device and medium

Also Published As

Publication number Publication date
CN110187913B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN110187913A (en) Publication, operation method and the device of small routine
KR101686691B1 (en) Hierarchically-organized control galleries
US10740945B2 (en) Animation control methods and systems
EP2805258B1 (en) Low resolution placeholder content for document navigation
US9122767B2 (en) Method and apparatus for pre-rendering expected system response
RU2328034C2 (en) Method and system of operations comparison with to semantic marks in electronic documents
TWI376609B (en) Method and apparatus for viewing and interacting with a spreadsheet from within a web browser
JP5550636B2 (en) Techniques for editing documents using latent transfer indication
US6873337B1 (en) Application programming interface for changing the visual style
US6957394B1 (en) Rendering controls of a web page according to a theme
US20090031227A1 (en) Intelligent screen capture and interactive display tool
US20070220035A1 (en) Generating user interface using metadata
US20050091672A1 (en) Facilitating presentation functionality through a programming interface media namespace
US20110191671A1 (en) Website Font Previewing
US7412661B2 (en) Method and system for changing visual states of a toolbar
US20030142141A1 (en) Displaying specified resource usage
US20120204102A1 (en) Computer system and method for generating client-side software demonstrations
CN110347349A (en) The method, apparatus and computer equipment of specified content are printed in browser
TW201203082A (en) Client application and web page integration
JP4743390B2 (en) Information providing apparatus, control method, and program
CN110532488A (en) Webpage rendering method, device and electronic equipment
US20120084161A1 (en) Displaying advertising content in a shell interface
IL189422A (en) Script markup
CN110020305A (en) Webpage loading method, device, computer equipment and storage medium
CN109740140A (en) Page composing method, device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant