JS中的document.title可以获取当前网页的标题
jb51.net current document's title is:
运行结果如下:
current document's title is:jb51.net
希望本文所述对大家的javascript程序设计有所帮助。