TOPOLOGY.linePath.prototype.getValue = function(){
var op ={
cssStyle: this.cssStyle,
svgPos: this.svgPos,
baseInfo = this.baseInfo
}
return op;
}
Uncaught SyntaxError: Invalid shorthand property initializer
看看是不是你的 : 写成了 = ,我已经在这里错了很多次了,尤其是url的,记录一下,以下为正确写法
TOPOLOGY.linePath.prototype.getValue = function(){
var op ={
cssStyle: this.cssStyle,
svgPos: this.svgPos,
baseInfo : this.baseInfo
}
return op;
}