Project

General

Profile

Feature #1754

yt0等脚本函数回调功能优化

Added by zhenyu yu over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
10/28/2021
Due date:
10/28/2021
% Done:

100%

Estimated time:
Defect version:

Description

yk0、yk2、yt0、yt2等脚本函数带有自定义二次确认弹框功能,点击二次确认后控制命令方可下发;

但是特定情况下,当需要二次确认后再执行部分脚本函数时,此时在二次确认点击前,后面的脚本函数就已经执行了,不符合功能及逻辑需求。

故队上述脚本函数进行优化。

优化方法:
在上述脚本函数中新增回调方法,把二次确认后的脚本函数放在回调中即可实现需求。

优化后脚本使用示例:
yt0("xxx","是否执行?",1,1,function(){
yt("xxx",0);
});

History

#1

Updated by zhenyu yu over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF