芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/themes/lorem-ipsum-books-media-store/fw/js/core.debug.js
/** * Lorem Ipsum Books & Media Store Framework: Debug utilities * * @package lorem_ipsum_books_media_store * @since lorem_ipsum_books_media_store 1.0 */ function lorem_ipsum_books_media_store_debug_object(obj) { "use strict"; var html = arguments[1] ? arguments[1] : false; // Tags decorate var recursive = arguments[2] ? arguments[2] : false; // Show inner objects (arrays) var showMethods = arguments[3] ? arguments[3] : false; // Show object's methods var level = arguments[4] ? arguments[4] : 0; // Nesting level (for internal usage only) var dispStr = ""; var addStr = ""; if (level>0) { dispStr += (obj===null ? "null" : typeof(obj)) + (html ? "\n
" : "\n"); addStr = lorem_ipsum_books_media_store_replicate(html ? ' ' : ' ', level*2); } if (obj!==null) { for (var prop in obj) { if (!showMethods && typeof(obj[prop])=='function') continue; if (recursive && (typeof(obj[prop])=='object' || typeof(obj[prop])=='array') && obj[prop]!=obj) dispStr += addStr + (html ? "
" : "")+prop+(html ? "
" : "")+'='+lorem_ipsum_books_media_store_debug_object(obj[prop], html, recursive, showMethods, level+1); else dispStr += addStr + (html ? "
" : "")+prop+(html ? "
" : "")+'='+(typeof(obj[prop])=='string' ? '"' : '')+obj[prop]+(typeof(obj[prop])=='string' ? '"' : '')+(html ? "\n
" : "\n"); } } return dispStr; } function lorem_ipsum_books_media_store_debug_log(s) { "use strict"; if (LOREM_IPSUM_BOOKS_MEDIA_STORE_STORAGE['user_logged_in']) { if (jQuery('.debug_log').length == 0) { jQuery('body').append('
x
'); } jQuery('.debug_log').append('
'+s); jQuery('.debug_log').show(); } } if (window.dcl===undefined) function dcl(s) { "use strict"; console.log(s); } if (window.dco===undefined) function dco(s,r) { "use strict"; console.log(lorem_ipsum_books_media_store_debug_object(s,false,r)); } if (window.dal===undefined) function dal(s) { "use strict"; if (LOREM_IPSUM_BOOKS_MEDIA_STORE_STORAGE['user_logged_in']) alert(s); } if (window.dao===undefined) function dao(s,h,r) { "use strict"; if (LOREM_IPSUM_BOOKS_MEDIA_STORE_STORAGE['user_logged_in']) alert(lorem_ipsum_books_media_store_debug_object(s,h,r)); } if (window.ddl===undefined) function ddl(s) { "use strict"; lorem_ipsum_books_media_store_debug_log(s); } if (window.ddo===undefined) function ddo(s,h,r) { "use strict"; lorem_ipsum_books_media_store_debug_log(lorem_ipsum_books_media_store_debug_object(s,h,r)); }