我遇到了同样的问题,但在嵌入式 Microchip TCPIP 堆栈服务器上,对于格式错误的请求非常无情。
作为一个快速修复我这样做了:
在完整的 ace.js 中:
改变
this._loadTheme = function(name, callback) {
if (!config.get("packaged"))
return callback();
var base = name.split("/").pop();
var filename = config.get("themePath") + "/theme-" + base + config.get("suffix");
net.loadScript(filename, callback);
};
添加文件名 = filename.replace("//theme","/theme");
this._loadTheme = function(name, callback) {
if (!config.get("packaged"))
return callback();
var base = name.split("/").pop();
var filename = config.get("themePath") + "/theme-" + base + config.get("suffix");
filename = filename.replace("//theme","/theme");
net.loadScript(filename, callback);
};
和改变
function fetch(callback) {
if (!config.get("packaged"))
return callback();
var base = mode.split("/").pop();
var filename = config.get("modePath") + "/mode-" + base + ".js";
net.loadScript(filename, callback);
}
添加文件名 = filename.replace("//mode","/mode");
function fetch(callback) {
if (!config.get("packaged"))
return callback();
var base = mode.split("/").pop();
var filename = config.get("modePath") + "/mode-" + base + ".js";
filename = filename.replace("//mode","/mode");
net.loadScript(filename, callback);
}