一:引入debug.v3.js文件
二:debugLog(),相当于console.log()
debug.v3.js
(function() {
var opt = {
enable: true,
isMsgAppend: true, //false 每条log信息插入到在panel底部
};
window.debugLog = debugLog;
if (!opt.enable) {
return false;
}
var debugHtml = '<div id="log-panel" class="scrollable" style="text-align: left;display:block;position: fixed; top: 0; left: 0; width: 800px;height:100%;overflow:auto; z-index: 99999; color: #13F713; background: rgba(0,0,0,0.7); padding:5px 0; text-decoration: none;"></div>';
document.body.innerHTML += debugHtml;
var panel = do