關于如何去掉這個水印,這是官方的說法。
?
更新了jQWidgets版本,發現在使用過程中發現每次渲染完TreeGrid和Grid后會在表格右下角出現一個www.jqwidgets.com的span標簽。
在相關的腳本中搜索www.jqwidgets.com相關的關鍵字都沒有對應結果。于是準備從其父容器下手,一般來說這種js生成的標簽都會使用appendChild之類的方法將自己添加到父容器中。最后找到其父容器有: jqxdatatable.js,jqxgrid.js
?
我們來看看這段代碼:?
_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)注釋就可以了。
?
?
ref:?http://www.xdlysk.com/article/5785f7dbf46a268c098a5c55