适用as2.0
1、先建动态文本,并命名myText
2、在帧上加上代码,
myText.html = true;
myText.multiline = true;
立即学习“前端免费学习笔记(深入)”;
var myString = ‘
This is a bold text
And this text is in Italic
This is a link to the bbc website.
Here is a little list of colors :
RedGreenBlueHere is a little image that links to the bbc sitelink‘;
myText.htmlText = myString;
3、也可以读取外部文件作为html内容:参考http://www.wangchao.net.cn/bbsdetail_1736674.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。
发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3115862.html