gpt4 book ai didi

actionscript-3 - Actionscript 3.0 中的行号常量?

转载 作者:行者123 更新时间:2023-12-04 17:59:36 25 4
gpt4 key购买 nike

是否有行号常量或方法来动态跟踪 actionscript 中的行号?

ActionScript 是否相当于

__LINE__

在 PHP 中?

最佳答案

这不是常量,但是这行代码会给你行号:

trace(">",new Error().getStackTrace().match(/(?<=:)[0-9]*(?=])/g)[0]);

PS:这仅在 swf 在 Debug模式下编译时才有效

关于actionscript-3 - Actionscript 3.0 中的行号常量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1191393/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com