[go: up one dir, main page]

CN110673835A - Dynamic assembly type development system, method, computer and computer program - Google Patents

Dynamic assembly type development system, method, computer and computer program Download PDF

Info

Publication number
CN110673835A
CN110673835A CN201910754580.6A CN201910754580A CN110673835A CN 110673835 A CN110673835 A CN 110673835A CN 201910754580 A CN201910754580 A CN 201910754580A CN 110673835 A CN110673835 A CN 110673835A
Authority
CN
China
Prior art keywords
data
cloud server
component
dynamic assembly
engine
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
CN201910754580.6A
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.)
Nanyang Institute of Technology
Original Assignee
Nanyang Institute of Technology
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 Nanyang Institute of Technology filed Critical Nanyang Institute of Technology
Priority to CN201910754580.6A priority Critical patent/CN110673835A/en
Publication of CN110673835A publication Critical patent/CN110673835A/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/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • 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)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开一种动态装配式开发系统、方法、计算机和计算机程序,其系统包括云服务器、客户端和若干功能模块构成的模块框架;其中:所述云服务器用于调取数据;所述客户端与云服务器连接,用于显示视图界面。本发明提供一种动态装配式开发系统、方法、计算机和计算机程序,结合web技术和设计模式,提出跨平台移动轻量级动态装配式软件开发方式,所述模块框架对关键技术进行优化设计,运用框架开发,具有实现过程简单,开发成本低、周期短、性能优、体验优、动态易构等特点,并适合主流移动平台,具有良好的跨平台性。

Figure 201910754580

The invention discloses a dynamic assembly development system, method, computer and computer program. The system includes a cloud server, a client and a module framework composed of several functional modules; wherein: the cloud server is used to retrieve data; the client The terminal is connected to the cloud server to display the view interface. The invention provides a dynamic assembly development system, method, computer and computer program, combined with web technology and design mode, proposes a cross-platform mobile lightweight dynamic assembly software development method, the module framework optimizes the design of key technologies, Using framework development, it has the characteristics of simple implementation process, low development cost, short cycle, excellent performance, excellent experience, dynamic easy structure, etc. It is suitable for mainstream mobile platforms and has good cross-platform performance.

Figure 201910754580

Description

一种动态装配式开发系统、方法、计算机和计算机程序A dynamic assembly development system, method, computer and computer program

技术领域technical field

本发明涉及软件开发技术领域,更具体地,涉及一种动态装配式开发系统、方法、计算机和计算机程序。The present invention relates to the technical field of software development, and more particularly, to a dynamic assembly development system, method, computer and computer program.

背景技术Background technique

虚拟机通过软件模拟出一个完整的计算机系统,运行在虚拟机上应用软件,不受真机的系统软件与硬件的影响,使应用软件具有跨平台性。目前,ios平台支持Flash技术的web引擎,而基于移动平台java虚拟机实现较困难。原生app的ui控件,用户体验差;现有流行国内mui框架,以iOS7的ui为基础,补充了部分android系统特有的ui控件,比较接近原生app的ui体验,但无法调用手机终端的硬件设备。由于移动端各类操作系统的差异,导致应用移植困难、开发周期长。The virtual machine simulates a complete computer system through software, runs the application software on the virtual machine, and is not affected by the system software and hardware of the real machine, making the application software cross-platform. At present, the ios platform supports the web engine of Flash technology, but it is difficult to realize the Java virtual machine based on the mobile platform. The ui controls of the native app have poor user experience; the existing popular domestic mui framework is based on the ui of iOS7 and supplements some ui controls unique to the android system, which is closer to the ui experience of the native app, but cannot call the hardware device of the mobile terminal . Due to the differences of various operating systems on the mobile terminal, application porting is difficult and the development cycle is long.

发明内容SUMMARY OF THE INVENTION

本发明为了解决移动端各类操作系统的应用移植困难、开发周期长的问题,提供一种动态装配式开发系统、方法、计算机和计算机程序。In order to solve the problems of difficult application transplantation and long development cycle of various operating systems of the mobile terminal, the present invention provides a dynamic assembly development system, method, computer and computer program.

为实现以上发明目的,采用的技术方案是:In order to achieve the above purpose of the invention, the technical scheme adopted is:

一种动态装配式开发系统包括云服务器、客户端和若干功能模块构成的模块框架;其中:A dynamically assembled development system includes a cloud server, a client and a module framework composed of several functional modules; wherein:

所述云服务器用于调取数据;The cloud server is used to retrieve data;

所述客户端与云服务器连接,用于显示视图界面。The client is connected to the cloud server for displaying a view interface.

所述模块框架包括组件库、数据模块、页面模板、数据引擎、虚拟DOM、组件渲染引擎和移动设备JS API接口;其中:The module framework includes a component library, a data module, a page template, a data engine, a virtual DOM, a component rendering engine and a mobile device JS API interface; wherein:

所述组件库、所述数据模块、所述页面模板、所述数据引擎、所述虚拟DOM、所述组件渲染引擎和所述移动设备JS API接口采用松耦合连接;The component library, the data module, the page template, the data engine, the virtual DOM, the component rendering engine and the mobile device JS API interface are connected by loose coupling;

所述组件库用于组成模块框架的组件体系;The component library is used to form the component system of the module framework;

所述数据引擎用于所述云服务器和所述客户端之间的双向数据传递,也用于获取客户端数据;The data engine is used for two-way data transmission between the cloud server and the client, and is also used for acquiring client data;

所述组件渲染引擎用于组件的渲染与排版;The component rendering engine is used for component rendering and typesetting;

所述虚拟DOM构建DOM树结构,用于更新视图;The virtual DOM constructs a DOM tree structure for updating the view;

所述移动设备JS API接口采用异步方式操作,实现对底层设备的操作;The mobile device JS API interface is operated in an asynchronous manner to realize the operation of the underlying device;

所述页面模板用于呈现移动用户程序界面;The page template is used to present a mobile user program interface;

所述数据模块用于存储数据。The data module is used to store data.

所述组件库中的组件通过搭建积木的方式进行排列。Components in the component library are arranged by building blocks.

一种动态装配式开发方法包括以下步骤:A dynamic assembly development method includes the following steps:

S1:开发者启动与加载轻量级javascript引擎,进行程序界面初始化;S1: The developer starts and loads the lightweight javascript engine to initialize the program interface;

S2:开发者在云服务器中下载组件或者自己开发设计组件,配置上述组件,组件通过搭建积木式方式排列,通过拖曳的方式来设计移动用户应用程序界面;S2: The developer downloads the components in the cloud server or develops and designs the components themselves, configures the above-mentioned components, and arranges the components by building blocks, and designs the mobile user application program interface by dragging;

S3:开发者配置数据引擎,运行应用程序,从云服务器端异步加载组件数据,在本地缓存大数据并进行呈现;S3: The developer configures the data engine, runs the application, loads the component data asynchronously from the cloud server, caches the big data locally and presents it;

S4:开发者对系统进行优化与测试,通过测试网络加载性能,优化配置参数。S4: The developer optimizes and tests the system, and optimizes the configuration parameters by testing the network loading performance.

虚拟DOM用javascript对象表示DOM信息和结构,状态变更时,重新渲染javascript的对象结构,具体算法包括:The virtual DOM uses javascript objects to represent DOM information and structure. When the state changes, the javascript object structure is re-rendered. The specific algorithm includes:

(1)用javascript的对象结构表示DOM树的结构,构建一个真正的DOM树,(1) Use the object structure of javascript to represent the structure of the DOM tree to build a real DOM tree,

插到文档中;insert into the document;

(2)状态变更时,构建一棵新的DOM树,用新的树和旧的树作比较,记录(2) When the state changes, build a new DOM tree, compare the new tree with the old tree, and record

两棵树差异;difference between two trees;

(3)把记录的差异应用到构建的真正的DOM树上,视图更新。(3) Apply the recorded differences to the real DOM tree constructed, and the view updates.

数据引擎执行算法:The data engine executes the algorithm:

(1)执行then方法,CDEngine异步操作成功时,执行回调方法进入callbacks队列;(1) Execute the then method, when the CDEngine asynchronous operation is successful, execute the callback method and enter the callbacks queue;

(2)创建CDEngine实例时,传入的函数赋予另一个函数的参数resolve,参数valve表示异步操作返回的结果,当then方法执行成功后,将调用resolve方法,将callbacks队列中的回调函数全部执行。(2) When creating a CDEngine instance, the incoming function is assigned the parameter resolve of another function, and the parameter valve represents the result returned by the asynchronous operation. When the then method is executed successfully, the resolve method will be called to execute all the callback functions in the callbacks queue. .

本方案提供一种计算机,所述计算机被使用时运用了一种动态装配式开发方法。The present solution provides a computer that employs a dynamic assembly development method when used.

本方案提供一种计算机程序所述计算机程序被处理器执行时运用一种动态装配式开发方法。This solution provides a computer program that uses a dynamic assembly development method when the computer program is executed by a processor.

所述模块框架专注于MVC架构中的V,实现视图组件化。从UI出发,抽象出不同的组件,然后客户端软件界面像搭积木一样将组件拼装起来。所述模块框架分七层体系设计,组件库、数据模块、页面模板和数据引擎在同一层次,虚拟DOM,组件渲染引擎,移动设备JSAPI接口等分布在不同层次。所述模块框架是一个松耦性框架,各个组件相对独立,也能自我扩展,并做到尽可能少的修改就可以直接使用。所述模块框架基于组件体系,开发者可以像搭积木一样制作移动应用程序,组件也可以嵌套子组件形成新的组件,新的组件又可以当作子组件嵌套至任意组件形成新的组件,这样组件功能越来越丰富,组件越来越多,开发人员可用组件越来越多,节省了UI组件开发设计的时间成本,提高了开发效率;模块框架通过javascript脚本调用本地设备JSAPI,采用异常通信发送请求,实现对底层设备的操作,设备客户端接收到处理消息后通过执行脚本组件的loadinit方法来实现脚本的回调,实现了对不同移动设备操作DOM无影响的效果,使本模块框架具有强大的跨平台能力。The module framework focuses on the V in the MVC architecture to realize view componentization. Starting from the UI, different components are abstracted, and then the client software interface assembles the components like building blocks. The module framework is designed in a seven-layer system. The component library, the data module, the page template and the data engine are at the same level, and the virtual DOM, the component rendering engine, and the mobile device JSAPI interface are distributed at different levels. The module framework is a loosely coupled framework, and each component is relatively independent, can also self-expand, and can be used directly with as few modifications as possible. The modular framework is based on a component system, and developers can make mobile applications like building blocks. Components can also nest sub-components to form new components, and new components can be nested as sub-components into any component to form new components. , so that the component functions are more and more rich, there are more and more components, and there are more and more components available to developers, which saves the time and cost of UI component development and design, and improves development efficiency; the module framework calls the local device JSAPI through javascript scripts, using Abnormal communication sends a request to realize the operation of the underlying device. After receiving the processing message, the device client implements the script callback by executing the loadinit method of the script component, realizing the effect of no effect on the DOM operation of different mobile devices, making this module framework Has a strong cross-platform capability.

与现有技术相比,本发明的有益效果是:Compared with the prior art, the beneficial effects of the present invention are:

本发明提供一种动态装配式开发系统、方法、计算机和计算机程序,结合web技术和设计模式,提出跨平台移动轻量级动态装配式软件开发方式,所述模块框架对关键技术进行优化设计,运用框架开发,具有实现过程简单,开发成本低、周期短、性能优、体验优、动态易构等特点,并适合主流移动平台,具有良好的跨平台性。The invention provides a dynamic assembly development system, method, computer and computer program, combined with web technology and design mode, proposes a cross-platform mobile lightweight dynamic assembly software development method, the module framework optimizes the design of key technologies, Using framework development, it has the characteristics of simple implementation process, low development cost, short cycle, excellent performance, excellent experience, dynamic easy structure, etc. It is suitable for mainstream mobile platforms and has good cross-platform performance.

附图说明Description of drawings

图1为发明的开发方法步骤图;Fig. 1 is the development method step diagram of the invention;

图2为发明的整体模块框架图;Fig. 2 is the overall module frame diagram of the invention;

具体实施方式Detailed ways

附图仅用于示例性说明,不能理解为对本专利的限制;The accompanying drawings are for illustrative purposes only, and should not be construed as limitations on this patent;

以下结合附图和实施例对本发明做进一步的阐述。The present invention will be further elaborated below in conjunction with the accompanying drawings and embodiments.

实施例1Example 1

如图1所示,一种动态装配式开发系统包括云服务器、客户端和若干功能模块构成的模块框架;其中:As shown in Figure 1, a dynamic assembly development system includes a cloud server, a client and a module framework composed of several functional modules; wherein:

所述云服务器用于调取数据;The cloud server is used to retrieve data;

所述客户端与云服务器连接,用于显示视图界面。The client is connected to the cloud server for displaying a view interface.

所述模块框架包括组件库、数据模块、页面模板、数据引擎、虚拟DOM、组件渲染引擎和移动设备JS API接口;其中:The module framework includes a component library, a data module, a page template, a data engine, a virtual DOM, a component rendering engine and a mobile device JS API interface; wherein:

所述组件库、所述数据模块、所述页面模板、所述数据引擎、所述虚拟DOM、所述组件渲染引擎和所述移动设备JS API接口采用松耦合连接;The component library, the data module, the page template, the data engine, the virtual DOM, the component rendering engine and the mobile device JS API interface are connected by loose coupling;

所述组件库用于组成模块框架的组件体系;The component library is used to form the component system of the module framework;

所述数据引擎用于所述云服务器和所述客户端之间的双向数据传递,也用于获取客户端数据;The data engine is used for two-way data transmission between the cloud server and the client, and is also used for acquiring client data;

所述组件渲染引擎用于组件的渲染与排版;The component rendering engine is used for component rendering and typesetting;

所述虚拟DOM构建DOM树结构,用于更新视图;The virtual DOM constructs a DOM tree structure for updating the view;

所述移动设备JS API接口采用异步方式操作,实现对底层设备的操作;The mobile device JS API interface is operated in an asynchronous manner to realize the operation of the underlying device;

所述页面模板用于呈现移动用户程序界面;The page template is used to present a mobile user program interface;

所述数据模块用于存储数据。The data module is used to store data.

所述组件库中的组件通过搭建积木的方式进行排列。Components in the component library are arranged by building blocks.

一种动态装配式开发方法包括以下步骤:A dynamic assembly development method includes the following steps:

S1:开发者启动与加载轻量级javascript引擎,进行程序界面初始化;S1: The developer starts and loads the lightweight javascript engine to initialize the program interface;

S2:开发者在云服务器中下载组件或者自己开发设计组件,配置上述组件,组件通过搭建积木式方式排列,通过拖曳的方式来设计移动用户应用程序界面;S2: The developer downloads the components in the cloud server or develops and designs the components themselves, configures the above-mentioned components, and arranges the components by building blocks, and designs the mobile user application program interface by dragging;

S3:开发者配置数据引擎,运行应用程序,从云服务器端异步加载组件数据,在本地缓存大数据并进行呈现;S3: The developer configures the data engine, runs the application, loads the component data asynchronously from the cloud server, caches the big data locally and presents it;

S4:开发者对系统进行优化与测试,通过测试网络加载性能,优化配置参数。S4: The developer optimizes and tests the system, and optimizes the configuration parameters by testing the network loading performance.

虚拟DOM用javascript对象表示DOM信息和结构,状态变更时,重新渲染javascript的对象结构,具体算法包括:The virtual DOM uses javascript objects to represent DOM information and structure. When the state changes, the javascript object structure is re-rendered. The specific algorithm includes:

(3)用javascript的对象结构表示DOM树的结构,构建一个真正的DOM树,(3) Use the object structure of javascript to represent the structure of the DOM tree to build a real DOM tree,

插到文档中;insert into the document;

(4)状态变更时,构建一棵新的DOM树,用新的树和旧的树作比较,记录(4) When the state changes, build a new DOM tree, compare the new tree with the old tree, and record

两棵树差异;difference between two trees;

(3)把记录的差异应用到构建的真正的DOM树上,视图更新。(3) Apply the recorded differences to the real DOM tree constructed, and the view updates.

数据引擎执行算法位:The data engine executes the algorithm bit:

(1)执行then方法,CDEngine异步操作成功时,执行回调方法进入callbacks队列;(1) Execute the then method, when the CDEngine asynchronous operation is successful, execute the callback method and enter the callbacks queue;

(2)创建CDEngine实例时,传入的函数赋予另一个函数的参数resolve,参数valve表示异步操作返回的结果,当then方法执行成功后,将调用resolve方法,将callbacks队列中的回调函数全部执行。(2) When creating a CDEngine instance, the incoming function is assigned the parameter resolve of another function, and the parameter valve represents the result returned by the asynchronous operation. When the then method is executed successfully, the resolve method will be called to execute all the callback functions in the callbacks queue. .

本方案提供一种计算机,所述计算机被使用时运用了一种动态装配式开发方法。The present solution provides a computer that employs a dynamic assembly development method when used.

本方案提供一种计算机程序所述计算机程序被处理器执行时运用一种动态装配式开发方法。This solution provides a computer program that uses a dynamic assembly development method when the computer program is executed by a processor.

实施例2Example 2

虚拟DOM用JavaScript对象表示DOM信息和结构,当状态变更的时候,重新渲染这个JavaScript的对象结构。虚拟DOM是保留了Element之间的层次关系和一些基本属性。虚拟DOM里每一个Element实际上只设置有用的几个属性,所以比BW DOM快很多。具体算法实现:The virtual DOM uses JavaScript objects to represent DOM information and structure. When the state changes, the JavaScript object structure is re-rendered. The virtual DOM preserves the hierarchical relationship and some basic properties between Elements. Each Element in the virtual DOM actually only sets a few useful properties, so it is much faster than the BW DOM. Specific algorithm implementation:

(1)用JavaScript对象结构表示DOM树的结构;然后用这个树构建一个真正的DOM树,插到文档当中;(1) Use the JavaScript object structure to represent the structure of the DOM tree; then use this tree to build a real DOM tree and insert it into the document;

(2)当状态变更的时候,重新构造一棵新的对象树。然后用新的树和旧的树进行比较,记录两棵树差异;(2) When the state changes, reconstruct a new object tree. Then compare the new tree with the old tree and record the difference between the two trees;

(3)把记录的差异应用到所构建的真正的DOM树上,视图更新。(3) Apply the recorded differences to the real DOM tree constructed, and the view is updated.

实施例3Example 3

客户端组件到云服务器端的数据传递由数据引擎来完成,客户端的数据获取与存储也是由数据引擎完成。数据引擎在客户端与服务器间形成一条数据通道,通过数据引擎实现对客户组件数据抽注。客户端提交请求的数据先提交给数据引擎存储,然后再将数据发送给服务器。在服务器对应的业务程序被执行,把需要返回的数据存储到数据引擎中,最后数据引擎中的数据能过解析,并由客户端展示显示出来。数据引擎由单独的一个类设计而成,数据引擎执行算法如下:The data transmission from the client component to the cloud server is completed by the data engine, and the data acquisition and storage of the client is also completed by the data engine. The data engine forms a data channel between the client and the server, and the data extraction of the client component is realized through the data engine. The data requested by the client is first submitted to the data engine for storage, and then sent to the server. When the business program corresponding to the server is executed, the data to be returned is stored in the data engine. Finally, the data in the data engine can be parsed and displayed by the client. The data engine is designed by a single class, and the data engine execution algorithm is as follows:

1.执行then方法,CDEngine异步操作成功时,执行回调方法进入callbacks队列;1. Execute the then method. When the CDEngine asynchronous operation is successful, execute the callback method and enter the callbacks queue;

2.创建CDEngine实例时传入的函数赋予给另一函数的参数,即resolve,参数value表示异步操作返回的结果,当then方法执行成功后,将调用resolve方法,将callbacks队列中的回调函数将全部执行。2. The function passed in when the CDEngine instance is created is given to the parameter of another function, namely resolve. The parameter value represents the result returned by the asynchronous operation. When the then method is executed successfully, the resolve method will be called, and the callback function in the callbacks queue will be called. All executed.

实施例4Example 4

所述模块框架专注于MVC架构中的V,实现视图组件化。从UI出发,抽象出不同的组件,然后客户端软件界面像搭积木一样将组件拼装起来。所述模块框架分七层体系设计,组件库、数据模块、页面模板和数据引擎在同一层次,虚拟DOM,组件渲染引擎,移动设备JSAPI接口等分布在不同层次。所述模块框架是一个松耦性框架,各个组件相对独立,也能自我扩展,并做到尽可能少的修改就可以直接使用。所述模块框架基于组件体系,开发者可以像搭积木一样制作移动应用程序,组件也可以嵌套子组件形成新的组件,新的组件又可以当作子组件嵌套至任意组件形成新的组件,这样组件功能越来越丰富,组件越来越多,开发人员可用组件越来越多,节省了UI组件开发设计的时间成本,提高了开发效率;模块框架通过javascript脚本调用本地设备JSAPI,采用异常通信发送请求,实现对底层设备的操作,设备客户端接收到处理消息后通过执行脚本组件的loadinit方法来实现脚本的回调,实现了对不同移动设备操作DOM无影响的效果,使本模块框架具有强大的跨平台能力。The module framework focuses on the V in the MVC architecture to realize view componentization. Starting from the UI, different components are abstracted, and then the client software interface assembles the components like building blocks. The module framework is designed in a seven-layer system. The component library, the data module, the page template and the data engine are at the same level, and the virtual DOM, the component rendering engine, and the mobile device JSAPI interface are distributed at different levels. The module framework is a loosely coupled framework, and each component is relatively independent, can also self-expand, and can be used directly with as few modifications as possible. The modular framework is based on a component system, and developers can make mobile applications like building blocks. Components can also nest sub-components to form new components, and new components can be nested as sub-components into any component to form new components. , so that the component functions are more and more rich, there are more and more components, and there are more and more components available to developers, which saves the time and cost of UI component development and design, and improves development efficiency; the module framework calls the local device JSAPI through javascript scripts, using Abnormal communication sends a request to realize the operation of the underlying device. After receiving the processing message, the device client implements the script callback by executing the loadinit method of the script component, realizing the effect of no effect on the DOM operation of different mobile devices, making this module framework Has a strong cross-platform capability.

显然,本发明的上述实施例仅仅是为清楚地说明本发明所作的举例,而并非是对本发明的实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明权利要求的保护范围之内。Obviously, the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, rather than limiting the embodiments of the present invention. For those of ordinary skill in the art, changes or modifications in other different forms can also be made on the basis of the above description. There is no need and cannot be exhaustive of all implementations here. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the claims of the present invention.

Claims (8)

1.一种动态装配式开发系统,其特征在于:包括云服务器、客户端和若干功能模块构成的模块框架;其中:1. a dynamic assembly type development system, is characterized in that: comprise the module frame that cloud server, client and some functional modules are formed; Wherein: 所述云服务器用于调取数据;The cloud server is used to retrieve data; 所述客户端与云服务器连接,用于显示视图界面。The client is connected to the cloud server for displaying a view interface. 2.根据权利要求1所述的一种动态装配式开发系统,其特征在于:所述模块框架包括组件库、数据模块、页面模板、数据引擎、虚拟DOM、组件渲染引擎和移动设备JS API接口;其中:2. a kind of dynamic prefab development system according to claim 1, is characterized in that: described module framework comprises component library, data module, page template, data engine, virtual DOM, component rendering engine and mobile device JS API interface ;in: 所述组件库、所述数据模块、所述页面模板、所述数据引擎、所述虚拟DOM、所述组件渲染引擎和所述移动设备JS API接口均采用松耦合连接;The component library, the data module, the page template, the data engine, the virtual DOM, the component rendering engine and the mobile device JS API interface are all loosely coupled connections; 所述组件库用于组成模块框架的组件体系;The component library is used to form the component system of the module framework; 所述数据引擎用于所述云服务器和所述客户端之间的双向数据传递,也用于获取客户端数据;The data engine is used for two-way data transfer between the cloud server and the client, and is also used for acquiring client data; 所述组件渲染引擎用于组件的渲染与排版;The component rendering engine is used for component rendering and typesetting; 所述虚拟DOM构建DOM树结构,用于更新视图;The virtual DOM constructs a DOM tree structure for updating the view; 所述移动设备JS API接口采用异步方式操作,实现对底层设备的操作;The mobile device JS API interface is operated in an asynchronous manner to realize the operation of the underlying device; 所述页面模板用于呈现移动用户程序界面;The page template is used to present a mobile user program interface; 所述数据模块用于存储数据。The data module is used to store data. 3.根据权利要求2所述的一种动态装配式开发系统,其特征在于:所述组件库中的组件通过搭建积木的方式进行排列。3 . The dynamic assembly development system according to claim 2 , wherein the components in the component library are arranged by building blocks. 4 . 4.一种动态装配式开发方法,其特征在于:包括以下步骤:4. a dynamic assembly type development method is characterized in that: comprise the following steps: S1:开发者启动与加载轻量级javascript引擎,进行程序界面初始化;S1: The developer starts and loads the lightweight javascript engine to initialize the program interface; S2:开发者在云服务器中下载组件或者自己开发设计组件,配置上述组件,组件通过搭建积木式方式排列,通过拖曳的方式来设计移动用户应用程序界面;S2: The developer downloads the components in the cloud server or develops and designs the components themselves, configures the above-mentioned components, and arranges the components by building blocks, and designs the mobile user application program interface by dragging; S3:开发者配置数据引擎,运行应用程序,从云服务器端异步加载组件数据,在本地缓存大数据并进行呈现;S3: The developer configures the data engine, runs the application, loads the component data asynchronously from the cloud server, caches the big data locally and presents it; S4:开发者对系统进行优化与测试,通过测试网络加载性能,优化配置参数。S4: The developer optimizes and tests the system, and optimizes the configuration parameters by testing the network loading performance. 5.根据权利要求4所述的一种动态装配式开发方法,其特征在于:虚拟DOM用javascript对象表示DOM信息和结构,状态变更时,重新渲染javascript的对象结构,虚拟DOM构建DOM树结构,用于更新视图。5. a kind of dynamic prefab development method according to claim 4 is characterized in that: virtual DOM represents DOM information and structure with javascript object, when state changes, the object structure of javascript is re-rendered, and virtual DOM builds DOM tree structure, Used to update the view. 6.根据权利要求4所述的一种动态装配式开发方法,其特征在于:数据引擎执行算法位:6. a kind of dynamic assembly type development method according to claim 4, is characterized in that: data engine executes algorithm bit: (1)执行then方法,CDEngine异步操作成功时,执行回调方法进入callbacks队列;(1) Execute the then method, when the CDEngine asynchronous operation is successful, execute the callback method and enter the callbacks queue; (2)创建CDEngine实例时,传入的函数赋予另一个函数的参数resolve,参数valve表示异步操作返回的结果,当then方法执行成功后,将调用resolve方法,将callbacks队列中的回调函数全部执行。(2) When creating a CDEngine instance, the incoming function is assigned the parameter resolve of another function, and the parameter valve represents the result returned by the asynchronous operation. When the then method is executed successfully, the resolve method will be called to execute all the callback functions in the callbacks queue. . 7.一种计算机,其特征在于:所述计算机被使用时运用了如权利要求4~6任意一项所述的一种动态装配式开发方法。7 . A computer, characterized in that: the computer uses a dynamic assembly development method according to any one of claims 4 to 6 when the computer is used. 8.一种计算机程序,其特征在于:所述计算机程序被处理器执行时实现如权利要求4~6任意一项所述的一种动态装配式开发方法。8 . A computer program, characterized in that: when the computer program is executed by a processor, a dynamic assembly development method according to any one of claims 4 to 6 is implemented.
CN201910754580.6A 2019-08-15 2019-08-15 Dynamic assembly type development system, method, computer and computer program Pending CN110673835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910754580.6A CN110673835A (en) 2019-08-15 2019-08-15 Dynamic assembly type development system, method, computer and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910754580.6A CN110673835A (en) 2019-08-15 2019-08-15 Dynamic assembly type development system, method, computer and computer program

Publications (1)

Publication Number Publication Date
CN110673835A true CN110673835A (en) 2020-01-10

Family

ID=69075375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910754580.6A Pending CN110673835A (en) 2019-08-15 2019-08-15 Dynamic assembly type development system, method, computer and computer program

Country Status (1)

Country Link
CN (1) CN110673835A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651190A (en) * 2020-04-30 2020-09-11 北京临近空间飞行器系统工程研究所 Emission control software dynamic assembly method based on multi-dimensional fusion elements
CN111930379A (en) * 2020-08-11 2020-11-13 上海亿锎智能科技有限公司 Method, device and system for realizing Web end complaint form designer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209111A (en) * 2011-05-20 2011-10-05 重庆广典传媒有限公司 Open cross-platform system for cloud computing mobile network terminal equipment
CN106293743A (en) * 2016-08-11 2017-01-04 上海泛微网络科技股份有限公司 A kind of mobile modeling and build Mobile solution the method realizing cross-platform issue
CN106990966A (en) * 2017-03-31 2017-07-28 中国科学技术大学苏州研究院 Mobile terminal cross-platform Development Framework and development approach based on front end frame
US20180267782A1 (en) * 2017-03-17 2018-09-20 Chen-Chung YEH Development platform of mobile native applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209111A (en) * 2011-05-20 2011-10-05 重庆广典传媒有限公司 Open cross-platform system for cloud computing mobile network terminal equipment
CN106293743A (en) * 2016-08-11 2017-01-04 上海泛微网络科技股份有限公司 A kind of mobile modeling and build Mobile solution the method realizing cross-platform issue
US20180267782A1 (en) * 2017-03-17 2018-09-20 Chen-Chung YEH Development platform of mobile native applications
CN106990966A (en) * 2017-03-31 2017-07-28 中国科学技术大学苏州研究院 Mobile terminal cross-platform Development Framework and development approach based on front end frame

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
左海春: "跨平台移动轻量级动态装配式软件开发框架设计研究", 《河北省科学院学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651190A (en) * 2020-04-30 2020-09-11 北京临近空间飞行器系统工程研究所 Emission control software dynamic assembly method based on multi-dimensional fusion elements
CN111651190B (en) * 2020-04-30 2023-03-07 北京临近空间飞行器系统工程研究所 Emission control software dynamic assembly method based on multi-dimensional fusion elements
CN111930379A (en) * 2020-08-11 2020-11-13 上海亿锎智能科技有限公司 Method, device and system for realizing Web end complaint form designer

Similar Documents

Publication Publication Date Title
CN111290753B (en) Method, device, equipment and storage medium for building front-end development environment
US9652364B1 (en) Cloud service for mobile testing and debugging
US11436066B2 (en) System for offline object based storage and mocking of rest responses
CN104615462B (en) Cross-platform Mobile solution generation service end and system
CN112615759B (en) Full link voltage measurement assembly, full link voltage measurement method and device
CN113076253A (en) Test method and test device
WO2017071358A1 (en) Software upgrade method and apparatus
CN113778897B (en) Automatic test method, device and equipment for interface and storage medium
CN109960580A (en) A kind of method and system for disposing service of making out an invoice
CN109213498A (en) A kind of configuration method and server of internet web front-end
CN109002320A (en) For the update method of software development kit, system, electronic equipment and storage medium
CN112035090B (en) Intelligent contract intelligent management system and method based on containerization technology
CN113641582B (en) Hybrid mode mobile application debugging method and system
US20240264804A1 (en) Cloud code development system, method, apparatus, device and storage medium
CN105068802B (en) A kind of Web application software realization system and method for striding equipment operation
CN105260190A (en) Operation method and device for android application based on android system distribution technology
CN112149035A (en) Website static resource processing method and device
CN111666199B (en) Debugging method executed on intelligent terminal and software debugger
CN111857695A (en) Software project processing method, device, equipment and storage medium
CN110673835A (en) Dynamic assembly type development system, method, computer and computer program
CN112214250A (en) Application program assembly loading method and device
CN116974948A (en) Service system testing method, system, equipment and medium
CN112068879A (en) Method and device for constructing client application development framework based on configuration
CN113626330B (en) Mixed mode mobile application debugging method and system
CN117724803A (en) Cloud service deployment method, device and platform

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200110