
{{y.className}}({{y.beginTime}}-{{y.endTime}})
{{y.className}}({{y.beginTime}}-{{y.endTime}})
showdata:function (c,n,m,event) {
/*if (event.button !== 2){
return ;
}*/
var obox = document.getElementById("abox");
document.getElementById("classdata")oncontextmenu= function (ev) {
var e = ev || window.event;
var x = e.clientX;
var y = e.clientY;
obox.style.cssText = "display:block;top:" + y + "px;left:" + x + "px;";
return false;
};
document.onclick = function (e) {
obox.style.display = "none";
}
我是这样做的,但是只能给第一个tr加上右键的菜单。别的并不显示。