如何去掉jQWidgets中TreeGrid和Grid右下角的链接
答案:2 悬赏:0 手机版
解决时间 2021-03-19 06:52
- 提问者网友:聂風
- 2021-03-18 17:16
如何去掉jQWidgets中TreeGrid和Grid右下角的链接
最佳答案
- 五星知识达人网友:举杯邀酒敬孤独
- 2021-03-18 17:34
_rendercelltexts : function () {
var d = String.fromCharCode(119, 119, 119, 46, 106, 113, 119, 105, 100, 103, 101, 116, 115, 46, 99, 111, 109);
if (location.hostname.indexOf(d.substring(4)) == -1) {
if (this._gridRenderElement) {
b(this._gridRenderElement).remove()
}
var e = String.fromCharCode(83, 80, 65, 78);
var c = String.fromCharCode(72, 84, 84, 80, 58, 47, 47);
var f = document.createElement(e);
f.id = b.jqx.utilities.createId();
f.innerHTML = d;
f.style.position = "absolute";
f.style.right = "5px";
f.style.bottom = "5px";
f.style.color = "#909090";
f.style.cursor = "pointer";
f.style.zIndex = "999999";
f.style.display = "none";
f.style.fontSize = "9px";
f.onmousedown = function () {
open(c + d)
};
this.content[0].appendChild(f);
this._gridRenderElement = f
}
}
它这里使用了String.fromCharCode方法将隐藏了数据明文,转以ASCII码替代。
接下来就好办了,这里我们把this.content[0].appendChild(f)注释就可以了。
var d = String.fromCharCode(119, 119, 119, 46, 106, 113, 119, 105, 100, 103, 101, 116, 115, 46, 99, 111, 109);
if (location.hostname.indexOf(d.substring(4)) == -1) {
if (this._gridRenderElement) {
b(this._gridRenderElement).remove()
}
var e = String.fromCharCode(83, 80, 65, 78);
var c = String.fromCharCode(72, 84, 84, 80, 58, 47, 47);
var f = document.createElement(e);
f.id = b.jqx.utilities.createId();
f.innerHTML = d;
f.style.position = "absolute";
f.style.right = "5px";
f.style.bottom = "5px";
f.style.color = "#909090";
f.style.cursor = "pointer";
f.style.zIndex = "999999";
f.style.display = "none";
f.style.fontSize = "9px";
f.onmousedown = function () {
open(c + d)
};
this.content[0].appendChild(f);
this._gridRenderElement = f
}
}
它这里使用了String.fromCharCode方法将隐藏了数据明文,转以ASCII码替代。
接下来就好办了,这里我们把this.content[0].appendChild(f)注释就可以了。
全部回答
- 1楼网友:青尢
- 2021-03-18 17:48
同问。。。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯