5. The method according to claim 1 , wherein displaying a script content input by an inputting device in the editing interface further comprises: determining whether the input script content is wrapped; if so, adding an indentation of one level to the input script content; and if not, making the indentation of the input script content consistent with the indentation of the script content of last line.
1. A method for editing scripting language based on WEB, the method comprising: querying a server about available object in a current script usage scenario, as well as attribute and method of the available object; generating a script editing interface according to the queried available object in the current script usage scenario and the attribute and method of the available object, and displaying a script content input by an inputting device in the script editing interface; acquiring confirmation identifier of the edited script content, and checking whether or not the script content before the confirmation identifier is an indication object capable of automatically indicating; if so, acquiring, from the attribute and method of the available object, an attribute and method related to the indication object, and displaying the acquired attribute and method related to the indication object on a prompt box formed in the script editing interface for selection; and adding the attribute and method of the indication object selected from the prompt box after the indication object.