Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for executing web app in complete state mode

A state mode and execution module technology, applied in the computer field, can solve problems such as difficult modification and expansion, high coupling, and large amount of code, and achieve the effect of small number and low coupling

Inactive Publication Date: 2017-03-29
ALIBABA GRP HLDG LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] But in the prior art, for the web app, the business logic of each stage is implemented together, there are a lot of conditional statements, and huge conditional statements are not welcome, they form a large block and make the code insufficient Clarity, which in turn makes them difficult to modify and extend, highly coupled
For example, in the prior art, the editing and saving of the web app is in a class, wherein, when saving, it is not necessary to first determine which part of the keyboard event and mouse event is enabled, and which part of the keyboard event and mouse event is disabled, but when saving It is also necessary to determine which part of the keyboard event and mouse event is enabled, and which part of the keyboard event and mouse event is disabled. Editing behavior and saving behavior are coupled to the judgment of keyboard and mouse events, and the amount of code is large

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for executing web app in complete state mode
  • Method and device for executing web app in complete state mode
  • Method and device for executing web app in complete state mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0031] One of the core concepts of the embodiment of the present application is to divide the web app into various states based on the state pattern and in advance according to the attributes that determine the behavior changes of the web app, and set corresponding state classes for each state, and each state class includes a corresponding state Related behaviors, and state transition logic for state class jumps. When the web app is executed, each state class of the web app object is executed independently and does not overlap with other states. Therefore, in the embodiment of the present application, the web app can run in a complete state mode, and the conditional judgment blocks in the code are small,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for executing a web app in a complete state mode, a device for executing the web app in the complete state mode, and an APP in the complete state mode, and relates to the technical field of computers. The method comprises the steps of dividing the web app into various states in advance according to attributes of determining a behavior change of the web app, and setting corresponding state classes for various states, wherein each state class comprises related behaviors of the corresponding state, and a state conversion logic for a state class jump; and when a web app object executes one state class, executing the relate behaviors of the state in the state of the state class, and enabling the web app object to jump into execution of another state class corresponding to the state conversion logic from the currently executed state class according to the state conversion logic of the state class. According to the method and the device, the web app can run in the complete state mode, condition judgment blocks in a code are small and are dispersed into specific state classes, and the coupling property is low.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method for executing a web app in a full state mode and a device for executing a web app in a full state mode. Background technique [0002] A web app is an application program accessed over a network (such as the Internet or an intranet); it can also refer to computer software hosted in a browser-supported environment or using a browser-supported language (such as JavaScript, scripting) and relying on a web browser to Rendered application. The popularity of web apps is due to the popularity of web browsers and the convenient user experience of using this thin and light client. It can be updated and maintained without downloading and installing, and has the inherent property of supporting cross-platform, which is the key reason why web apps become popular. Typical web app products include web mailboxes, web stores, wikis, and more. To implement a web app, the fol...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/44
Inventor 熊亮
Owner ALIBABA GRP HLDG LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More