有没有什么需要考虑的因素来决定是使用head还是body来添加模板标签?例如:
conste template = document.createElement('template');
// add template content etc.
document.body.appendChild(template);
// or
document.head.appendChild(template);
我刚刚遇到一个动态向添加模板���代码库,我的直觉告诉我这可能不是最好的想法,但也许并不重要?