Front-end prototype debugging method and device

By monitoring and splicing user-input tag information, dynamic scripts and cascading style sheet information in real time, and rendering progressive UI components, it solves the problem of low efficiency in prototype verification of Vue front-end projects and achieves real-time preview and efficiency improvement.

CN113110828BActive Publication Date: 2024-10-25INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110417154.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-19
Publication Date
2024-10-25
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

When developing front-end projects based on Vue, prototype verification is inefficient because a complete engineering project needs to be started, which results in long start-up compilation time and hot update time that increases with the project scale.

Method used

By monitoring the tag information, dynamic script information and cascading style sheet information input by users in the editing area, progressive UI components are spliced ​​and rendered in real time and displayed in the preview area, avoiding the need to start a complete project.

Benefits of technology

Real-time preview of code modification effects is achieved, which saves development costs and improves the efficiency of debugging and verification of front-end prototypes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113110828B_ABST
    Figure CN113110828B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a front-end prototype debugging method and device, which can also be used in the financial field. The method includes: monitoring and obtaining tag information, dynamic script information and cascading style sheet information input by a user in an editing area; splicing the tag information, the dynamic script information and the cascading style sheet information into a progressive UI component according to set code reconstruction rules, and rendering and displaying the progressive UI component in a preview area; the present application can effectively improve the debugging and verification efficiency of the front-end prototype.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of front-end development and can also be used in the financial field, and specifically relates to a front-end prototype debugging method and device. Background Art

[0002] When developing a front-end project based on Vue, it is usually carried out in the form of a complete engineering project. Due to the need for engineering, a complete engineering project not only requires a corresponding local development environment, but also requires the installation of dependencies and a long startup compilation time. At the same time, the hot update time will increase with the scale of the project.

[0003] During the prototype verification stage, usually only an environment that can execute Vue single-file components is needed. However, the method of using a complete project for prototype verification requires starting a complete Vue project for prototype verification, which has low verification efficiency. Summary of the invention

[0004] In view of the problems in the prior art, the present application provides a front-end prototype debugging method and device, which can effectively improve the debugging and verification efficiency of the front-end prototype.

[0005] In order to solve at least one of the above problems, the present application provides the following technical solutions:

[0006] In a first aspect, the present application provides a front-end prototype debugging method, comprising:

[0007] Monitor and obtain tag information, dynamic script information and cascading style sheet information entered by a user in an editing area;

[0008] The tag information, the dynamic script information and the cascading style sheet information are spliced ​​into a progressive UI component according to a set code refactoring rule, and the progressive UI component is rendered and displayed in a preview area.

[0009] Furthermore, the step of splicing the tag information, the dynamic script information and the cascading style sheet information into a progressive UI component according to the set code refactoring rule includes:

[0010] Packaging the cascading style sheet information by setting tags, and mounting the packed cascading style sheet information to an initial page element node;

[0011] A progressive UI component assembling operation is performed on the initial page element node according to the tag information and the dynamic script information, and the progressive UI component after the assembling operation is mounted to a target page element node.

[0012] Furthermore, performing a progressive UI component assembly operation on the initial page element node according to the tag information and the dynamic script information includes:

[0013] A progressive UI component assembly operation is performed on the initial page element node by converting the dynamic script information into an object and setting the tag information as a template attribute of the object.

[0014] Furthermore, before monitoring and acquiring the tag information, dynamic script information and cascading style sheet information input by the user in an editing area, the method includes:

[0015] The preset sample code is loaded in the editing area and the progressive UI component corresponding to the sample code is rendered and displayed in the preview area.

[0016] In a second aspect, the present application provides a front-end prototype debugging device, comprising:

[0017] A debugging and editing module is used to monitor and obtain tag information, dynamic script information and cascading style sheet information input by a user in an editing area;

[0018] The debugging preview module is used to splice the tag information, the dynamic script information and the cascading style sheet information into a progressive UI component according to the set code reconstruction rule, and render and display the progressive UI component in a preview area.

[0019] Furthermore, the debugging preview module includes:

[0020] An element node mounting unit, used for packaging the cascading style sheet information by setting tags, and mounting the packaged cascading style sheet information to an initial page element node;

[0021] The component code splicing unit is used to perform a progressive UI component assembling operation on the initial page element node according to the tag information and the dynamic script information, and mount the progressive UI component after the assembling operation to a target page element node.

[0022] Furthermore, the component code splicing unit includes:

[0023] The progressive UI component assembling subunit is used to perform a progressive UI component assembling operation on the initial page element node by converting the dynamic script information into an object and setting the tag information as a template attribute of the object.

[0024] Furthermore, it also includes:

[0025] The default loading unit is used to load the preset sample code in the editing area and render and display the progressive UI component corresponding to the sample code in the preview area.

[0026] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the front-end prototype debugging method when executing the program.

[0027] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the front-end prototype debugging method when executed by a processor.

[0028] It can be seen from the above technical solution that the present application provides a front-end prototype debugging method and device, which monitors and obtains the tag information, dynamic script information and cascading style sheet information input by the user in an editing area in real time, and renders and displays the progressive UI component composed of the tag information, the dynamic script information and the cascading style sheet information in a preview area, so that developers can preview the effect of code modifications in real time, and no longer need to start a complete front-end engineering project for prototype verification, which saves development costs and can effectively improve the debugging and verification efficiency of the front-end prototype. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0030] Figure 1 This is one of the flow charts of the front-end prototype debugging method in the embodiment of the present application;

[0031] Figure 2 This is a second flow chart of the front-end prototype debugging method in an embodiment of the present application;

[0032] Figure 3 This is one of the structural diagrams of the front-end prototype debugging device in the embodiment of the present application;

[0033] Figure 4 This is the second structural diagram of the front-end prototype debugging device in the embodiment of the present application;

[0034] Figure 5 This is the third structural diagram of the front-end prototype debugging device in the embodiment of the present application;

[0035] Figure 6This is a schematic diagram of an interface of a front-end prototype debugging device in a specific embodiment of the present application;

[0036] Figure 7 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] Taking into account the problem that the method of using a complete engineering project for prototype verification in the prior art requires starting a complete Vue project to perform prototype verification, and the verification efficiency is low, the present application provides a front-end prototype debugging method and device, which monitors and obtains the tag information, dynamic script information and cascading style sheet information entered by the user in an editing area in real time, and renders and displays the progressive UI component composed of the tag information, the dynamic script information and the cascading style sheet information in a preview area, so that developers can preview the effect of code modifications in real time, and no longer need to start a complete front-end engineering project for prototype verification, which saves development costs and can effectively improve the debugging and verification efficiency of the front-end prototype.

[0039] In order to effectively improve the debugging and verification efficiency of the front-end prototype, the present application provides an embodiment of a front-end prototype debugging method, see Figure 1 and Figure 6 , the front-end prototype debugging method specifically includes the following contents:

[0040] Step S101: monitoring and acquiring tag information, dynamic script information and cascading style sheet information input by a user in an editing area.

[0041] Optionally, the tag information may be, for example, HTML text information, the dynamic script information may be, for example, JavaScript script information, and the cascading style sheet information may be, for example, CSS code information.

[0042] Optionally, the present application may pre-set an editing area in a client software interface for the user to input information / edit code in the editing area.

[0043] Step S102: splicing the tag information, the dynamic script information and the cascading style sheet information into a progressive UI component according to a set code refactoring rule, and rendering and displaying the progressive UI component in a preview area.

[0044] Optionally, the progressive UI component may be, for example, a Vue component, which is composed of a template part, a script part and a style part.

[0045] Optionally, the present application can splice the tag information, the dynamic script information and the cascading style sheet information into a complete Vue component code according to a set code reconstruction rule, and mount the spliced ​​Vue component code to the preview area for page rendering and display.

[0046] From the above description, it can be seen that the front-end prototype debugging method provided in the embodiment of the present application can monitor and obtain the tag information, dynamic script information and cascading style sheet information entered by the user in an editing area in real time, and render and display the progressive UI component composed of the tag information, the dynamic script information and the cascading style sheet information in a preview area, so that developers can preview the effect of code modifications in real time, and no longer need to start a complete front-end engineering project for prototype verification, which saves development costs and can effectively improve the debugging and verification efficiency of the front-end prototype.

[0047] In order to accurately splice the tag information, dynamic script information and cascading style sheet information input by the user into the code of the progressive UI component, in one embodiment of the front-end prototype debugging method of the present application, see Figure 2 , the above step S102 may also specifically include the following contents:

[0048] Step S201: packaging the cascading style sheet information by setting tags, and mounting the packaged cascading style sheet information to an initial page element node.

[0049] Step S202: performing a progressive UI component assembly operation on the initial page element node according to the tag information and the dynamic script information, and mounting the progressive UI component after the assembly operation to a target page element node.

[0050] It is understandable that when the system or editing area code of this application is modified when it is first opened, this application needs to pass the editing area code to the preview area and trigger a redraw to update the display effect. The execution process of redrawing can be: first, clear the existing code in the preview area. Since the execution principle of Vue is to mount the component content to an element node (DOM element) of the page, the purpose of clearing the preview area is achieved by clearing the DOM element.

[0051] Optionally, first, after clearing the preview area, the application can further mount the CSS code. At the same time, without using webpack to compile the Vue component, the application can process the CSS code separately, for example, by <style>标签的方式对css代码进行包装并添加至Vue要挂载的DOM元素内,以实现css代码的挂载。

[0052] 然后,根据所述标签信息和所述动态脚本信息在所述初始页面元素节点上进行渐进式UI组件拼装操作。

[0053] 最后,进行重新渲染,将前述拼装好的Vue组件作为子组件,重新声明Vue根组件并挂载至页面指定的DOM上,至此完成对代码修改的重绘。

[0054] 为了能够保障动态脚本信息和标签信息的代码拼接准确,在本申请的前端原型调试方法的一实施例中,上述步骤S202还可以具体包含如下内容:

[0055] 在所述初始页面元素节点上通过将所述动态脚本信息转换为对象,并将所述标签信息设定为所述对象的模板属性进行渐进式UI组件拼装操作。

[0056] 可选的,在上述元素节点上拼装Vue组件,采用对象的方式拼接javascript和html部分,具体的,先将javascript部分转换为对象,再将html部分作为该对象的template属性,这样就完成了对Vue组件的拼装。

[0057] 为了能够使用户便捷得进行代码调试,在本申请的前端原型调试方法的一实施例中,在上述步骤S101之前还可以具体包含如下内容:

[0058] 在编辑区域内加载预设样例代码并在预览区域渲染和展示与所述样例代码对应的渐进式UI组件。

[0059] 可选的,当用户初次启动本申请的系统时,本申请可以在编辑区域内默认加载预先写好的样例代码并在预览区域执行展示,当用户在编辑区域进行代码修改时,预览区域可以同步更新编辑区域的代码执行效果。

[0060] 为了能够有效提高前端原型的调试验证效率,本申请提供一种用于实现所述前端原型调试方法的全部或部分内容的前端原型调试装置的实施例,参见图3,所述前端原型调试装置具体包含有如下内容:

[0061] 调试编辑模块10,用于监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息。

[0062] 调试预览模块20,用于根据设定代码重构规则将所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接为一渐进式UI组件,并在一预览区域渲染和展示所述渐进式UI组件。

[0063] 从上述描述可知,本申请实施例提供的前端原型调试装置,能够通过实时监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息,并在一预览区域渲染和展示所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接而成的渐进式UI组件,使得开发人员可以实时预览代码修改后的效果,不需要再通过启动一个完整的前端工程项目进行原型验证,节约了开发成本,能够有效提高前端原型的调试验证效率。

[0064] 为了能够将用户输入的标签信息、动态脚本信息以及层叠样式表信息准确拼接为渐进式UI组件的代码,在本申请的前端原型调试装置的一实施例中,参见图4,所述调试预览模块20包括:

[0065] 元素节点挂载单元21,用于通过设定标签将所述层叠样式表信息进行包装,并将经过所述包装后的层叠样式表信息挂载至一初始页面元素节点。

[0066] 组件代码拼接单元22,用于根据所述标签信息和所述动态脚本信息在所述初始页面元素节点上进行渐进式UI组件拼装操作,并将完成所述拼装操作后的渐进式UI组件挂载至一目标页面元素节点。

[0067] 为了能够保障动态脚本信息和标签信息的代码拼接准确,在本申请的前端原型调试装置的一实施例中,参见图5,所述组件代码拼接单元22包括:

[0068] 渐进式UI组件拼装子单元221,用于在所述初始页面元素节点上通过将所述动态脚本信息转换为对象,并将所述标签信息设定为所述对象的模板属性进行渐进式UI组件拼装操作。

[0069] 为了能够使用户便捷得进行代码调试,在本申请的前端原型调试装置的一实施例中,还具体包含有如下内容:

[0070] 默认加载单元,用于在编辑区域内加载预设样例代码并在预览区域渲染和展示与所述样例代码对应的渐进式UI组件。

[0071] 从硬件层面来说,为了能够有效提高前端原型的调试验证效率,本申请提供一种用于实现所述前端原型调试方法中的全部或部分内容的电子设备的实施例,所述电子设备具体包含有如下内容:

[0072] 处理器(processor)、存储器(memory)、通信接口(Communications Interface)和总线;其中,所述处理器、存储器、通信接口通过所述总线完成相互间的通信;所述通信接口用于实现前端原型调试装置与核心业务系统、用户终端以及相关数据库等相关设备之间的信息传输;该逻辑控制器可以是台式计算机、平板电脑及移动终端等,本实施例不限于此。在本实施例中,该逻辑控制器可以参照实施例中的前端原型调试方法的实施例,以及前端原型调试装置的实施例进行实施,其内容被合并于此,重复之处不再赘述。

[0073] 可以理解的是,所述用户终端可以包括智能手机、平板电子设备、网络机顶盒、便携式计算机、台式电脑、个人数字助理(PDA)、车载设备、智能穿戴设备等。其中,所述智能穿戴设备可以包括智能眼镜、智能手表、智能手环等。

[0074] 在实际应用中,前端原型调试方法的部分可以在如上述内容所述的电子设备侧执行,也可以所有的操作都在所述客户端设备中完成。具体可以根据所述客户端设备的处理能力,以及用户使用场景的限制等进行选择。本申请对此不作限定。若所有的操作都在所述客户端设备中完成,所述客户端设备还可以包括处理器。

[0075] 上述的客户端设备可以具有通信模块(即通信单元),可以与远程的服务器进行通信连接,实现与所述服务器的数据传输。所述服务器可以包括任务调度中心一侧的服务器,其他的实施场景中也可以包括中间平台的服务器,例如与任务调度中心服务器有通信链接的第三方服务器平台的服务器。所述的服务器可以包括单台计算机设备,也可以包括多个服务器组成的服务器集群,或者分布式装置的服务器结构。

[0076] 图7为本申请实施例的电子设备9600的系统构成的示意框图。如图7所示,该电子设备9600可以包括中央处理器9100和存储器9140;存储器9140耦合到中央处理器9100。值得注意的是,该图7是示例性的;还可以使用其他类型的结构,来补充或代替该结构,以实现电信功能或其他功能。

[0077] 一实施例中,前端原型调试方法功能可以被集成到中央处理器9100中。其中,中央处理器9100可以被配置为进行如下控制:

[0078] 步骤S101:监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息。

[0079] 步骤S102:根据设定代码重构规则将所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接为一渐进式UI组件,并在一预览区域渲染和展示所述渐进式UI组件。

[0080] 从上述描述可知,本申请实施例提供的电子设备,通过实时监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息,并在一预览区域渲染和展示所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接而成的渐进式UI组件,使得开发人员可以实时预览代码修改后的效果,不需要再通过启动一个完整的前端工程项目进行原型验证,节约了开发成本,能够有效提高前端原型的调试验证效率。

[0081] 在另一个实施方式中,前端原型调试装置可以与中央处理器9100分开配置,例如可以将前端原型调试装置配置为与中央处理器9100连接的芯片,通过中央处理器的控制来实现前端原型调试方法功能。

[0082] 如图7所示,该电子设备9600还可以包括:通信模块9110、输入单元9120、音频处理器9130、显示器9160、电源9170。值得注意的是,电子设备9600也并不是必须要包括图7中所示的所有部件;此外,电子设备9600还可以包括图7中没有示出的部件,可以参考现有技术。

[0083] 如图7所示,中央处理器9100有时也称为控制器或操作控件,可以包括微处理器或其他处理器装置和 / 或逻辑装置,该中央处理器9100接收输入并控制电子设备9600的各个部件的操作。

[0084] 其中,存储器9140,例如可以是缓存器、闪存、硬驱、可移动介质、易失性存储器、非易失性存储器或其它合适装置中的一种或更多种。可储存上述与失败有关的信息,此外还可存储执行有关信息的程序。并且中央处理器9100可执行该存储器9140存储的该程序,以实现信息存储或处理等。

[0085] 输入单元9120向中央处理器9100提供输入。该输入单元9120例如为按键或触摸输入装置。电源9170用于向电子设备9600提供电力。显示器9160用于进行图像和文字等显示对象的显示。该显示器例如可为LCD显示器,但并不限于此。

[0086] 该存储器9140可以是固态存储器,例如,只读存储器(ROM)、随机存取存储器(RAM)、SIM卡等。还可以是这样的存储器,其即使在断电时也保存信息,可被选择性地擦除且设有更多数据,该存储器的示例有时被称为EPROM等。存储器9140还可以是某种其它类型的装置。存储器9140包括缓冲存储器9141(有时被称为缓冲器)。存储器9140可以包括应用 / 功能存储部9142,该应用 / 功能存储部9142用于存储应用程序和功能程序或用于通过中央处理器9100执行电子设备9600的操作的流程。

[0087] 存储器9140还可以包括数据存储部9143,该数据存储部9143用于存储数据,例如联系人、数字数据、图片、声音和 / 或任何其他由电子设备使用的数据。存储器9140的驱动程序存储部9144可以包括电子设备的用于通信功能和 / 或用于执行电子设备的其他功能(如消息传送应用、通讯录应用等)的各种驱动程序。

[0088] 通信模块9110即为经由天线9111发送和接收信号的发送机 / 接收机9110。通信模块(发送机 / 接收机)9110耦合到中央处理器9100,以提供输入信号和接收输出信号,这可以和常规移动通信终端的情况相同。

[0089] 基于不同的通信技术,在同一电子设备中,可以设置有多个通信模块9110,如蜂窝网络模块、蓝牙模块和 / 或无线局域网模块等。通信模块(发送机 / 接收机)9110还经由音频处理器9130耦合到扬声器9131和麦克风9132,以经由扬声器9131提供音频输出,并接收来自麦克风9132的音频输入,从而实现通常的电信功能。音频处理器9130可以包括任何合适的缓冲器、解码器、放大器等。另外,音频处理器9130还耦合到中央处理器9100,从而使得可以通过麦克风9132能够在本机上录音,且使得可以通过扬声器9131来播放本机上存储的声音。

[0090] 本申请的实施例还提供能够实现上述实施例中的执行主体为服务器或客户端的前端原型调试方法中全部步骤的一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述实施例中的执行主体为服务器或客户端的前端原型调试方法的全部步骤,例如,所述处理器执行所述计算机程序时实现下述步骤:

[0091] 步骤S101:监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息。

[0092] 步骤S102:根据设定代码重构规则将所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接为一渐进式UI组件,并在一预览区域渲染和展示所述渐进式UI组件。

[0093] 从上述描述可知,本申请实施例提供的计算机可读存储介质,通过实时监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息,并在一预览区域渲染和展示所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接而成的渐进式UI组件,使得开发人员可以实时预览代码修改后的效果,不需要再通过启动一个完整的前端工程项目进行原型验证,节约了开发成本,能够有效提高前端原型的调试验证效率。

[0094] 本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。

[0095] 本发明是参照根据本发明实施例的方法、设备(装置)、和计算机程序产品的流程图和 / 或方框图来描述的。应理解可由计算机程序指令实现流程图和 / 或方框图中的每一流程和 / 或方框、以及流程图和 / 或方框图中的流程和 / 或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和 / 或方框图一个方框或多个方框中指定的功能的装置。

[0096] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和 / 或方框图一个方框或多个方框中指定的功能。

[0097] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 / 或方框图一个方框或多个方框中指定的功能的步骤。

[0098] 本发明中应用了具体实施例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。< / style>

Claims

1. A front-end prototype debugging method, characterized in that: The method comprises: Monitor and obtain tag information, dynamic script information and cascading style sheet information entered by a user in an editing area; splicing the tag information, the dynamic script information, and the cascading style sheet information into a progressive UI component according to a set code refactoring rule, and rendering and displaying the progressive UI component in a preview area; When the system is opened for the first time or the edit area code is modified, the edit area code needs to be transferred to the preview area and trigger a redraw to update the display effect. The execution process of the redraw is: Clearing the existing code in the preview area; After clearing the preview area, mount the css code, where webpack is not required to compile the Vue component. <style>标签的方式对css代码进行包装并添加至Vue要挂载的DOM元素内,以实现css代码的挂载;根据所述标签信息和所述动态脚本信息在初始页面元素节点上进行渐进式UI组件拼装操作;进行重新渲染,将前述拼装好的Vue组件作为子组件,重新声明Vue根组件并挂载至页面指定的DOM上,至此完成对代码修改的重绘。2.根据权利要求1所述的前端原型调试方法,其特征在于,所述根据设定代码重构规则将所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接为一渐进式UI组件,包括:通过设定标签将所述层叠样式表信息进行包装,并将经过所述包装后的层叠样式表信息挂载至一初始页面元素节点;根据所述标签信息和所述动态脚本信息在所述初始页面元素节点上进行渐进式UI组件拼装操作,并将完成所述拼装操作后的渐进式UI组件挂载至一目标页面元素节点。3.根据权利要求2所述的前端原型调试方法,其特征在于,所述根据所述标签信息和所述动态脚本信息在所述初始页面元素节点上进行渐进式UI组件拼装操作,包括:在所述初始页面元素节点上通过将所述动态脚本信息转换为对象,并将所述标签信息设定为所述对象的模板属性进行渐进式UI组件拼装操作。4.根据权利要求1所述的前端原型调试方法,其特征在于,在所述监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息之前,包括:在编辑区域内加载预设样例代码并在预览区域渲染和展示与所述样例代码对应的渐进式UI组件。5.一种前端原型调试装置,其特征在于,包括:调试编辑模块,用于监听并获取用户在一编辑区域内输入的标签信息、动态脚本信息以及层叠样式表信息;调试预览模块,用于根据设定代码重构规则将所述标签信息、所述动态脚本信息以及所述层叠样式表信息拼接为一渐进式UI组件,并在一预览区域渲染和展示所述渐进式UI组件;其中,所述装置进一步被配置为:当初次打开系统或编辑区域代码有修改时,需要将编辑区域代码传递至所述预览区域并触发重绘更新展示效果,所述重绘的执行流程为:清空所述预览区域中的现有代码;在清空所述预览区域后,挂载css代码,其中,在不用到webpack进行Vue组件的编译的情况下,通过<style>标签的方式对css代码进行包装并添加至Vue要挂载的DOM元素内,以实现css代码的挂载;根据所述标签信息和所述动态脚本信息在初始页面元素节点上进行渐进式UI组件拼装操作;进行重新渲染,将前述拼装好的Vue组件作为子组件,重新声明Vue根组件并挂载至页面指定的DOM上,至此完成对代码修改的重绘。6.根据权利要求5所述的前端原型调试装置,其特征在于,所述调试预览模块包括:元素节点挂载单元,用于通过设定标签将所述层叠样式表信息进行包装,并将经过所述包装后的层叠样式表信息挂载至一初始页面元素节点;组件代码拼接单元,用于根据所述标签信息和所述动态脚本信息在所述初始页面元素节点上进行渐进式UI组件拼装操作,并将完成所述拼装操作后的渐进式UI组件挂载至一目标页面元素节点。7.根据权利要求6所述的前端原型调试装置,其特征在于,所述组件代码拼接单元包括:渐进式UI组件拼装子单元,用于在所述初始页面元素节点上通过将所述动态脚本信息转换为对象,并将所述标签信息设定为所述对象的模板属性进行渐进式UI组件拼装操作。8.根据权利要求5所述的前端原型调试装置,其特征在于,还包括:默认加载单元,用于在编辑区域内加载预设样例代码并在预览区域渲染和展示与所述样例代码对应的渐进式UI组件。9.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1至4任一项所述的前端原型调试方法的步骤。10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至4任一项所述的前端原型调试方法的步骤。< / style>