CN110321122A - The development approach and relevant device of browser application - Google Patents

The development approach and relevant device of browser application Download PDF

Info

Publication number
CN110321122A
CN110321122A CN201910441756.2A CN201910441756A CN110321122A CN 110321122 A CN110321122 A CN 110321122A CN 201910441756 A CN201910441756 A CN 201910441756A CN 110321122 A CN110321122 A CN 110321122A
Authority
CN
China
Prior art keywords
browser application
application
service request
server
database server
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.)
Pending
Application number
CN201910441756.2A
Other languages
Chinese (zh)
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201910441756.2A priority Critical patent/CN110321122A/en
Publication of CN110321122A publication Critical patent/CN110321122A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of development approach of browser application and relevant devices.The described method includes: receiving a creation instruction creation application server and database server;Establish the MVC framework mode of browser application;Using the application server as the controller of MVC framework mode, and the service request that client terminal is sent is obtained by the application server;Judge whether the service request is correct;When the service request is correct, the service request is sent to the database server, and inquires data resource corresponding with the service request in the database server;Obtain the data resource that the database server returns, the data resource is encapsulated as to the model of MVC framework mode, and the model is back to the browser application to control the page of browser application browser application according to the model rendering when receiving the model.The present invention improves the scalability of Development of Web Browser.

Description

The development approach and relevant device of browser application
Technical field
The present invention relates to field of computer technology, and in particular to a kind of development approach and relevant device of browser application.
Background technique
Existing browser amount of access accounts for relatively high, and history function largely uses JSP mode, and technology is more outmoded, causes Back-end services pressure is larger.In addition, the ability that existing browser is extended update is poor, the exploitation effect of browser is affected Rate.
Summary of the invention
In view of the foregoing, it is necessary to propose development approach, device, electronic equipment and the computer of a kind of browser application Readable storage medium storing program for executing promotes the scalability of browser to facilitate developer to be extended, update to the browser.
The first aspect of the application provides a kind of development approach of browser application, which comprises
Receive a creation instruction creation application server and database server;
Establish the MVC framework mode of browser application, wherein the MVC framework mode includes model, the page, controller;
Using the application server as the controller of the MVC framework mode, and obtained by the application server The service request that client terminal is sent;
Judge whether the service request is correct;
When the service request is correct, the service request is sent to the database server, and in the number According to inquiry data resource corresponding with the service request in the server of library;
The data resource that the database server returns is obtained, the data resource is encapsulated as the model, and will The model is back to the browser application to control the browser application when receiving the model according to the mould Type renders the page of the browser application.
Preferably, it is described judge the service request whether correctly include:
Determine that the service request is correct when active user has the operating right of the service request.
Preferably, the method also includes:
Obtain the power system capacity of the browser application, and according to the power system capacity of acquisition be arranged the application server and The resource of the database server, the resource for being provided with the application server and the database server includes for institute It states application server and CPU and memory capacity is respectively configured in the database server.
Preferably, the method also includes:
The development task of the browser application is executed by gulp the build tool.
Preferably, the development task for executing the browser application by gulp the build tool includes:
MD5 algorithm process, which is carried out, by all exploitation files of the gulp the build tool to the browser application calculates institute The MD5 value of exploitation file is stated, whether identical, and by the identical exploitation file of MD5 value if detecting the corresponding MD5 value of the exploitation file Carry out resource merging.
Preferably, the method also includes:
Verification detection is carried out to the size of the exploitation file for the browser application for uploading to cloud platform, is detecting described open The size of fat file stores the exploitation file to cloud platform when being no more than preset value, and is detecting the exploitation file Size forbids the upload of the exploitation file when being more than the preset value.
Preferably, the method also includes:
Inspection operation is carried out to the code syntax format of the exploitation file of the browser application, and described clear checking Prompting message is issued when the code syntax format error of the exploitation file of device of looking at application.
The second aspect of the application provides a kind of development device of browser application, and described device includes:
Creation module, for receiving a creation instruction creation application server and database server;
Mode division module, for establishing the MVC framework mode of browser application, wherein the MVC framework mode includes Model, the page, controller;
Module is obtained, is answered for using the application server as the controller of the MVC framework mode, and by described The service request that client terminal is sent is obtained with server;
Judgment module, for judging whether the service request is correct;
Enquiry module, for when the service request is correct, the service request to be sent to the database service Device, and data resource corresponding with the service request is inquired in the database server;
Processing module, the data resource returned for obtaining the database server, the data resource is encapsulated as The model, and the model is back to the browser application to control the browser application and receive the model When the browser application according to the model rendering the page.
The third aspect of the application provides a kind of electronic equipment, and the electronic equipment includes processor, and the processor is used The development approach of the browser application is realized when executing the computer program stored in memory.
The fourth aspect of the application provides a kind of computer readable storage medium, is stored thereon with computer program, described The development approach of the browser application is realized when computer program is executed by processor.
Application server and database server are connected by the MVC framework mode in the present invention, and pass through application clothes The service request of business device processing user can be supported largely to look forward to realize the browser application of browser/server structure Industry is used in conjunction with, and the browser application is by separating the service logic of the page presentation of front end and rear end, significantly Ground improves scalability, effectively alleviates the cost of system maintenance and upgrading.
Detailed description of the invention
Fig. 1 is the flow chart of the development approach of browser application in an embodiment of the present invention.
Fig. 2 is the application environment schematic diagram of the development approach of browser application in an embodiment of the present invention.
Fig. 3 is the structure chart of the development device of browser application in an embodiment of the present invention.
Fig. 4 is the schematic diagram of electronic equipment preferred embodiment of the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Preferably, the development approach of browser application of the invention is applied in one or more electronic equipment.It is described Electronic equipment be it is a kind of can be according to the instruction for being previously set or store, automatic progress numerical value calculating and/or information processing are set Standby, hardware includes but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment can be the calculating such as desktop PC, laptop, tablet computer and cloud server Equipment.The equipment can carry out man-machine friendship by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with user Mutually.
Embodiment 1
Fig. 1 is the flow chart of the development approach preferred embodiment of browser application of the present invention.It is described according to different requirements, The sequence of step can change in flow chart, and certain steps can be omitted.
Step S11 receives a creation instruction creation application server 21 and database server 22.
Fig. 2 is the application environment schematic diagram of browser application development approach of the present invention.As shown in fig.2, the browser Application and development method is applied in cloud platform 2.The cloud platform 2 is communicated to connect by a network 3 with client terminal 1.The cloud is flat Platform 2 receives creation instruction creation application server 21 and database server 22.In present embodiment, the network 3 be can be Cable network, is also possible to wireless network, such as radio, Wireless Fidelity (Wireless Fidelity, WIFI), honeycomb, defends Star, broadcast etc..The cloud platform 2 is Cloud Server.The client terminal 1 can be smart phone, tablet computer, computer etc. Terminal device.The application server 21 is tomcat server, and the database server 22 is PostgreSQL database. In present embodiment, the dynamic expansion frame of cloud platform 2 may be implemented by establishing application server 21 and database server 22 Frame.
Step S12 establishes MVC (Model-View-Controller) framework mode of browser application, wherein described MVC framework mode includes model (Model), the page (View), controller (Controller).In present embodiment, by building The MVC framework mode for founding the browser application realizes Functional division of the browser application in network system.Wherein, model Function is used to handle the service logic between the page and controller, and the function of the page is controlled for showing data on the client terminal 1 The function of device processed is used to receive the input request of user and the calling model rendering page.
Step S13, the controller by the application server 21 as MVC framework mode, and pass through the application service Device 21 obtains the service request that the client terminal 1 is sent.
In present embodiment, the cloud platform 2 using application server 21 as MVC framework mode in controller, with visitor Browser application in family terminal 1 is as the page in the MVC framework mode.When user opens browsing by client terminal 1 When browser application described in device application access, the browser application loads html static page first, loads angular js The service request is sent to the application server 21 to obtain the service request by library.
In present embodiment, the function of the page executes on the client terminal 1, and the function of controller and the function of model are in cloud Executed on application server 21 on platform 2 so that user access it is described clear when the browser application of the client terminal 1 The page presentation of device of looking at application and the service logic of application server 21 are separated, to reach the maximization of browser application Hierarchical design.
Step S14, judge whether the service request is correct.
In a specific embodiment, the application server 21 is by judging whether active user has the service request Operating right it is whether correct to verify the service request.Wherein, when active user has the operating rights of the service request Determine that the service request is correct in limited time.In present embodiment, when the service request is correct execute step S15, otherwise after It is continuous to execute step S14.
Step S15, when the service request is correct, the service request is sent to the database server 22, And data resource corresponding with the service request is inquired in the database server 22.
In present embodiment, after the service request reaches the controller, the controller verifies the business The reasonability of request.When the service request is reasonable, the service request is forwarded to database server by the controller 22, data resource corresponding with the service request is obtained to access the database server 22.
Step S16, the data resource that the database server 22 returns is obtained, the data resource is encapsulated as described Model, and the model is back to the browser application to control browser application root when receiving the model According to the page of browser application described in the model rendering.
In present embodiment, the resource that the database server 22 will acquire is back to the controller, the control After device processed receives the data resource, it is encapsulated into the model, and the model of encapsulation is back to described clear Look at device application, the i.e. page in MVC framework mode.After the browser application receives the model, pass through angular The page that the library js is answered using the entire browser of the model rendering, to complete the service request operation.
In present embodiment, the method also includes: the power system capacity of the browser application is obtained, and according to acquisition The resource of the application server 21 and database server 22 is arranged in power system capacity.
In present embodiment, after creation application server 21 and database server 22, the cloud platform 2 is according to described The resource of the application server 21 and database server 22 is arranged in the power system capacity demand of browser application.This embodiment party In formula, the resource that the application server 21 and database server 22 is arranged includes for the application server 21 and database CPU and memory capacity is respectively configured in server 22.In a specific embodiment, the power system capacity for obtaining browser application The resource that the application server 21 and database server 22 are arranged according to the power system capacity of acquisition includes: to obtain the browsing The performance parameter of device application;The power system capacity of the browser application is estimated according to the performance parameter;And according to acquisition The CPU and memory capacity of the application server 21 and database server 22 is arranged in power system capacity.It is described in present embodiment The performance parameter of browser application include but is not limited to one of amount of access, number of concurrent, business datum amount, number of users or Any combination thereof.The power system capacity of the browser is estimated in present embodiment based on the performance parameter of browser application, and The application server 21 is configured based on the power system capacity and database server 22 improves the steady of browser application exploitation Qualitative and scalability.
In present embodiment, by creating application server 21 and database server 22 in cloud platform 2, and according to institute The resource of the application server and database server is arranged in the power system capacity for stating browser application;Then it establishes described clear It lookes at the MVC framework mode of device, passes through the MVC framework mode and connect the application server 21 and database server 22, place Manage the service request of user;To realize the browser application of browser/server structure, being total to for a large amount of enterprises can be supported With use, and the browser application is greatly improved by separating the service logic of the page presentation of front end and rear end Scalability, effectively alleviates the cost of system maintenance and upgrading.
In present embodiment, the method also includes: the development task of browser application is executed by gulp the build tool.
Specifically, in one embodiment, the development task packet that browser application is executed by gulp the build tool It includes: css, js file of browser application being compressed by gulp the build tool and merged to reduce browser application Http request and diminution file size.In another embodiment, described that browser application is executed by gulp the build tool Whether development task includes: identical by gulp the build tool detection exploitation file, and is detecting the exploitation file Resource merging is carried out to identical exploitation file when identical.Specifically, the cloud platform 2 is by gulp the build tool to browser All exploitation files of application carry out MD5 (Message Digest Algotithm 5, Message-Digest Algorithm 5) algorithm process The MD5 value for calculating each exploitation file, it is whether identical and MD5 value is identical to detect the corresponding MD5 value of the exploitation file It develops file and carries out resource merging.In present embodiment, the MD5 cryptographic Hash of the exploitation file is calculated by MD5 algorithm, wherein The hashed value and different exploitation file that the MD5 cryptographic Hash is one 128 be by the calculated MD5 cryptographic Hash of MD5 algorithm Different.In this way, the cloud platform 2 is by comparing the corresponding MD5 cryptographic Hash of two exploitation files, and MD5 cryptographic Hash is identical Exploitation file be determined as identical exploitation file.
In present embodiment, the method also includes: to the exploitation file of the browser application that uploads in cloud platform 2 Size carries out verification detection, uploads to the exploitation file when detecting that the size of the exploitation file is no more than preset value Cloud platform 2, and forbid the upload for developing file when detecting that the size of the exploitation file is more than preset value.
In one embodiment, after the completion of the project development of browser application, the cloud platform 2 passes through Node script pair The size for the exploitation file being submitted in cloud platform 2 is checked, and is worked as and detected that the size of the exploitation file is no more than in advance If the exploitation file is submitted to cloud platform 2, and the taboo when detecting that the size of the exploitation file is more than preset value when value The only upload of the exploitation file, so makes to be submitted to the relatively great development file in cloud platform 2 and is prevented from uploading.
In present embodiment, the method also includes: the code syntax format progress to the exploitation file of browser application It checks operation, and issues prompting message in the code syntax format error for the exploitation file for checking browser application.
In present embodiment, the cloud platform 2 is by Eslint static check tool to the code language of the file of browser Method format is checked so that whether Validation Code is correct, and the sending in the code syntax format error for checking browser file Prompting message.
Embodiment 2
Fig. 3 is the structure chart of the development device 40 of browser application in an embodiment of the present invention.
In some embodiments, the development device 40 of the browser application is run in electronic equipment.The browser The development device 40 of application may include multiple functional modules as composed by program code segments.The exploitation of the browser application The program code of each program segment in device 40 can store in memory, and as performed by least one processor.
In the present embodiment, function of the development device 40 of the browser application of the electronic equipment according to performed by it can To be divided into multiple functional modules.As shown in fig.3, the development device 40 of the browser application may include creation module 401, mode division module 402, acquisition module 403, judgment module 404, enquiry module 405, processing module 406 and setup module 407.The so-called module of the present invention, which refers to, a kind of performed by least one processor and can complete fixed function Series of computation machine program segment, storage is in memory.It in some embodiments, will be subsequent about the function of each module It is described in detail in embodiment.
The creation module 401 is for receiving a creation instruction creation application server 21 and database server 22.
In present embodiment, the dynamic of cloud platform 2 may be implemented by establishing application server 21 and database server 22 State extension framework.
The mode division module 402 is used to establish MVC (Model-View-Controller) frame of browser application Mode, wherein the MVC framework mode includes model (Model), the page (View), controller (Controller).This implementation In mode, the mode division module 402 realizes that browser application exists by establishing the MVC framework mode of the browser application Functional division in network system.Wherein, the function of model is used to handle the service logic between the page and controller, the page Function for showing that data, the function of controller are used to receive the input request of user and calling model wash with watercolours on the client terminal 1 Contaminate the page.
The controller that module 403 is obtained by the application server 21 as MVC framework mode, and answered by described The service request that the client terminal 1 is sent is obtained with server 21.
In present embodiment, it is described obtain module 403 using application server 21 as MVC framework mode in controller, The page in using the browser application on client terminal 1 as the MVC framework mode.When user is opened by client terminal 1 When browser application accesses the browser application, the browser application loads html static page first, loads angular The service request is sent to the application server 21 to obtain the service request by the library js.
In present embodiment, the function of the page executes on the client terminal 1, and the function of controller and the function of model are in cloud Executed on application server 21 on platform 2 so that user access it is described clear when the browser application of the client terminal 1 The page presentation of device of looking at application and the service logic of application server 21 are separated, to reach the maximization of browser application Hierarchical design.
The judgment module 404 is for judging whether the service request is correct.
In a specific embodiment, the application server 21 is by judging whether active user has the service request Operating right it is whether correct to verify the service request.Wherein, as the behaviour for judging that active user has the service request Make to determine that the service request is correct when permission.
The enquiry module 405 is used for when the service request is correct, and the service request is sent to the data Library server 22, and data resource corresponding with the service request is inquired in the database server 22.
In present embodiment, after the service request reaches the controller, the controller verifies the business The reasonability of request.When the service request is reasonable, the service request is forwarded to database server by the controller 22, data resource corresponding with the service request is obtained to access the database server 22.
The processing module 406 obtains the data resource that the database server 22 returns, and the data resource is sealed Dress is the model, and the model is back to the browser application with control the browser application receive it is described The page of the browser application according to model rendering when model.
In present embodiment, the resource that the database server 22 will acquire is back to the controller, the control After device processed receives the data resource, it is encapsulated into the model, and the model of encapsulation is back to described clear Look at device application, the i.e. page in MVC framework mode.After the browser application receives the model, pass through angular The page that the library js is answered using the entire browser of the model rendering, to complete the service request operation.
In present embodiment, the setup module 407 is used to obtain the power system capacity of the browser application, and according to obtaining The resource of the application server 21 and database server 22 is arranged in the power system capacity taken.
In present embodiment, the resource that the application server 21 and database server 22 is arranged includes for the application CPU and memory capacity is respectively configured in server 21 and database server 22.In a specific embodiment, the acquisition browsing The resource of the application server 21 and database server 22 is arranged according to the power system capacity of acquisition for the power system capacity of device application It include: the performance parameter for obtaining the browser application;The system for estimating the browser application according to the performance parameter Capacity;And the CPU and memory capacity of the application server 21 and database server 22 are set according to the power system capacity of acquisition. In present embodiment, the performance parameter of the browser application includes but is not limited to amount of access, number of concurrent, business datum amount, uses One of amount amount or any combination thereof.It is estimated in present embodiment based on the performance parameter of browser application described clear Look at the power system capacity of device, and the application server 21 configured based on the power system capacity and database server 22 improve it is clear Look at the stability and scalability of device application and development.
In present embodiment, by creating application server 21 and database server 22 in cloud platform 2, and according to institute The resource of the application server and database server is arranged in the power system capacity for stating browser application;Then it establishes described clear It lookes at the MVC framework mode of device, passes through the MVC framework mode and connect the application server 21 and database server 22, place Manage the service request of user;To realize the browser application of browser/server structure, being total to for a large amount of enterprises can be supported With use, and the browser has greatly improved expansion by separating the service logic of the page presentation of front end and rear end Malleability effectively alleviates the cost of system maintenance and upgrading.
In present embodiment, the processing module 406 is also used to execute opening for browser application by gulp the build tool Hair task.
Specifically, in one embodiment, the development task packet that browser application is executed by gulp the build tool It includes: css, js file of browser application being compressed by gulp the build tool and merged to reduce browser application Http request and diminution file size.In another embodiment, described that browser application is executed by gulp the build tool Whether development task includes: identical by gulp the build tool detection exploitation file, and is detecting the exploitation file Resource merging is carried out to identical exploitation file when identical.Specifically, the cloud platform 2 is by gulp the build tool to browser All exploitation files of application carry out MD5 (Message Digest Algotithm 5, Message-Digest Algorithm 5) algorithm process The MD5 value for calculating each exploitation file, it is whether identical and MD5 value is identical to detect the corresponding MD5 value of the exploitation file It develops file and carries out resource merging.In present embodiment, the MD5 cryptographic Hash of the exploitation file is calculated by MD5 algorithm, wherein The hashed value and different exploitation file that the MD5 cryptographic Hash is one 128 be by the calculated MD5 cryptographic Hash of MD5 algorithm Different.In this way, the cloud platform 2 is by comparing the corresponding MD5 cryptographic Hash of two exploitation files, and MD5 cryptographic Hash is identical Exploitation file be determined as identical exploitation file.
In present embodiment, the processing module 406 is also used to the exploitation to the browser application uploaded in cloud platform 2 The size of file carries out verification detection, when detecting that the size of the exploitation file is no more than preset value by the exploitation file Cloud platform 2 is uploaded to, and forbids the upload of the exploitation file when detecting that the size of the exploitation file is more than preset value.
In one embodiment, after the completion of the project development of browser application, the processing module 406 passes through Node foot This checks the size for the exploitation file being submitted in cloud platform 2, and works as and detect that the size of the exploitation file does not surpass The exploitation file is submitted to cloud platform 2 when crossing preset value, and is detecting that the size of the exploitation file is more than preset value When forbid it is described exploitation file upload, so make to be submitted to the relatively great development file in cloud platform 2 and be prevented from uploading.
In present embodiment, the processing module 406 is also used to the code syntax lattice of the exploitation file to browser application Formula carries out inspection operation, and issues in the code syntax format error for the exploitation file for checking browser application and remind letter Breath.
In present embodiment, the processing module 406 is by Eslint static check tool to the generation of the file of browser Code syntax format is checked so that whether Validation Code is correct, and in the code syntax format error for checking browser file Issue prompting message.
Embodiment 3
Fig. 4 is the schematic diagram of 7 preferred embodiment of electronic equipment of the present invention.
The electronic equipment 7 includes memory 71, processor 72 and is stored in the memory 71 and can be described The computer program 73 run on processor 72.The processor 72 realizes above-mentioned browser when executing the computer program 73 Step in the development approach embodiment of application, such as step S11~S16 shown in FIG. 1.Alternatively, the processor 72 executes The function of each module/unit in the development device embodiment of above-mentioned browser application is realized when the computer program 73, such as Module 401~407 in Fig. 3.
Illustratively, the computer program 73 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 72, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, and described instruction section is used In implementation procedure of the description computer program 73 in the electronic equipment 7.For example, the computer program 73 can be by Be divided into creation module 401 in Fig. 3, mode division module 402, obtain module 403, judgment module 404, enquiry module 405, Processing module 406 and setup module 407, each module concrete function is referring to embodiment 2.
The electronic equipment 7 and the cloud platform 2 are same devices.For example, the electronic equipment 7 can be cloud service Device etc. calculates equipment.It will be understood by those skilled in the art that the schematic diagram is only the example of electronic equipment 7, do not constitute Restriction to electronic equipment 7 may include perhaps combining certain components or different than illustrating more or fewer components Component, such as the electronic equipment 7 can also include input-output equipment, network access equipment, bus etc..
Alleged processor 72 can be central processing module (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor 72 is also possible to any conventional processing Device etc., the processor 72 are the control centres of the electronic equipment 7, utilize various interfaces and the entire electronic equipment of connection 7 various pieces.
The memory 71 can be used for storing the computer program 73 and/or module/unit, and the processor 72 passes through Operation executes the computer program and/or module/unit being stored in the memory 71, and calls and be stored in memory Data in 71 realize the various functions of the meter electronic equipment 7.The memory 71 can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area can store according to electronic equipment 7 use created data (such as Audio data, phone directory etc.) etc..In addition, memory 71 may include high-speed random access memory, it can also include non-volatile Property memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other Volatile solid-state part.
If the integrated module/unit of the electronic equipment 7 is realized in the form of software function module and as independent Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, and the computer program is held by processor When row, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, institute Stating computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..It is described Computer-readable medium may include: any entity or device, recording medium, U that can carry the computer program code Disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs It is bright, the content that the computer-readable medium includes can according in jurisdiction make laws and patent practice requirement into Row increase and decrease appropriate, such as do not include electric load according to legislation and patent practice, computer-readable medium in certain jurisdictions Wave signal and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed electronic equipment and method, Ke Yitong Other modes are crossed to realize.For example, electronic equipment embodiment described above is only schematical, for example, the module Division, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in same treatment module It is that modules physically exist alone, can also be integrated in equal modules with two or more modules.Above-mentioned integrated mould Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other modules or step, and odd number is not excluded for plural number.It is stated in electronic equipment claim Multiple modules or electronic equipment can also be implemented through software or hardware by the same module or electronic equipment.The first, the Second-class word is used to indicate names, and is not indicated any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. a kind of development approach of browser application, which is characterized in that the described method includes:
Receive a creation instruction creation application server and database server;
Establish the MVC framework mode of browser application, wherein the MVC framework mode includes model, the page, controller;
Using the application server as the controller of the MVC framework mode, and client is obtained by the application server The service request that terminal is sent;
Judge whether the service request is correct;
When the service request is correct, the service request is sent to the database server, and in the database Data resource corresponding with the service request is inquired in server;
The data resource that the database server returns is obtained, the data resource is encapsulated as the model, and will be described Model is back to the browser application to control the browser application when receiving the model according to the model wash with watercolours Contaminate the page of the browser application.
2. the development approach of browser application as described in claim 1, which is characterized in that described to judge that the service request is It is no correctly to include:
Determine that the service request is correct when active user has the operating right of the service request.
3. the development approach of browser application as described in claim 1, which is characterized in that the method also includes:
It obtains the power system capacity of the browser application, and the application server and described is arranged according to the power system capacity of acquisition The resource of database server, the resource for being provided with the application server and the database server includes answering to be described CPU and memory capacity is respectively configured with server and the database server.
4. the development approach of browser application as described in claim 1, which is characterized in that the method also includes:
The development task of the browser application is executed by gulp the build tool.
5. the development approach of browser application as claimed in claim 4, which is characterized in that described to be held by gulp the build tool The development task of the row browser application includes:
MD5 algorithm process, which is carried out, by all exploitation files of the gulp the build tool to the browser application calculates described open Whether identical the MD5 value of fat file detects the corresponding MD5 value of the exploitation file, and the identical exploitation file of MD5 value is carried out Resource merges.
6. the development approach of browser application as described in claim 1, which is characterized in that the method also includes:
Verification detection is carried out to the size of the exploitation file for the browser application for uploading to cloud platform, is detecting the exploitation text The size of part stores the exploitation file to cloud platform when being no more than preset value, and in the size for detecting the exploitation file Forbid the upload of the exploitation file when more than the preset value.
7. the development approach of browser application as described in claim 1, which is characterized in that the method also includes:
Inspection operation is carried out to the code syntax format of the exploitation file of the browser application, and is checking the browser Prompting message is issued when the code syntax format error of the exploitation file of application.
8. a kind of development device of browser application, which is characterized in that described device includes:
Creation module, for receiving a creation instruction creation application server and database server;
Mode division module, for establishing the MVC framework mode of browser application, wherein the MVC framework mode includes mould Type, the page, controller;
Module is obtained, for using the application server as the controller of the MVC framework mode, and is taken by the application Business device obtains the service request that client terminal is sent;
Judgment module, for judging whether the service request is correct;
Enquiry module, for when the service request is correct, the service request to be sent to the database server, and Data resource corresponding with the service request is inquired in the database server;
The data resource is encapsulated as described by processing module, the data resource returned for obtaining the database server Model, and the model is back to the browser application to control browser application root when receiving the model According to the page of browser application described in the model rendering.
9. a kind of electronic equipment, it is characterised in that: the electronic equipment includes processor, and the processor is for executing memory The development approach of the browser application as described in any one of claim 1-7 is realized when the computer program of middle storage.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program The development approach of the browser application as described in any one of claim 1-7 is realized when being executed by processor.
CN201910441756.2A 2019-05-24 2019-05-24 The development approach and relevant device of browser application Pending CN110321122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910441756.2A CN110321122A (en) 2019-05-24 2019-05-24 The development approach and relevant device of browser application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910441756.2A CN110321122A (en) 2019-05-24 2019-05-24 The development approach and relevant device of browser application

Publications (1)

Publication Number Publication Date
CN110321122A true CN110321122A (en) 2019-10-11

Family

ID=68119083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910441756.2A Pending CN110321122A (en) 2019-05-24 2019-05-24 The development approach and relevant device of browser application

Country Status (1)

Country Link
CN (1) CN110321122A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078208A (en) * 2019-12-12 2020-04-28 智器云南京信息科技有限公司 Data processing method and system under MVC (model view controller) architecture, storage medium and electronic equipment
CN113126979A (en) * 2021-04-16 2021-07-16 多点(深圳)数字科技有限公司 Visual business building system capable of achieving secondary programming by separating from server
CN114629771A (en) * 2022-03-24 2022-06-14 中国农业银行股份有限公司 Service processing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830973A (en) * 2012-08-14 2012-12-19 无锡哲勤科技有限公司 Method and layered structure for double-layer MVC (model, view and controller) developed by Web application with mass data
CN105227613A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading method and device
CN106713479A (en) * 2017-01-06 2017-05-24 南京铱迅信息技术股份有限公司 Cloud-based file duplicate-removing method
CN108076029A (en) * 2016-11-14 2018-05-25 平安科技(深圳)有限公司 The building method and device of Workforce Management system
CN108280174A (en) * 2018-01-22 2018-07-13 网宿科技股份有限公司 Front end file construction method and server, page access method and terminal
CN109831476A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Installation kit method for down loading, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830973A (en) * 2012-08-14 2012-12-19 无锡哲勤科技有限公司 Method and layered structure for double-layer MVC (model, view and controller) developed by Web application with mass data
CN105227613A (en) * 2014-06-30 2016-01-06 北京金山安全软件有限公司 File uploading method and device
CN108076029A (en) * 2016-11-14 2018-05-25 平安科技(深圳)有限公司 The building method and device of Workforce Management system
CN106713479A (en) * 2017-01-06 2017-05-24 南京铱迅信息技术股份有限公司 Cloud-based file duplicate-removing method
CN108280174A (en) * 2018-01-22 2018-07-13 网宿科技股份有限公司 Front end file construction method and server, page access method and terminal
CN109831476A (en) * 2018-12-15 2019-05-31 中国平安人寿保险股份有限公司 Installation kit method for down loading, device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078208A (en) * 2019-12-12 2020-04-28 智器云南京信息科技有限公司 Data processing method and system under MVC (model view controller) architecture, storage medium and electronic equipment
CN113126979A (en) * 2021-04-16 2021-07-16 多点(深圳)数字科技有限公司 Visual business building system capable of achieving secondary programming by separating from server
CN113126979B (en) * 2021-04-16 2022-03-25 多点(深圳)数字科技有限公司 Visual business building system capable of achieving secondary programming by separating from server
CN114629771A (en) * 2022-03-24 2022-06-14 中国农业银行股份有限公司 Service processing method, device and system

Similar Documents

Publication Publication Date Title
CN109683953B (en) Method and device for processing configuration file based on visual interface
US10057182B2 (en) Method for providing development and deployment services using a cloud-based platform and devices thereof
CN110321122A (en) The development approach and relevant device of browser application
CN107329741A (en) A kind of software distribution upgrade method and device based on fingerprint recognition
CN110308924A (en) Application program update method, apparatus, electronic equipment and storage medium
CN110297671A (en) Client plug-in implementation method, device, computer equipment and storage medium
CN108255707A (en) Development roles creation method, device, equipment and the storage medium of test case
US20190018867A1 (en) Rule based data processing
CN109413125A (en) The method and apparatus of dynamic regulation distributed system resource
CN108667660B (en) Method and device for route management and service routing and routing system
CN107347093B (en) Configuration method and device for distributed server system
CN109769010A (en) Method, apparatus, equipment and storage medium based on SDK access CloudStack server
CN112035350A (en) Test method and device for block chain system and computer equipment
CN112817562A (en) Service processing method and device
CN104408178A (en) Device and method for WEB control loading
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN110505289A (en) Document down loading method and device, computer-readable medium, wireless telecom equipment
CN114092116A (en) Business rule checking method and device and electronic equipment
CN115460224A (en) Calculation power resource scheduling method and device based on block chain technology
CN111880831A (en) Method and device for synchronously updating server, computer equipment and storage medium
CN108737133A (en) Method and device for CDN static network reparations
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN113326333A (en) Data processing method, system, computer device and computer storage medium
CN110597682B (en) Application deployment method and device, computer equipment and storage medium
CN114070889A (en) Configuration method, traffic forwarding method, device, storage medium, and program product

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