Postcatlab / Postcatlab/postcat

全局变量 不能实现连续点击发布的情况下,连续加1

Open
#342 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.5k
Forks
796
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

var temp = pc.globals.get("renwuid");
temp = parseInt(temp) + 1;
pc.globals.set("renwuid",temp);

以上为前置脚本,加入全局变量设置为1,每次点击发送,都是2,是否可以参照postman ,有一个初始值,有一个当前值。每次点击当前值都加1,这样可以自动连续加1

### Environment

postcat 0.5.1
windows7

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.