A return operation method and system based on mobile terminal
By adding a draggable attribute and a listening module to the Button label of the mobile device, listening for drag and drop events, creating a mobile hot zone and returning to the upper page when the hot zone is triggered, the problem of a single return operation method and poor user experience on mobile devices is solved. problems, improving user experience and operational efficiency.
Patent Information
- Application Number
- CN202111219263.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-10-20
AI Technical Summary
The return operation method in mobile devices is single and lacks flexibility and customization, resulting in poor user experience. Especially when using a large-screen mobile phone with one hand, the phone is prone to slipping.
By adding draggable attributes to Button tags, a listening module is built to monitor drag and drop events, perform corresponding operations on HTML tags according to event operation instructions, create mobile hot spots, and return to the upper page when the hot spots are triggered, providing double-click and click events. Return the operation path with optimization.
It realizes the customized setting of return operation, expands the range of user choices, improves user experience and usage efficiency, reduces operating costs, and solves the problems of single return operation method and poor user experience.
Smart Images

Figure CN113946267B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a return operation method and system based on a mobile terminal. Background Art
[0002] The use of the "Back button" on the page is quite frequent in the mobile market, but the operation of the "Back button" is relatively simple in the Android and iOS systems. Taking the iOS system as an example, there are two ways to return from the current page to the upper page. One is to use the system's built-in upper left return button, and the other is to use finger touch to slide the page from left to right to return to the upper page. After investigation, it was found that these two methods are the default return methods of the system, but the user experience is poor, especially when the user uses a large-screen mobile phone with one hand. These two human-computer interaction methods are not only inconvenient for users to use, but also prone to mobile phone slipping. At the same time, there is a lack of methods or ways to solve similar problems in the market.
[0003] In the process of implementing the technical solution of the invention in the embodiment of the present application, the inventors of the present application found that the above technology has at least the following technical problems:
[0004] The existing technology has technical problems such as single return operation mode, lack of flexibility and customization, and poor user experience. Summary of the invention
[0005] The embodiment of the present application provides a return operation method and system based on a mobile terminal, which solves the technical problems in the prior art that the return operation mode is single, lacks flexibility and customization, and has a poor user experience. The technical effect of creating a new return path, realizing the customized setting of the return operation, expanding the range of user options, improving the user's usage efficiency and experience, and reducing the operation cost is achieved.
[0006] In view of the above problems, an embodiment of the present application provides a return operation method and system based on a mobile terminal.
[0007] In the first aspect, the present application provides a return operation method based on a mobile terminal, wherein the method includes: obtaining a first adding instruction, and adding a draggable attribute to a Button tag according to the first adding instruction; determining whether the real-time status of the draggable attribute is in a triggered state; when the draggable attribute is in a triggered state, obtaining a first drag and drop element; constructing a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag and drop element and obtain a first drag event; according to the first drag event, obtaining a first event operation instruction; performing corresponding operations on the HTML tag according to the first event operation instruction to obtain a first mobile hot zone; when the first mobile hot zone is in a triggered state, obtaining a first return instruction; and returning to the parent page according to the first return instruction.
[0008] On the other hand, the present application also provides a return operating system based on a mobile terminal, wherein the system includes: a first obtaining unit, the first obtaining unit is used to obtain a first adding instruction, and add a draggable attribute to the Button tag according to the first adding instruction; a first judging unit, the first judging unit is used to judge whether the real-time state of the draggable attribute is in a triggered state; a second obtaining unit, the second obtaining unit is used to obtain a first drag and drop element when the draggable attribute is in a triggered state; a first constructing unit, the first constructing unit is used to construct a first listening module, wherein the first listening module is used to listen to the occurrence event of the first drag and drop element and obtain a first drag event; a third obtaining unit, the third obtaining unit is used to obtain a first event operation instruction according to the first drag event; a fourth obtaining unit, the fourth obtaining unit is used to perform a corresponding operation on the HTML tag according to the first event operation instruction to obtain a first mobile hot zone; a fifth obtaining unit, the fifth obtaining unit is used to obtain a first return instruction when the first mobile hot zone is in a triggered state; a first execution unit, the first execution unit is used to return to the parent page according to the first return instruction.
[0009] On the other hand, an embodiment of the present application also provides a return operation method and system based on a mobile terminal, including 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 method described in the first aspect when executing the program.
[0010] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0011] The embodiment of the present application provides a return operation method and system based on a mobile terminal, which obtains a first adding instruction, adds a draggable attribute to a Button tag according to the first adding instruction; determines whether the real-time state of the draggable attribute is in a triggered state; when the draggable attribute is in a triggered state, obtains a first drag and drop element; constructs a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag and drop element and obtain a first drag event; obtains a first event operation instruction according to the first drag event; performs a corresponding operation on the HTML tag according to the first event operation instruction and obtains a first mobile hot zone; when the first mobile hot zone is in a triggered state, obtains a first return instruction; returns to the parent page according to the first return instruction. The technical problems of the single return operation mode, lack of flexibility and customization, and poor user experience in the prior art are solved. The technical effect of achieving the custom setting of the return operation by creating a new return path, expanding the range of user options, improving user efficiency and experience, and reducing operation costs is achieved.
[0012] The above description is an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, which can be implemented in accordance with the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a flow chart of a return operation method based on a mobile terminal according to an embodiment of the present application;
[0014] Figure 2 A schematic diagram of a process of returning to a higher-level page according to the second return instruction in a return operation method based on a mobile terminal according to an embodiment of the present application;
[0015] Figure 3 This is a flow chart of setting the HTML tag style in a return operation method based on a mobile terminal according to an embodiment of the present application;
[0016] Figure 4 This is a structural diagram of a mobile terminal-based return operating system according to an embodiment of the present application;
[0017] Figure 5 It is a schematic diagram of the structure of an exemplary electronic device according to an embodiment of the present application.
[0018] Explanation of the figure marks: first obtaining unit 11, first judging unit 12, second obtaining unit 13, first constructing unit 14, third obtaining unit 15, fourth obtaining unit 16, fifth obtaining unit 17, first executing unit 18, electronic device 300, memory 301, processor 302, communication interface 303, bus architecture 304. DETAILED DESCRIPTION
[0019] The embodiment of the present application provides a return operation method and system based on a mobile terminal, which solves the technical problems in the prior art that the return operation mode is single, lacks flexibility and customization, and has a poor user experience. The technical effect of creating a new return path, realizing the customized setting of the return operation, expanding the range of user options, improving the user's usage efficiency and experience, and reducing the operation cost is achieved.
[0020] Below, example embodiments of the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. It should be understood that the present application is not limited to the example embodiments described herein.
[0021] Application Overview
[0022] The use of the "Back button" on the page is quite frequent in the mobile market, but the operation of the "Back button" is relatively simple in the Android and iOS systems. Taking the iOS system as an example, there are two ways to return from the current page to the upper page. One is to use the system's built-in upper left return button, and the other is to use finger touch to slide the page from left to right to return to the upper page. After investigation, it was found that these two methods are the default return methods of the system, but the user experience is poor, especially when the user uses a large-screen mobile phone with one hand. These two human-computer interaction methods are not only inconvenient for users to use, but also prone to mobile phone slipping. At the same time, there is a lack of methods or ways to solve similar problems in the market.
[0023] In response to the above technical problems, the overall idea of the technical solution provided by this application is as follows:
[0024] The present application provides a return operation method based on a mobile terminal, wherein the method includes: obtaining a first adding instruction, and adding a draggable attribute to a Button tag according to the first adding instruction; determining whether the real-time state of the draggable attribute is in a triggered state; when the draggable attribute is in a triggered state, obtaining a first drag and drop element; constructing a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag and drop element and obtain a first drag event; according to the first drag event, obtaining a first event operation instruction; performing corresponding operations on an HTML tag according to the first event operation instruction and obtaining a first mobile hot zone; when the first mobile hot zone is in a triggered state, obtaining a first return instruction; and returning to the parent page according to the first return instruction.
[0025] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.
[0026] Embodiment 1
[0027] like Figure 1 As shown, an embodiment of the present application provides a return operation method based on a mobile terminal, wherein the method includes:
[0028] Step S100: obtaining a first adding instruction, and adding a draggable attribute to a Button tag according to the first adding instruction;
[0029] Step S200: determining whether the real-time state of the draggable attribute is in a triggered state;
[0030] Specifically, the use scenario of the page "return key" is quite frequent in the mobile terminal market, but for different systems, the operation method of the mobile phone "return key" is relatively simple, which is very unfriendly for users of large-screen mobile phones and users with small palms. The operation path is not easy, and usually requires the cooperation of both hands to complete the result of returning to the upper page, especially when operating the mobile phone with one hand, it is very easy for the mobile phone to slip, resulting in damage to the mobile phone and the need to repair or replace the mobile phone, and the loss cost is high. Now, by adding a click event to the HTML tag, the custom setting of the return operation is realized. First, attribute information needs to be added to the Button tag. The first adding instruction is used to add a draggable attribute to the Button tag. The element can be judged based on the draggable attribute to see whether it can be dragged, and then dragged. The draggable object can be text, image, etc. The draggable attribute is to add the attribute draggable = "draggable" to the Button tag, which means whether it can be dragged. The type attribute of the Button tag is set to a default value to make it in a draggable state, and the element can be added and dragged. The draggable attribute is monitored in real time to determine whether it satisfies the trigger condition. If so, the element can be dragged, thereby optimizing the path used by the return key.
[0031] Step S300: when the draggable attribute is in a triggered state, obtaining a first drag-and-drop element;
[0032] Step S400: constructing a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag-and-drop element to obtain a first drag event;
[0033] Specifically, the first drag-and-drop element refers to grabbing an object at one location and then dragging it to another location. For example, in the HTML5 standard, in order to make an element draggable, the draggable attribute is set to true, and true means draggable. Text, pictures and links can be dragged and dropped by default, and their draggable attributes are automatically set to true. Pictures and links can be dragged and dropped by holding down the left mouse button to select them. Text can only be dragged and dropped if it is selected. If the draggable attribute of the text is set to true, you can also drag and drop directly by holding down the left mouse button. The first monitoring module refers to the use of a monitoring function to monitor all events in the system in real time to determine events that occur during the dragging process. Construct a first monitoring module to monitor all elements of the system in real time, and then change the style of the HTML tag.
[0034] Step S500: obtaining a first event operation instruction according to the first drag event;
[0035] Step S600: performing corresponding operations on the HTML tag according to the first event operation instruction to obtain a first mobile hot zone;
[0036] Specifically, the first event operation instruction refers to different operation instructions for each state of dragging an element. For example, dragstart is triggered when the element starts to be dragged, drag is triggered repeatedly when the element is dragged, and dragend is triggered when the dragging operation is completed. These three are used for the dragged element; dragenter is triggered when the dragged element enters the screen space occupied by the destination element, dragover is triggered when the dragged element is in the destination element, and dragleave is triggered when the dragged element leaves the destination element without being dropped, and is used for the destination object. After reaching the destination, the element event drop is released. It is triggered when the dragged element is dropped in the destination element. Generally, it is necessary to cancel the default behavior of the browser. According to different events, HTML tags can be operated in the corresponding events. For example, for the dragged element, you need to select the element first, then drag it, and finally drop it. The corresponding one is dragstart-drag-dragend. For the target area, the element first enters the area, then stays on it, and finally is placed on it. The corresponding one is dragenter-dragover-drop. Of course, if the element is put in and then comes out without being put down, it will trigger the "lift-off" event--dragleave. During the dragging process, dragenter / dragover / dragleave / drop will occur on any element that the dragging track passes through. According to the state of the dragged element, the HTML tag style is changed, so that users can move up, down, left, and right in the page by touch dragging.
[0037] Step S700: when the first mobile hot zone is in a triggered state, obtaining a first return instruction;
[0038] Step S800: Return to the upper-level page according to the first return instruction.
[0039] Specifically, the first mobile hotspot refers to the part of the screen that is easier to touch when the user touches the screen with the thumb, especially for a large-screen mobile phone. These mobile hotspots are much more accurate than the hard-to-touch screen parts. Dragging elements in the mobile hotspots can achieve dragging accuracy. A movable hotspot is presented on the mobile page. Double-clicking and lightly touching the hotspot can achieve the effect of returning to the parent page, and the hotspot supports users to move up, down, left, and right in the page by touch dragging. This interactive method can solve the problem that it is more difficult to use the return operation on large-screen mobile phones, and optimize the use path of the return key in a new interactive method to reduce the cost of human-computer operation.
[0040] Furthermore, if Figure 2 As shown, the embodiment of the present application also includes step S900:
[0041] Step S910: obtaining a second adding instruction, and adding a double-click event to the Button tag according to the second adding instruction;
[0042] Step S920: determining whether the real-time state of the double-click event is in a triggered state;
[0043] Step S930: when the double-click event is in a triggered state, obtaining a second return instruction;
[0044] Step S940: Return to the upper page according to the second return instruction.
[0045] Specifically, the double-click event refers to adding a single-click event click to the Button tag. When the mouse pointer stays over the element, and then the left mouse button is pressed and released, a click occurs. Two clicks occur in a short period of time, which is a double click event, namely dblclick. Add a double-click event dblclick to the Button tag. When the click event is triggered, the trigger component can return to the parent page, thereby solving the problem that the return operation is more laborious on large-screen mobile phones. It optimizes the use path of the return key in a new interactive way and reduces the cost of human-computer operation.
[0046] Furthermore, if Figure 3 As shown, the embodiment of the present application also includes step S1000:
[0047] Step S1010: obtaining a third adding instruction, and adding a click event to the Button tag according to the third adding instruction;
[0048] Step S1020: determining whether the real-time state of the single-click event is in a triggered state;
[0049] Step S1030: when the single-click event is in a triggering state, obtaining a first setting instruction;
[0050] Step S1040: setting the HTML tag style according to the first setting instruction.
[0051] Specifically, the click event refers to a click that occurs when the mouse pointer stays on an element and then the left mouse button is pressed and released. A click event is added to the Button tag. When the click event is triggered, the trigger component can set the HTML tag style according to user needs, satisfying the user's custom editing and modification of the shape and color of the hot zone, and finally displaying it in the style the user likes. This setting is relatively flexible and the user has selectivity, thereby improving the user experience.
[0052] Furthermore, the embodiment of the present application further includes step S1100:
[0053] Step S1110: construct a return key component;
[0054] Step S1120: Return to the previous page according to the return key component.
[0055] Specifically, the return key component is introduced from the project, and it returns from the existing page to the previous page. The return key component is located in the movable hot zone. By double-clicking and tapping the hot zone, you can achieve the effect of returning to the parent page. This interaction method creates a new return operation path, which can solve the problem that the return operation is more difficult to use on large-screen mobile phones, improves the user experience, and optimizes the use path of the return key in a new interactive way, making the return operation simpler for users of large-screen mobile phones.
[0056] Furthermore, the embodiment of the present application further includes step S1200:
[0057] Step S1210: obtaining a fourth adding instruction, and adding component attributes to the return key component according to the fourth adding instruction;
[0058] Step S1220: Setting the return key component according to the component attributes.
[0059] Specifically, the fourth add instruction is used to add component attributes to the return key component. The component attributes provide a list of agent product components and their status at the agent level. The component attributes can be used to create a scenario for detecting component status changes. For example, the component input attribute is whether to return, and the method of returning to the previous page is customized, so that the user can complete the setting of the return key through the customized method of the component. This setting is relatively flexible, allowing users to have selectivity and improving the user experience.
[0060] Furthermore, the embodiment of the present application further includes step S1300:
[0061] Step S1310: Obtain component style attributes;
[0062] Step S1320: Customize the return key component according to the component style attributes.
[0063] Specifically, the component style attributes include custom settings for background color, background image, shape, border style, border background transparency, etc. It not only supports users to move up, down, left, and right on the page by touch dragging, but also supports users to edit and modify the shape and color of the hot zone, and finally display it in the style that users like. It solves the problem that the return operation is more laborious when using large-screen mobile phones, reduces the cost of human-computer operation, and improves the user experience.
[0064] Furthermore, the embodiment of the present application further includes step S1400:
[0065] Step S1410: Obtain component return attributes;
[0066] Step S1420: Customize the return key component according to the component return attribute.
[0067] Specifically, the component return attribute refers to completing the page return through a user-defined method on the already set return key. For example, the component input attribute is whether it can be dragged, and the method of returning to the previous page is customized, so that the user can move up, down, left, and right in the page by touching and dragging. This setting is relatively flexible, giving users choice and improving user experience.
[0068] In summary, the return operation method based on the mobile terminal provided in the embodiment of the present application has the following technical effects:
[0069] The present application provides a return operation method based on a mobile terminal, wherein the method includes: obtaining a first adding instruction, adding a draggable attribute to a Button tag according to the first adding instruction; judging whether the real-time state of the draggable attribute is in a triggering state; when the draggable attribute is in a triggering state, obtaining a first drag and drop element; constructing a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag and drop element and obtain a first drag event; according to the first drag event, obtaining a first event operation instruction; performing a corresponding operation on an HTML tag according to the first event operation instruction and obtaining a first mobile hot zone; when the first mobile hot zone is in a triggering state, obtaining a first return instruction; returning to the parent page according to the first return instruction. The method solves the technical problems of the single return operation mode, lack of flexibility and customization, and poor user experience in the prior art. The method achieves the technical effect of realizing the custom setting of the return operation by creating a new return path, expanding the range of user options, improving the user's usage efficiency and experience, and reducing the operation cost.
[0070] Embodiment 2
[0071] Based on the same inventive concept as the return operation method based on the mobile terminal in the aforementioned embodiment, the present invention also provides a return operation system based on the mobile terminal, such as Figure 4 As shown, the system comprises:
[0072] A first obtaining unit 11, wherein the first obtaining unit 11 is used to obtain a first adding instruction, and add a draggable attribute to the Button tag according to the first adding instruction;
[0073] A first judging unit 12, the first judging unit 12 is used to judge whether the real-time state of the draggable attribute is in a trigger state;
[0074] A second obtaining unit 13, wherein the second obtaining unit 13 is configured to obtain a first drag-and-drop element when the draggable attribute is in a triggered state;
[0075] A first construction unit 14, wherein the first construction unit 14 is used to construct a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag-and-drop element to obtain a first drag event;
[0076] A third obtaining unit 15, wherein the third obtaining unit 15 is used to obtain a first event operation instruction according to the first drag event;
[0077] A fourth obtaining unit 16, wherein the fourth obtaining unit 16 is used to perform a corresponding operation on the HTML tag according to the first event operation instruction to obtain a first mobile hot zone;
[0078] A fifth obtaining unit 17, wherein the fifth obtaining unit 17 is configured to obtain a first return instruction when the first mobile hot zone is in a triggered state;
[0079] The first execution unit 18 is used to return to the upper-level page according to the first return instruction.
[0080] Furthermore, the system also includes:
[0081] a sixth obtaining unit, the sixth obtaining unit being used to obtain a second adding instruction, and to add a double-click event to the Button tag according to the second adding instruction;
[0082] a second judging unit, the second judging unit being used to judge whether the real-time state of the double-click event is in a triggering state;
[0083] a seventh obtaining unit, the seventh obtaining unit being configured to obtain a second return instruction when the double-click event is in a triggered state;
[0084] The second execution unit is used to return to the upper page according to the second return instruction.
[0085] Furthermore, the system also includes:
[0086] an eighth obtaining unit, the eighth obtaining unit being used to obtain a third adding instruction, and to add a click event to the Button tag according to the third adding instruction;
[0087] A third judgment unit, the third judgment unit is used to judge whether the real-time state of the single-click event is in a trigger state;
[0088] a ninth obtaining unit, configured to obtain a first setting instruction when the single-click event is in a triggered state;
[0089] A third execution unit, wherein the third execution unit is used to set the HTML tag style according to the first setting instruction.
[0090] Furthermore, the system also includes:
[0091] A second construction unit, the second construction unit is used to construct a return key component;
[0092] A fourth execution unit, wherein the fourth execution unit is used to return to the upper-level page according to the return key component.
[0093] Furthermore, the system also includes:
[0094] a tenth obtaining unit, the tenth obtaining unit being used to obtain a fourth adding instruction, and to add a component attribute to the return key component according to the fourth adding instruction;
[0095] A fifth execution unit, wherein the fifth execution unit is used to set the return key component according to the component attribute.
[0096] Furthermore, the system also includes:
[0097] An eleventh obtaining unit, the eleventh obtaining unit is used to obtain a component style attribute;
[0098] The sixth execution unit is used to customize the return key component according to the component style attribute.
[0099] Furthermore, the system also includes:
[0100] A twelfth obtaining unit, the twelfth obtaining unit is used to obtain a component return attribute;
[0101] A seventh execution unit, the seventh execution unit is used to customize the return key component according to the component return attribute.
[0102] Exemplary Electronic Devices
[0103] Reference below Figure 5 To describe the electronic device of the embodiment of the present application.
[0104] Based on the same inventive concept as the return operation method based on a mobile terminal in the aforementioned embodiment, an embodiment of the present application also provides a return operating system based on a mobile terminal, including: a processor, the processor is coupled to a memory, the memory is used to store a program, when the program is executed by the processor, the system executes any one of the methods described in the first aspect.
[0105] The electronic device 300 includes: a processor 302, a communication interface 303, and a memory 301. Optionally, the electronic device 300 may also include a bus architecture 304. The communication interface 303, the processor 302, and the memory 301 may be interconnected via the bus architecture 304; the bus architecture 304 may be a peripheral component interconnection standard bus or an extended industrial standard structure bus. The bus architecture 304 may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0106] Processor 302 may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the present application. Communication interface 303 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, wireless access network, wireless local area network, wired access network, etc. Memory 301 may be a ROM or other types of static storage devices that can store static information and instructions, a RAM or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory, a read-only optical disc or other optical disc storage, an optical disc storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processor via a bus architecture 304. The memory may also be integrated with the processor.
[0107] The memory 301 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 302. The processor 302 is used to execute the computer-executable instructions stored in the memory 301, thereby realizing a return operation method based on a mobile terminal provided in the above embodiment of the present application.
[0108] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
[0109] The embodiments of the present application solve the technical problems in the prior art that the return operation mode is single, lacks flexibility and customization, and has a poor user experience. The technical effect of creating a new return path, realizing the customized setting of the return operation, expanding the range of user options, improving the user's usage efficiency and experience, and reducing the operation cost is achieved.
[0110] Those of ordinary skill in the art will appreciate that the various digital numbers such as the first and second involved in the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application, nor do they represent the order of precedence. "And / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one" refers to one or more. At least two refers to two or more. "At least one", "any one" or similar expressions refer to any combination of these items, including any combination of single items (individuals) or plural items (individuals). For example, at least one item (individual, kind) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0111] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium, an optical medium, or a semiconductor medium, etc.
[0112] The various illustrative logic units and circuits described in the embodiments of the present application can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or the design of any combination of the above functions. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any traditional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration to implement.
[0113] The steps of the method or algorithm described in the embodiments of the present application can be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. The software unit can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a terminal. Optionally, the processor and the storage medium can also be arranged in different components in the terminal. These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0114] Although the present application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations thereof can be made without departing from the spirit and scope of the present application.
[0115] Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.
Claims
1. A return operation method based on a mobile terminal, wherein: The method comprises: Obtain a first adding instruction, and add a draggable attribute to the Button tag according to the first adding instruction; Determine whether the real-time state of the draggable attribute is in a triggered state; When the draggable attribute is in a triggered state, obtaining a first drag-and-drop element; Constructing a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag-and-drop element to obtain a first drag event; Obtaining a first event operation instruction according to the first drag event, where the first event operation instruction refers to different operation instructions in various states of dragging an element; According to the first event operation instruction, a corresponding operation is performed on the HTML tag to obtain a first mobile hot zone, wherein a return key component is provided in the first mobile hot zone; When the first mobile hot zone is in a triggered state, obtaining a first return instruction; Return to the upper-level page according to the first return instruction.
2. The method of claim 1, wherein: The method comprises: Obtain a second adding instruction, and add a double-click event to the Button tag according to the second adding instruction; Determine whether the real-time state of the double-click event is in a triggered state; When the double-click event is in a triggered state, obtaining a second return instruction; Return to the upper page according to the second return instruction.
3. The method of claim 1, wherein: The method comprises: Obtain a third adding instruction, and add a click event to the Button tag according to the third adding instruction; Determine whether the real-time state of the single-click event is in a triggered state; When the single-click event is in a triggered state, obtaining a first setting instruction; According to the first setting instruction, the HTML tag style is set.
4. The method of claim 2, wherein: The method comprises: Build the return key component; According to the return key component, return to the previous page.
5. The method of claim 4, wherein: The method comprises: Obtain a fourth adding instruction, and add a component attribute to the return key component according to the fourth adding instruction; The return key component is set according to the component attribute.
6. The method of claim 5, wherein: The method comprises: Get component style properties; The return key component is customized according to the component style attribute.
7. The method of claim 5, wherein: The method comprises: Get component return attributes; The return key component is customized according to the component return attribute.
8. A return operating system based on a mobile terminal, wherein: The system comprises: a first obtaining unit, the first obtaining unit being used to obtain a first adding instruction, and to add a draggable attribute to the Button tag according to the first adding instruction; A first judging unit, the first judging unit is used to judge whether the real-time state of the draggable attribute is in a triggered state; a second obtaining unit, the second obtaining unit being used to obtain a first drag-and-drop element when the draggable attribute is in a triggered state; A first construction unit, the first construction unit is used to construct a first monitoring module, wherein the first monitoring module is used to monitor the occurrence event of the first drag and drop element to obtain a first drag event; a third obtaining unit, the third obtaining unit being configured to obtain a first event operation instruction according to the first drag event, where the first event operation instruction refers to different operation instructions in various states of dragging an element; a fourth obtaining unit, the fourth obtaining unit being used to perform a corresponding operation on the HTML tag according to the first event operation instruction to obtain a first mobile hot zone, wherein a return key component is provided in the first mobile hot zone; a fifth obtaining unit, configured to obtain a first return instruction when the first mobile hot zone is in a triggered state; A first execution unit, wherein the first execution unit is used to return to the upper-level page according to the first return instruction.
9. A return operating system based on a mobile terminal, comprising: A processor, the processor is coupled to a memory, the memory is used to store a program, when the program is executed by the processor, the system executes the method according to any one of claims 1 to 7.
