问题标签 [findname]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
variables - 从本地宏列表(查找名称)创建变量列表
我有我想在命令中使用的本地宏中的变量列表,例如:
这里变量num*
int*
和bin*
分别是数字、整数和二进制。
我想对foreach
本地 b' 中的变量进行循环a' and
,但仅限于整数值的变量,即int1, int2, int3
, ...
为此,我使用findname
Nick Cox 创建的命令来查找整数值变量,将相应变量名称的列表保存在本地宏中。但我不想对数据集中的所有变量运行它,而只想对变量子集(在 locals a
、b
等中指定)运行它,然后在后续命令中使用该列表。
a' and
因此,对于本地b'中的整数变量列表作为本地a_int' and
b_int',我想使用如下: