[go: up one dir, main page]

CN111857488A - Method, device, electronic device and storage medium for pop-up menu in applet - Google Patents

Method, device, electronic device and storage medium for pop-up menu in applet Download PDF

Info

Publication number
CN111857488A
CN111857488A CN202010621951.6A CN202010621951A CN111857488A CN 111857488 A CN111857488 A CN 111857488A CN 202010621951 A CN202010621951 A CN 202010621951A CN 111857488 A CN111857488 A CN 111857488A
Authority
CN
China
Prior art keywords
long
picture
determining
press position
menu
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.)
Granted
Application number
CN202010621951.6A
Other languages
Chinese (zh)
Other versions
CN111857488B (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010621951.6A priority Critical patent/CN111857488B/en
Publication of CN111857488A publication Critical patent/CN111857488A/en
Application granted granted Critical
Publication of CN111857488B publication Critical patent/CN111857488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种小程序中菜单弹出的方法、装置、电子设备和存储介质,涉及小程序以及图片编辑处理技术领域。本申请在进行小程序中菜单弹出时所采用的实现方案为:检测到用户在小程序中产生长按动作之后,获取长按位置;响应于确定所述长按位置存在图片,弹出对应所述图片的菜单。本申请能够简化用户的操作步骤,提升用户的操作效率等。

Figure 202010621951

The present application discloses a method, device, electronic device and storage medium for popping up a menu in an applet, and relates to the technical field of applet and picture editing and processing. The implementation scheme adopted by the present application when the menu pops up in the applet is: after detecting that the user produces a long-press action in the applet, the long-press position is obtained; in response to determining that there is a picture in the long-press position, a pop-up corresponding to the Picture menu. The present application can simplify the operation steps of the user, improve the operation efficiency of the user, and the like.

Figure 202010621951

Description

小程序中菜单弹出的方法、装置、电子设备和存储介质Method, device, electronic device and storage medium for pop-up menu in applet

技术领域technical field

本申请涉及互联网技术领域,尤其涉及小程序、图片编辑处理技术领域中的一种小程序中菜单弹出的方法、装置、电子设备和存储介质。The present application relates to the field of Internet technologies, and in particular, to a method, apparatus, electronic device and storage medium for popping up a menu in a small program in the technical field of small programs and picture editing and processing.

背景技术Background technique

现有技术中,用户在小程序中长按图片时,并不会向用户弹出提供多个与图片相关功能的菜单。因此,若用户想要实现与小程序中图片相关的功能,需要进行多次操作,因此操作步骤比较繁琐、操作效率较低。In the prior art, when a user long presses a picture in the applet, a menu providing multiple picture-related functions is not popped up to the user. Therefore, if the user wants to realize the function related to the picture in the applet, multiple operations are required, so the operation steps are complicated and the operation efficiency is low.

发明内容SUMMARY OF THE INVENTION

本申请为解决技术问题所采用的技术方案是提供一种小程序中菜单弹出的方法,包括:检测到用户在小程序中产生长按动作之后,获取长按位置;响应于确定所述长按位置存在图片,弹出对应所述图片的菜单。The technical solution adopted by the present application to solve the technical problem is to provide a method for popping up a menu in an applet, which includes: after detecting that a user produces a long-press action in the applet, obtaining the position of the long-press; in response to determining the long-press If there is a picture at the location, a menu corresponding to the picture pops up.

本申请为解决技术问题所采用的技术方案是提供一种小程序中菜单弹出的装置,包括:检测单元,用于检测到用户在小程序中产生长按动作之后,获取长按位置;弹出单元,用于响应于确定所述长按位置存在图片,弹出对应所述图片的菜单。The technical solution adopted by the present application to solve the technical problem is to provide a device for popping up a menu in an applet, including: a detection unit for acquiring a long-press position after detecting that a user performs a long-press action in the applet; a pop-up unit; , used to pop up a menu corresponding to the picture in response to determining that there is a picture at the long-pressed position.

一种电子设备,其特征在于,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述方法。An electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the Instructions are executed by the at least one processor to enable the at least one processor to perform the above-described method.

一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行上述方法。A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the above method.

上述申请中的一个实施例具有如下优点或有益效果:本申请能够简化用户的操作步骤,提升用户的操作效率等。因为采用了在检测到用户对小程序中图片进行长按之后弹出菜单的技术手段,所以克服了现有技术中长按小程序中图片时无法弹出菜单的技术问题,实现了简化用户的操作步骤,提升用户的操作效率等技术效果。An embodiment in the above application has the following advantages or beneficial effects: the present application can simplify the user's operation steps, improve the user's operation efficiency, and the like. Because the technical means of popping up the menu after detecting that the user has long-pressed the picture in the applet is adopted, the technical problem that the menu cannot be popped up when the picture in the applet is long-pressed in the prior art is overcome, and the operation steps of the user are simplified. , improve the user's operating efficiency and other technical effects.

上述可选方式所具有的其他效果将在下文中结合具体实施例加以说明。Other effects of the above-mentioned optional manners will be described below with reference to specific embodiments.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present application. in:

图1是根据本申请第一实施例的示意图;1 is a schematic diagram according to a first embodiment of the present application;

图2是根据本申请第二实施例的示意图;2 is a schematic diagram according to a second embodiment of the present application;

图3是根据本申请第三实施例的示意图;3 is a schematic diagram according to a third embodiment of the present application;

图4是根据本申请第四实施例的示意图;4 is a schematic diagram according to a fourth embodiment of the present application;

图5是根据本申请第五实施例的示意图;5 is a schematic diagram according to a fifth embodiment of the present application;

图6是用来实现本申请实施例的小程序中菜单弹出的方法的电子设备的框图。FIG. 6 is a block diagram of an electronic device used to implement the method for popping up a menu in an applet according to an embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

图1是根据本申请第一实施例的示意图。如图1中所示,本实施例的小程序中菜单弹出的方法,具体可以包括如下步骤:FIG. 1 is a schematic diagram according to a first embodiment of the present application. As shown in FIG. 1 , the method for popping up a menu in an applet in this embodiment may specifically include the following steps:

S101、检测到用户在小程序中产生长按动作之后,获取长按位置;S101. After detecting that the user generates a long-pressing action in the applet, obtain the long-pressing position;

S102、响应于确定所述长按位置存在图片,弹出对应所述图片的菜单。S102. In response to determining that there is a picture at the long-pressed position, pop up a menu corresponding to the picture.

本实施例的菜单弹出的方法,在用户使用小程序的过程中,当检测到用户产生长按动作之后,响应于确定长按位置存在图片,弹出对应图片的菜单,通过所弹出的菜单向用户提供多个与图片相关的功能,避免了现有技术中需要用户进行多次操作才能够实现相关功能的问题,从而简化了用户的操作步骤,提升了用户的操作效率。In the method for popping up a menu in this embodiment, in the process of the user using the applet, after it is detected that the user has made a long-press action, in response to determining that there is a picture at the long-pressed position, a menu corresponding to the picture is popped up, and the user is presented to the user through the pop-up menu. Providing multiple functions related to pictures avoids the problem in the prior art that the user needs to perform multiple operations to realize the related functions, thereby simplifying the user's operation steps and improving the user's operation efficiency.

本实施例通过弹出的菜单所提供的与图片相关的功能,包括查看图片、识图搜索、保存图片、分享图片以及设置壁纸等功能中的至少一种。可以理解的是,本实施例对弹出的菜单所提供的与图片相关的功能的数量以及类型不进行限制。The picture-related functions provided by the pop-up menu in this embodiment include at least one of the functions of viewing pictures, identifying and searching for pictures, saving pictures, sharing pictures, and setting wallpapers. It can be understood that, this embodiment does not limit the number and types of functions related to pictures provided by the pop-up menu.

本实施例在执行S101检测用户在小程序中产生长按动作时,可以采用以下方式:监听用户使用小程序时的操作,例如用户使用终端设备中的小程序时进行了点击、滑动等;当检测到用户点击同一位置处的时长超过预设阈值时,确定用户在小程序中产生了长按动作,否则确定用户未产生长按动作。In this embodiment, when S101 is executed to detect that the user generates a long-press action in the applet, the following methods may be adopted: monitor the operation of the user when using the applet, for example, the user clicks, slides, etc. when using the applet in the terminal device; When it is detected that the user clicks on the same position for a duration exceeding a preset threshold, it is determined that the user has generated a long-pressing action in the applet; otherwise, it is determined that the user has not generated a long-pressing action.

当本实施例确定用户在小程序中产生长按动作之后,获取长按位置,该长按位置即为用户产生长按动作时点击屏幕的坐标。When it is determined in this embodiment that the user performs a long-press action in the applet, the long-press position is obtained, and the long-press position is the coordinates of the click on the screen when the user performs the long-press action.

本实施例在执行S101获取了长按位置之后,执行S102确定该长按位置是否存在图片,若存在,则弹出对应图片的菜单,否则不弹出。In this embodiment, after the long-pressed position is obtained by executing S101, S102 is executed to determine whether there is a picture at the long-pressed position, and if so, a menu corresponding to the picture is popped up, otherwise it is not popped up.

本实施例在执行S102确定长按位置存在图片时,可以包含以下内容:获取长按位置处最顶层的视图元素;确定所获取的视图元素是否为image组件;若是,则确定长按位置存在图片。In this embodiment, when it is determined that there is a picture at the long-pressed position in S102, the following contents may be included: obtain the topmost view element at the long-pressed position; determine whether the acquired view element is an image component; if so, determine that there is a picture at the long-pressed position .

本实施例在执行S102确定长按位置存在图片时,还可以包含以下内容:确定所获取的视图元素不是image组件之后,确定所获取的视图元素是否为image标签;若是,则确定长按位置存在图片。In this embodiment, when it is determined that there is an image at the long-pressed position in S102, the following may be further included: after determining that the acquired view element is not an image component, determine whether the acquired view element is an image tag; if so, determine that the long-pressed position exists picture.

本实施例在执行S102确定长按位置存在图片时,还可以包含以下内容:确定所获取的视图元素不是image标签之后,确定所获取的视图元素是否有背景图;若是,则确定长按位置存在图片,否则确定长按位置不存在图片。In this embodiment, when it is determined that there is an image at the long-pressed position in S102, the following may be further included: after determining that the acquired view element is not an image tag, determine whether the acquired view element has a background image; if so, determine that the long-pressed position exists Picture, otherwise it is determined that there is no picture at the long-pressed position.

也就是说,本实施例通过上述多次判断过程来确定长按位置是否存在图片,避免了单次判断确定不存在图片之后无法弹出菜单的问题,从而更加准确地确定长按位置是否存在图片,从而提升菜单弹出的准确性。That is to say, this embodiment determines whether there is a picture at the long-pressed position through the above-mentioned multiple judgment processes, avoiding the problem that the menu cannot be popped up after a single judgment determines that there is no picture, so as to more accurately determine whether there is a picture at the long-pressed position. Thereby improving the accuracy of the menu pop-up.

利用本实施例提供的上述方法,在确定用户产生长按动作的长按位置存在图片时,即可弹出对应图片的菜单,实现了便捷地向用户提供多个与图片相关的功能的目的,简化了用户的操作步骤,提升了用户的操作效率。By using the above method provided in this embodiment, when it is determined that there is a picture at the long-pressed position where the user performs the long-pressing action, a menu corresponding to the picture can be popped up, which achieves the purpose of conveniently providing the user with multiple functions related to the picture, and simplifies the The operation steps of the user are improved, and the operation efficiency of the user is improved.

图2是根据本申请第二实施例的示意图。如图2中所示,本实施例的小程序中菜单弹出的方法,具体可以包括如下步骤:FIG. 2 is a schematic diagram according to a second embodiment of the present application. As shown in FIG. 2 , the method for popping up a menu in an applet in this embodiment may specifically include the following steps:

S201、检测到用户在小程序中产生长按动作之后,获取长按位置;S201. After detecting that the user generates a long-pressing action in the applet, obtain the long-pressing position;

S202、确定所述长按位置存在图片之后,确定菜单弹出功能是否被禁用;S202, after determining that there is a picture in the long-pressed position, determine whether the menu pop-up function is disabled;

S203、响应于确定所述菜单弹出功能未被禁用,弹出对应所述图片的菜单。S203. In response to determining that the menu pop-up function is not disabled, pop up a menu corresponding to the picture.

因此,本实施例在确定了长按位置存在图片之后,并不会立即执行弹出菜单的操作,而是在确定了小程序的菜单弹出功能未被禁用时,再进行菜单的弹出,从而能够避免在菜单弹出功能被禁用时仍能够弹出菜单的问题,提升了菜单弹出的准确性。Therefore, in this embodiment, after it is determined that there is a picture at the long-pressed position, the operation of popping up the menu will not be performed immediately, but the menu will be popped up when it is determined that the menu popup function of the applet is not disabled, so as to avoid The problem that the menu can still be popped up when the menu pop-up function is disabled has improved the accuracy of the menu pop-up.

可以理解的是,小程序的开发者可以对小程序的菜单弹出功能的禁用状态进行设置,因此本实施例在执行S202时,可以通过小程序的开发日志来获取小程序的菜单弹出功能的禁用状态,从而确定菜单弹出功能是否被禁用。It can be understood that the developer of the applet can set the disabled state of the menu pop-up function of the applet. Therefore, when S202 is executed in this embodiment, the disablement of the menu pop-up function of the applet can be obtained through the development log of the applet. status, which determines whether the menu popup feature is disabled.

本实施例在执行S202之后,若确定小程序的菜单弹出功能被禁用时,则不会执行弹出对应图片的菜单的操作,并可以向用户返回提示信息以告知菜单弹出功能被禁用。After performing S202 in this embodiment, if it is determined that the menu pop-up function of the applet is disabled, the operation of popping up the menu corresponding to the picture will not be performed, and a prompt message may be returned to the user to inform that the menu pop-up function is disabled.

图3是根据本申请第三实施例的示意图。如图3中所示,本实施例的小程序中菜单弹出的方法,具体可以包括如下步骤:FIG. 3 is a schematic diagram according to a third embodiment of the present application. As shown in FIG. 3 , the method for popping up a menu in the applet of this embodiment may specifically include the following steps:

S301、检测到用户在小程序中产生长按动作之后,获取长按位置;S301. After detecting that the user generates a long-pressing action in the applet, obtain the long-pressing position;

S302、确定所述长按位置存在图片且菜单弹出功能未被禁用之后,确定所述长按位置处的当前组件是否绑定了长按事件;S302. After determining that there is a picture at the long-pressed position and the menu pop-up function is not disabled, determine whether the current component at the long-pressed position is bound to a long-pressed event;

S303、响应于确定所述长按位置处的当前组件未绑定长按事件,弹出对应所述图片的菜单。S303. In response to determining that the current component at the long-press position is not bound to a long-press event, pop up a menu corresponding to the picture.

因此,本实施例在确定长按位置存在图片且菜单弹出功能未被禁用之后,也不会立即执行弹出菜单的操作,而是在确定了长按位置处的当前组件未绑定长按事件时,再进行菜单的弹出,从而能够避免用户执行当前组件的长按事件时菜单被错误弹出的问题,提升了菜单弹出的准确性。Therefore, in this embodiment, after it is determined that there is a picture at the long-pressed position and the menu pop-up function is not disabled, the operation of popping up the menu will not be performed immediately, but when it is determined that the current component at the long-pressed position is not bound to the long-pressed event , and then pop up the menu, which can avoid the problem that the menu is popped up by mistake when the user executes the long-press event of the current component, and improves the accuracy of the menu popup.

可以理解的是,本实施例在执行S302确定长按位置处的当前组件时,可以将长按位置处最顶层的视图元素对应的组件作为当前组件。It can be understood that, when S302 is executed to determine the current component at the long-pressed position in this embodiment, the component corresponding to the topmost view element at the long-pressed position may be used as the current component.

由于小程序的开发者可以设置小程序中不同组件所绑定的事件,因此本实施例在执行S302时,可以通过获取小程序的开发日志来确定长按位置处的当前组件是否绑定了长按事件。Since the developer of the applet can set the events bound to different components in the applet, in this embodiment, when S302 is executed, the development log of the applet can be obtained to determine whether the current component at the long-pressed position is bound to the long-pressed By event.

本实施例在执行S302之后,若确定长按位置处的当前组件绑定了长按事件,则不会执行弹出对应图片的菜单的操作。In this embodiment, after S302 is performed, if it is determined that the current component at the long-pressed position is bound with a long-pressed event, the operation of popping up a menu corresponding to a picture will not be performed.

图4是根据本申请第四实施例的示意图。如图4中所示,本实施例的小程序中菜单弹出的方法,具体可以包括如下步骤:FIG. 4 is a schematic diagram according to a fourth embodiment of the present application. As shown in FIG. 4 , the method for popping up a menu in an applet in this embodiment may specifically include the following steps:

S401、检测到用户在小程序中产生长按动作之后,获取长按位置;S401. After detecting that the user generates a long-press action in the applet, obtain the long-press position;

S402、确定所述长按位置存在图片、菜单弹出功能未被禁用并且所述长按位置处的当前组件未绑定长按事件之后,确定所述当前组件之上的N级父组件是否绑定了长按事件,其中N为正整数;S402. After determining that there is a picture at the long-press position, the menu pop-up function is not disabled, and the current component at the long-press position is not bound to a long-press event, determine whether the N-level parent component above the current component is bound long press event, where N is a positive integer;

S403、响应于确定所述当前组件之上的N级父组件均未绑定长按事件,弹出对应所述图片的菜单。S403. In response to determining that none of the N-level parent components above the current component is bound to a long-press event, pop up a menu corresponding to the picture.

因此,本实施例在确定长按位置存在图片、菜单弹出功能未被禁用以及长按位置处的当前组件未绑定长按事件之后,还不会立即执行弹出菜单的操作,而是在确定了当前组件向上N级的父组件均未绑定长按事件时,再进行菜单的弹出,从而能够避免用户在执行当前组件的父组件的长按事件时菜单被错误弹出的问题,提升了菜单弹出的准确性。Therefore, in this embodiment, after it is determined that there is a picture at the long-pressed position, the menu pop-up function is not disabled, and the current component at the long-pressed position is not bound to the long-pressed event, the operation of popping up the menu will not be executed immediately, but the When the parent component up to N levels of the current component is not bound to the long-press event, the menu will be popped up, so as to avoid the problem that the menu is incorrectly popped up when the user executes the long-press event of the parent component of the current component, and the menu pop-up is improved. accuracy.

可以理解的是,本实施例在执行S402时,可以通过小程序的开发日志来确定当前组件之上的N级父组件是否绑定了长按事件。It can be understood that, when S402 is executed in this embodiment, whether the N-level parent component above the current component is bound to the long-press event can be determined through the development log of the applet.

本实施例在执行S402之后,若确定当前组件之上的N级父组件绑定了长按事件,则不会执行弹出对应图片的菜单的操作。After performing S402 in this embodiment, if it is determined that the N-level parent component above the current component is bound with a long-press event, the operation of popping up a menu corresponding to a picture will not be performed.

图5是根据本申请第五实施例的示意图。如图5中所示,本实施例的小程序中菜单弹出的装置,包括:FIG. 5 is a schematic diagram according to a fifth embodiment of the present application. As shown in FIG. 5 , the device for popping up the menu in the applet of this embodiment includes:

检测单元501、用于检测到用户在小程序中产生长按动作之后,获取长按位置;The detection unit 501 is configured to obtain the long-pressed position after detecting that the user generates a long-pressed action in the applet;

弹出单元502、用于响应于确定所述长按位置存在图片,弹出对应所述图片的菜单。Pop-up unit 502, configured to pop up a menu corresponding to the picture in response to determining that there is a picture at the long-pressed position.

检测单元501在检测用户在小程序中产生长按动作时,可以采用以下方式:监听用户使用小程序时的操作;当检测到用户点击同一位置处的时长超过预设阈值时,确定用户在小程序中产生了长按动作,否则确定用户未产生长按动作。When the detection unit 501 detects that the user generates a long-pressing action in the applet, the following methods may be adopted: monitor the operation of the user when using the applet; A long-press action is generated in the program, otherwise it is determined that the user does not generate a long-press action.

当检测单元501确定用户在小程序中产生长按动作之后,获取长按位置,该长按位置即为用户产生长按动作时点击屏幕的坐标。After the detection unit 501 determines that the user performs a long-press action in the applet, it acquires the long-press position, and the long-press position is the coordinates of the click on the screen when the user performs the long-press action.

在检测单元501获取了长按位置之后,由弹出单元502确定该长按位置是否存在图片,若存在,则弹出对应图片的菜单,否则不弹出。After the detection unit 501 acquires the long-pressed position, the pop-up unit 502 determines whether there is a picture at the long-pressed position, and if so, pops up a menu corresponding to the picture, otherwise it does not pop up.

弹出单元502在确定长按位置存在图片时,可以包含以下内容:获取长按位置处最顶层的视图元素;确定所获取的视图元素是否为image组件;若是,则确定长按位置存在图片。When the pop-up unit 502 determines that there is a picture at the long-pressed position, it may include the following contents: obtain the topmost view element at the long-pressed position; determine whether the acquired view element is an image component; if so, determine that there is a picture at the long-pressed position.

弹出单元502在确定长按位置存在图片时,还可以包含以下内容:确定所获取的视图元素不是image组件之后,确定所获取的视图元素是否为image标签;若是,则确定长按位置存在图片。When determining that there is a picture at the long-pressed position, the pop-up unit 502 may further include the following content: after determining that the acquired view element is not an image component, determine whether the acquired view element is an image tag; if so, determine that there is a picture at the long-pressed position.

弹出单元502在确定长按位置存在图片时,还可以包含以下内容:确定所获取的视图元素不是image标签之后,确定所获取的视图元素是否有背景图;若是,则确定长按位置存在图片,否则确定长按位置不存在图片。When the pop-up unit 502 determines that there is a picture at the long-pressed position, it may also include the following content: after determining that the acquired view element is not an image tag, determine whether the acquired view element has a background image; if so, then determine that there is a picture at the long-pressed position, Otherwise, make sure that there is no picture at the long-pressed position.

也就是说,弹出单元502通过上述多次判断过程来确定长按位置是否存在图片,避免了单次判断确定不存在图片之后无法弹出菜单的问题,从而更加准确地确定长按位置是否存在图片,从而提升菜单弹出的准确性。That is to say, the pop-up unit 502 determines whether there is a picture at the long-pressed position through the above-mentioned multiple judgment processes, avoiding the problem that the menu cannot be popped up after a single judgment determines that there is no picture, so as to more accurately determine whether there is a picture at the long-pressed position, Thereby improving the accuracy of the menu pop-up.

弹出单元502在执行响应于确定长按位置存在图片,弹出对应所述图片的菜单,还可以包含以下内容:确定长按位置存在图片之后,确定菜单弹出功能是否被禁用;响应于确定菜单弹出功能未被禁用,弹出对应图片的菜单。The pop-up unit 502, in response to determining that there is a picture at the long-pressed position, pops up a menu corresponding to the picture, and may also include the following content: after determining that there is a picture at the long-pressed position, determining whether the menu pop-up function is disabled; in response to determining that the menu pop-up function is If it is not disabled, a menu corresponding to the image will pop up.

因此,弹出单元502在确定了长按位置存在图片之后,并不会立即执行弹出菜单的操作,而是在确定了小程序的菜单弹出功能未被禁用时,再进行菜单的弹出,从而能够避免在菜单弹出功能被禁用时仍能够弹出菜单的问题,提升了菜单弹出的准确性。Therefore, the pop-up unit 502 does not immediately execute the pop-up menu operation after determining that there is a picture at the long-pressed position, but pops up the menu when it is determined that the menu pop-up function of the applet is not disabled, so as to avoid The problem that the menu can still be popped up when the menu pop-up function is disabled has improved the accuracy of the menu pop-up.

可以理解的是,小程序的开发者可以对小程序的菜单弹出功能的禁用状态进行设置,因此弹出单元502可以通过小程序的开发日志来获取小程序的菜单弹出功能的禁用状态,从而确定菜单弹出功能是否被禁用。It can be understood that the developer of the applet can set the disabled state of the menu pop-up function of the applet, so the pop-up unit 502 can obtain the disabled state of the menu pop-up function of the applet through the development log of the applet, so as to determine the menu. Whether the popup function is disabled.

弹出单元502确定小程序的菜单弹出功能被禁用时,则不会执行弹出对应图片的菜单的操作,并可以向用户返回提示信息以告知菜单弹出功能被禁用。When the pop-up unit 502 determines that the menu pop-up function of the applet is disabled, the operation of popping up the menu corresponding to the picture will not be performed, and a prompt message may be returned to the user to inform the menu pop-up function that the menu pop-up function is disabled.

弹出单元502在执行响应于确定长按位置存在图片,弹出对应所述图片的菜单,还可以包含以下内容:确定长按位置存在图片且菜单弹出功能未被禁用之后,确定长按位置处的当前组件是否绑定了长按事件;响应于确定长按位置处的当前组件未绑定长按事件,弹出所述图片的菜单。The pop-up unit 502 pops up a menu corresponding to the picture in response to determining that there is a picture at the long-pressed position, and may also include the following content: after determining that there is a picture at the long-pressed position and the menu pop-up function is not disabled, determine the current value at the long-pressed position. Whether the component is bound to a long-press event; in response to determining that the current component at the long-press position is not bound to a long-press event, a menu of the picture pops up.

因此,弹出单元502在确定长按位置存在图片且菜单弹出功能未被禁用之后,也不会立即执行弹出菜单的操作,而是在确定了长按位置处的当前组件未绑定长按事件时,再进行菜单的弹出,从而能够避免用户执行当前组件的长按事件时菜单被错误弹出的问题,提升了菜单弹出的准确性。Therefore, after the pop-up unit 502 determines that there is a picture at the long-pressed position and the menu pop-up function is not disabled, the pop-up menu operation will not be performed immediately, but when it is determined that the current component at the long-pressed position is not bound to the long-press event , and then pop up the menu, which can avoid the problem that the menu is popped up by mistake when the user executes the long-press event of the current component, and improves the accuracy of the menu popup.

可以理解的是,弹出单元502在确定长按位置处的当前组件时,可以将长按位置处最顶层的视图元素对应的组件作为当前组件。It can be understood that, when the pop-up unit 502 determines the current component at the long-pressed position, the component corresponding to the topmost view element at the long-pressed position may be used as the current component.

由于小程序的开发者可以设置小程序中不同组件所绑定的事件,因此弹出单元502可以通过获取小程序的开发日志来确定长按位置处的当前组件是否绑定了长按事件。Since the developer of the applet can set events bound to different components in the applet, the pop-up unit 502 can determine whether the current component at the long-press position is bound to the long-press event by acquiring the development log of the applet.

弹出单元502若确定长按位置处的当前组件绑定了长按事件,则不会执行弹出对应图片的菜单的操作。If the pop-up unit 502 determines that a long-press event is bound to the current component at the long-pressed position, the operation of popping up the menu corresponding to the picture will not be performed.

弹出单元502在执行响应于确定长按位置存在图片,弹出对应所述图片的菜单,还可以包含以下内容:确定长按位置存在图片、菜单弹出功能未被禁用并且长按位置处的当前组件未绑定长按事件之后,确定当前组件之上的N级父组件是否绑定了长按事件,其中N为正整数;响应于确定当前组件之上的N级父组件均未绑定长按事件,弹出对应图片的菜单。The pop-up unit 502 pops up a menu corresponding to the picture in response to determining that there is a picture at the long-pressed position, and may also include the following content: it is determined that there is a picture at the long-pressed position, the menu pop-up function is not disabled, and the current component at the long-pressed position is not. After binding the long-press event, determine whether the N-level parent component above the current component is bound with a long-press event, where N is a positive integer; in response to determining that none of the N-level parent components above the current component is bound with a long-press event , the menu corresponding to the picture will pop up.

因此,弹出单元502在确定长按位置存在图片、菜单弹出功能未被禁用以及长按位置处的当前组件未绑定长按事件之后,还不会立即执行弹出菜单的操作,而是在确定了当前组件向上N级的父组件均未绑定长按事件时,再进行菜单的弹出,从而能够避免用户在执行当前组件的父组件的长按事件时菜单被错误弹出的问题,提升了菜单弹出的准确性。Therefore, after the pop-up unit 502 determines that there is a picture at the long-pressed position, the menu pop-up function is not disabled, and the current component at the long-pressed position is not bound to the long-pressed event, it will not immediately perform the operation of popping up the menu, but after determining When the parent component up to N levels of the current component is not bound to the long-press event, the menu will be popped up, so as to avoid the problem that the menu is incorrectly popped up when the user executes the long-press event of the parent component of the current component, and the menu pop-up is improved. accuracy.

可以理解的是,弹出单元502可以通过小程序的开发日志来确定当前组件之上的N级父组件是否绑定了长按事件。It can be understood that, the pop-up unit 502 can determine whether the N-level parent component above the current component is bound with a long-press event through the development log of the applet.

弹出单元502若确定当前组件之上的N级父组件绑定了长按事件,则不会执行弹出对应图片的菜单的操作。If the pop-up unit 502 determines that the N-level parent component above the current component is bound with a long-press event, it will not perform the operation of popping up the menu corresponding to the picture.

根据本申请的实施例,本申请还提供了一种电子设备和一种计算机可读存储介质。According to the embodiments of the present application, the present application further provides an electronic device and a computer-readable storage medium.

如图6所示,是根据本申请实施例的小程序中菜单弹出的方法的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in FIG. 6 , it is a block diagram of an electronic device according to the method for popping up a menu in an applet according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.

如图6所示,该电子设备包括:一个或多个处理器601、存储器602,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图6中以一个处理器601为例。As shown in FIG. 6, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices may be connected, each providing some of the necessary operations (eg, as a server array, a group of blade servers, or a multiprocessor system). A processor 601 is taken as an example in FIG. 6 .

存储器602即为本申请所提供的非瞬时计算机可读存储介质。其中,所述存储器存储有可由至少一个处理器执行的指令,以使所述至少一个处理器执行本申请所提供的小程序中菜单弹出的方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的小程序中菜单弹出的方法。The memory 602 is the non-transitory computer-readable storage medium provided by the present application. Wherein, the memory stores instructions executable by at least one processor, so that the at least one processor executes the method for popping up a menu in the applet provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, and the computer instructions are used to cause the computer to execute the method for popping up a menu in the applet provided by the present application.

存储器602作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的小程序中菜单弹出的的方法对应的程序指令/模块(例如,附图5所示的检测单元501以及弹出单元502)。处理器601通过运行存储在存储器602中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的小程序中菜单弹出的方法。The memory 602, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions corresponding to the method for popping up menus in the applet in the embodiment of the present application/ modules (for example, the detection unit 501 and the ejection unit 502 shown in FIG. 5 ). The processor 601 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 602, that is, implementing the method for popping up menus in the applet in the above method embodiments.

存储器602可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据的电子设备的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器602可选包括相对于处理器601远程设置的存储器,这些远程存储器可以通过网络连接至小程序中菜单弹出的方法的电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device, and the like. Additionally, memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 may optionally include a memory remotely located with respect to the processor 601, and these remote memories may be connected to the electronic device of the method of menu pop-up in the applet through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

小程序中菜单弹出的方法的电子设备还可以包括:输入装置603和输出装置604。处理器601、存储器602、输入装置603和输出装置604可以通过总线或者其他方式连接,图6中以通过总线连接为例。The electronic device for the method for popping up a menu in an applet may further include: an input device 603 and an output device 604 . The processor 601 , the memory 602 , the input device 603 and the output device 604 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 6 .

输入装置603可接收输入的数字或字符信息,以及产生与小程序中菜单弹出的方法的电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置404可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 603 can receive input numerical or character information, and generate key signal input related to user settings and function control of the electronic device for the method of popping up menus in the applet, such as touch screen, keypad, mouse, trackpad, touchpad , pointing stick, one or more mouse buttons, trackball, joystick and other input devices. Output devices 404 may include display devices, auxiliary lighting devices (eg, LEDs), haptic feedback devices (eg, vibration motors), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.

此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.

根据本申请实施例的技术方案,通过在检测到用户对小程序中图片进行长按之后弹出菜单的方式,实现了便捷地向用户提供多个与图片相关的功能的目的,简化了用户的操作步骤,提升了用户的操作效率。According to the technical solutions of the embodiments of the present application, by means of popping up a menu after detecting that the user has long-pressed a picture in the applet, the purpose of conveniently providing a plurality of picture-related functions to the user is achieved, and the operation of the user is simplified. steps to improve the user's operating efficiency.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (14)

1. A method of menu pop-up in an applet, comprising:
after detecting that a user generates a long press action in the applet, acquiring a long press position;
and responding to the fact that the long-press position is determined to have the picture, and popping up a menu corresponding to the picture.
2. The method of claim 1, wherein the determining that the long press position exists picture comprises:
acquiring the top view element at the long pressing position;
Determining whether the view element is an image component;
and if so, determining that the long-press position has a picture.
3. The method of claim 2, wherein the determining that the long press position exists picture comprises:
after determining that the view element is not an image component, determining whether the view element is an image tag;
and if so, determining that the long-press position has a picture.
4. The method of claim 3, wherein the determining that the long press position exists picture comprises:
after determining that the view element is not an image tag, determining whether the view element has a background picture;
and if so, determining that the long-press position has a picture.
5. The method of claim 1, wherein, in response to determining that a picture exists in the long-press position, popping up a menu corresponding to the picture comprises:
after determining that the long press position has the picture, determining whether a current component at the long press position is bound with a long press event;
in response to determining that the current component at the long press position is not bound to a long press event, popping up a menu corresponding to the picture.
6. The method of claim 5, wherein, in response to determining that a picture exists in the long-press position, popping up a menu corresponding to the picture comprises:
Determining whether an N-level parent component above the current component is bound with a long press event or not after determining that a picture exists in the long press position and the current component at the long press position is not bound with the long press event, wherein N is a positive integer;
and responding to the fact that the N-level parent components above the current component are not bound with the long-time press event, and popping up a menu corresponding to the picture.
7. An apparatus for menu popup in an applet, comprising:
the detection unit is used for acquiring a long press position after detecting that a user generates a long press action in the applet;
and the popup unit is used for responding to the fact that the long press position has the picture and popping up a menu corresponding to the picture.
8. The apparatus according to claim 7, wherein the popup unit, when determining that there is a picture in the long-press position, specifically performs:
acquiring the top view element at the long pressing position;
determining whether the view element is an image component;
and if so, determining that the long-press position has a picture.
9. The apparatus according to claim 8, wherein the popup unit, when determining that there is a picture in the long-press position, specifically performs:
after determining that the view element is not an image component, determining whether the view element is an image tag;
And if so, determining that the long-press position has a picture.
10. The apparatus according to claim 9, wherein the popup unit, when determining that there is a picture in the long-press position, specifically performs:
after determining that the view element is not an image tag, determining whether the view element has a background picture;
and if so, determining that the long-press position has a picture.
11. The apparatus according to claim 7, wherein the popup unit, when popping up a menu corresponding to the picture in response to determining that the long-press position has the picture, specifically performs:
after determining that the long press position has the picture, determining whether a current component at the long press position is bound with a long press event;
in response to determining that the current component at the long press position is not bound to a long press event, popping up a menu corresponding to the picture.
12. The apparatus according to claim 11, wherein the popup unit, when popping up a menu corresponding to the picture in response to determining that the long-press position has the picture, specifically performs:
determining whether an N-level parent component above the current component is bound with a long press event or not after determining that a picture exists in the long press position and the current component at the long press position is not bound with the long press event, wherein N is a positive integer;
And responding to the fact that the N-level parent components above the current component are not bound with the long-time press event, and popping up a menu corresponding to the picture.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202010621951.6A 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium Active CN111857488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010621951.6A CN111857488B (en) 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010621951.6A CN111857488B (en) 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111857488A true CN111857488A (en) 2020-10-30
CN111857488B CN111857488B (en) 2022-06-28

Family

ID=72988353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010621951.6A Active CN111857488B (en) 2020-06-30 2020-06-30 Method and device for popping up menu in applet, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111857488B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7565671B1 (en) * 2000-02-01 2009-07-21 Swisscom Mobile Ag System and method for diffusing image objects
US20110016378A1 (en) * 2004-11-29 2011-01-20 Ariel Inventions, Llc System and method of automatically identifying and marking hyperimages when displayed
CN102663056A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 A method and device for displaying picture elements
CN110069734A (en) * 2017-08-16 2019-07-30 阿里巴巴集团控股有限公司 A kind of page assembly shows method and apparatus
CN110362248A (en) * 2019-06-19 2019-10-22 北京字节跳动网络技术有限公司 Control method, device, equipment and the medium of small routine side menu bar
CN110727383A (en) * 2019-09-18 2020-01-24 北京百度网讯科技有限公司 Applet-based touch interaction method, device, electronic device and storage medium
CN110827119A (en) * 2019-10-18 2020-02-21 用友网络科技股份有限公司 Information interaction system based on WeChat applet
CN111580879A (en) * 2020-04-30 2020-08-25 北京字节跳动网络技术有限公司 Applet running method and device, electronic equipment and computer storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7565671B1 (en) * 2000-02-01 2009-07-21 Swisscom Mobile Ag System and method for diffusing image objects
US20110016378A1 (en) * 2004-11-29 2011-01-20 Ariel Inventions, Llc System and method of automatically identifying and marking hyperimages when displayed
CN102663056A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 A method and device for displaying picture elements
CN110069734A (en) * 2017-08-16 2019-07-30 阿里巴巴集团控股有限公司 A kind of page assembly shows method and apparatus
CN110362248A (en) * 2019-06-19 2019-10-22 北京字节跳动网络技术有限公司 Control method, device, equipment and the medium of small routine side menu bar
CN110727383A (en) * 2019-09-18 2020-01-24 北京百度网讯科技有限公司 Applet-based touch interaction method, device, electronic device and storage medium
CN110827119A (en) * 2019-10-18 2020-02-21 用友网络科技股份有限公司 Information interaction system based on WeChat applet
CN111580879A (en) * 2020-04-30 2020-08-25 北京字节跳动网络技术有限公司 Applet running method and device, electronic equipment and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHANWOO KIM ET AL.: "Robust DTW-based recognition algorithm for hand-held consumer devices [speech recognition]", 《2005 DIGEST OF TECHNICAL PAPERS. INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS, 2005. ICCE.》 *
没_有_人: "小程序-长按保存图片", 《HTTPS://WWW.JIANSHU.COM/P/E592E9B28192》 *

Also Published As

Publication number Publication date
CN111857488B (en) 2022-06-28

Similar Documents

Publication Publication Date Title
US11175823B2 (en) Method and apparatus for controlling terminal device using gesture control function, and non-transitory computer-readable storage medium
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
CN110737560B (en) Service state detection method and device, electronic equipment and medium
CN105988860A (en) Method for executing application program and mobile device
CN111708653B (en) Memory fault processing method, device, electronic equipment and storage medium
CN111309547A (en) Web page information acquisition method, device and electronic device
EP3796308A1 (en) Speech recognition control method and apparatus, electronic device and readable storage medium
CN110888926B (en) Method and device for structuring medical text
CN112926000A (en) Display area rendering method, device and equipment, readable storage medium and product
US11169652B2 (en) GUI configuration
CN111835857B (en) Method and apparatus for accessing data
CN114401337B (en) Data sharing method, device, equipment and storage medium based on cloud phone
CN112037332A (en) Display verification method and device of browser, computer equipment and storage medium
CN111752835A (en) Test auxiliary method, device, equipment and storage medium
CN110865421A (en) Business model training method, obstacle detection method and device and electronic equipment
CN111966421B (en) Page component operation monitoring method, device, equipment and storage medium
CN112770415B (en) Information processing method and device for wireless hotspot
CN114510308A (en) Method, device, equipment and medium for storing application page by mobile terminal
CN111857488B (en) Method and device for popping up menu in applet, electronic equipment and storage medium
CN112069071A (en) Method and device for determining program suitability
CN111966576A (en) Abnormal code positioning method and device, electronic equipment and storage medium
CN111831152A (en) Control method, device, electronic device and storage medium of touch screen
CN111985760A (en) Data content evaluation method and device, electronic equipment and storage medium
CN111506499B (en) Method and device for detecting availability of parameters in applet and electronic equipment
CN112148279A (en) Log information processing method, device, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant