문제

Ihave been looking it for a day but I couldnt find any answer. What are the differences between the following 2 codes. (Performance,operation etc..)

First Code

tField.appendText("<font color='#7f7f7f'>" + TahminTxt.text + "\n</font>");
tField.htmlText=tField.Text;

Second Code

tField.htmlText+="<font color='#7f7f7f'>" + TahminTxt.text + "\n</font>";
도움이 되었습니까?

해결책

In terms of operation I believe the end result is equivalent however appendText is much faster seen in the docs, on others forums, and in my own testing: http://help.adobe.com/en_US/as3/mobile/WS4bebcd66a74275c3a0f5f19124318fc87b-7ffc.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top