在 ERPNEXT 中,我使用自定义脚本通过 $.getScript 加载一些外部库。正在加载 JS 库,但未加载 css。希望得到一些建议
$.getScript 将只加载脚本文件。对于 css,你可以使用这样的东西。
$("<link/>", {
rel: "stylesheet",
type: "text/css",
href: "your css file link"
}).appendTo("head");
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句