阅读量:125
JS document对象的属性有以下一些常见属性:
-
document.documentElement:代表整个文档的根元素(一般是<html>元素)。
</html>
-
document.body:代表文档的<body>元素。
</body>
-
document.title:代表文档的标题。
-
[removed]:代表文档的cookie。
-
document.domain:代表文档的域名。
-
document.head:代表文档的<head>元素。
</head>
-
[removed]:代表文档的URL信息。
-
document.referrer:代表文档的引用页面的URL。
-
document.forms:代表文档中所有的<form>元素集合。
-
document.images:代表文档中所有的
元素集合。</> </> <> <>>元素和<>元素集合。<> </></> <> <>> </> <> <>> </> <> <>> </> <> <>> </> </> <>此外,> </> </> < class>
0 赞0 踩
看了该问题的人还看了
--><!--
-->
[removed][removed]
[removed]hljs.initHighlightingOnLoad();[removed]
[removed]
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('pre').forEach((block) => {
hljs.highlightBlock(block);
});
});
[removed]
[removed]
var page_position = 'detail';
parseInLinks();
getDetialQuantities();
// // 创建 markdown-it 实例
// var md = markdownit({
// html: true,
// css: true,
// less: true,
// sass: true,
// langPrefix:'language-',
// typographer: true,
// highlight: function (str, lang) { // 代码高亮显示
// if (lang && hljs.getLanguage(lang)) {
// try {
// return '' +
// hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
// '';
// } catch (__) {}
// }
// return '' + md.utils.escapeHtml(str) + '';
// }
// });
//
// function convertToHTML(value) {
// return md.render(value); // 转换 Markdown 到 HTML
// }
// hljs.highlightAll();
// $(function () {
// $('.qa-detail-text').html(convertToHTML($('.base_detail').html()))
// })
[removed]