flex 中trace语句打印不出来
<?xmlversion="1.0"encoding="utf-8"?><mx:Applicationxmlns:mx="http://www.adobe.com/200...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" click="test()">
<mx:Script>
<![CDATA[
public function test():void{
const i:Number=10;
const j:Number=2;
trace(i*j);
}
]]>
</mx:Script>
</mx:Application>
控制台显示:[SWF] E:\flex\First\bin-debug\First.swf - 554,616 bytes after decompression 展开
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" click="test()">
<mx:Script>
<![CDATA[
public function test():void{
const i:Number=10;
const j:Number=2;
trace(i*j);
}
]]>
</mx:Script>
</mx:Application>
控制台显示:[SWF] E:\flex\First\bin-debug\First.swf - 554,616 bytes after decompression 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询