Programmer's Guide (《编程指南》) > Interfaces > W3C Document interface > createComment method
  
createComment method
Creates a Comment node given the specified string.
createComment(data )
Parameters
Stringdata
The data for the node.
Returns
Comment. The new Comment object.