是否可以使用jQuery来读取元标记
问题描述:
是否可以使用jQuery来读取元标记。如果是这样,你知道代码的基本结构将是什么,或者链接到任何教程。
Is it possible to use jQuery to read meta tags. If so do you know what the basic structure of the code will be, or have links to any tutorials.
答
只需使用某些东西如:
var author = $('meta[name=author]').attr("content");