<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>lufylegend</title> <script type="text/javascript" src="lufylegend-1.7.6.js"></script> </head> <body> <div id="mylegend">loading...</div> <script type="text/javascript"> init(50, ‘mylegend‘, 500, 350, main); function main() { var layer = new LSprite(); addChild(layer); var field = new LTextField(); field.x = 50; field.y = 50; // field.text = ‘Hello World‘; // field.size = 25; // field.color = ‘#333333‘; // field.weight = ‘bolder‘; field.setType(LTextFieldType.INPUT); layer.addChild(field); } </script> </body> </html>
时间: 2024-10-07 11:25:10