提交 2e9ee78a 编写于 作者: NoSubject's avatar NoSubject

脚本print方法修复

上级 30f55d0f
......@@ -814,8 +814,11 @@ var _Actions = {
};
bind.Actions = _Actions;
var oPrint = print;
try{
oPrint = oPrint;
}catch(e){
oPrint = print
}
print = function(str, type){
var d = new Date();
var t = (type || "PRINT").toUpperCase();
......@@ -823,7 +826,8 @@ print = function(str, type){
oPrint(d.format("db")+"."+d.getMilliseconds()+" "+t+" "+l+" "+str);
}
bind.print = print;
bind.oPrint = oPrint;
echo = print;
bind.echo = print;
bind.library = library;
bind.data = this.data;
......
......@@ -3259,14 +3259,21 @@ var _org = {
}
};
var oPrint = print;
try{
oPrint = oPrint;
}catch(e){
oPrint = print
}
print = function(str, type){
var d = new Date();
var t = (type || "PRINT").toUpperCase();
var l = "[ServiceScript]";
var l = "[Script]";
oPrint(d.format("db")+"."+d.getMilliseconds()+" "+t+" "+l+" "+str);
}
bind.print = print;
echo = print;
bind.echo = print;
bind.org = _org;
bind.library = library;
bind.define = _define;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册