87,907
社区成员
发帖
与我相关
我的任务
分享
var v_polyline = document.createElement('v:polyline');
v_polyline.id = obj_feature_id;
v_polyline.style.zIndex = dz;
v_polyline.style.position = 'absolute';
v_polyline.style.left = 0;
v_polyline.style.top = 0;
v_polyline.fillcolor = fc;
v_polyline.stroked = "t";
v_polyline.filled = "t";
v_polyline.points = temp;//上面计算过
v_polyline.strokecolor = lc;
v_polyline.onclick = function() {
command.exec('mouseclick', new Array(regionModel.Figure, obj_id));
};
var v_fill = document.createElement('v:fill');
v_fill.id = obj_feature_id + '_fill';
v_fill.opacity = opc;
v_polyline.appendChild(v_fill);
//以下两段代码是问题所在
//代码一
var v_stroke = document.createElement('v:stroke');
v_stroke.opacity = "1";
v_stroke.dashstyle = "solid";
v_polyline.appendchild(v_stroke);
//代码二
var v_stroke = document.createElement('v:stroke');
v_stroke.opacity = "1";
v_stroke.dashstyle = "solid";
v_polyline.appendChild(v_stroke);
obj.appendChild(v_polyline);
//obj是页面一DIV