flex 下取当前执行的函数
咋个就这么难呢?
可以定义这样一个函数:
public function getUpperFun():String { var str:String=(new Error()).getStackTrace().split("at ")[2].split("[")[0].split("/")[1]; str = str.replace("()", ""); return str; }
非常bt的用法吧.
而且更bt的是,只能在 debug 的 flash 下用,正常的 flash下 (new Error()).getStackTrace()==null
谁知道有更好的办法不?
Sep 28, 2022 02:19:57 AM
Leading educational institutions and subject experts of the state provided sample guess paper with practice question bank in chapter wise important questions and answer solutions through newspapers and model sets, Bihar Board 10th Social Question Paper we have recommended to every student can download expert questions of Bihar Board 10th Model Paper 2023 for Social Science to practice regular mock test.Leading educational institutions and subject experts of the state provided sample guess paper with practice question bank in chapter wise important questions and answer solutions through newspapers and model sets.