jobqiangdan32/WebRoot/client2/js/jbtool.js

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 * Created by ideabobo on 14-6-28.
 * jquery mobile tools
 */
var mobiletool={
    confirmDialog:false,
    confirmBack:null
}

function changePage(id, animation) {
    animation = animation || randAnimation();
    $.mobile.changePage($("#" + id), {transition: animation})
}

function confirmCallback(flag){
    mobiletool.confirmBack && mobiletool.confirmBack(flag);
    hideLoader();
}

function randAnimation(){
    var animation=['pop','flow','pop','fade','slidedown','slideup','slidefade','flow','slide','pop'];
    var r = parseInt(10*Math.random());
    return animation[r];
}

//显示加载器
function showLoader(str, textonly, textVisible, theme, html) {
    textonly = textonly || false;
    textVisible = textVisible || true;
    theme = theme || "b";
    html = html || "";
    //显示加载器.for jQuery Mobile 1.2.0
    $.mobile.loading('show', {
        text: str, //加载器中显示的文字
        textVisible: textVisible, //是否显示文字
        theme: theme,        //加载器主题样式a-e
        textonly: textonly,   //是否只显示文字
        html: html           //要显示的html内容,如图片等
    });
    if (textonly) {
        setTimeout(function () {
            hideLoader();
        }, 2000);
    }
}

function showTipTimer(str,callback){
    var textonly = true;
    var textVisible = true;
    var theme = "b";
    var html = html || "";
    //显示加载器.for jQuery Mobile 1.2.0
    $.mobile.loading('show', {
        text: str, //加载器中显示的文字
        textVisible: textVisible, //是否显示文字
        theme: theme,        //加载器主题样式a-e
        textonly: textonly,   //是否只显示文字
        html: html           //要显示的html内容,如图片等
    });
    setTimeout(function () {
后面还有 123 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。