直接看实例。 例1 重新加载js文件 function loadJs(file) { var head = $("head").remove("script[role='reload']"); $("<scri" + "pt>" +