在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答
莓森 回答

可以自定義驗(yàn)證,自動驗(yàn)證中都是按照順序拋出的。

凝雅 回答

我記得以前做OA的時候處理過這種業(yè)務(wù)邏輯:

1.復(fù)雜的做法:首先是在進(jìn)入界面的時候調(diào)取一下服務(wù)端接口獲取服務(wù)器時間(手機(jī)時間不可信),然后根據(jù)此時間初始化定時器,判斷此時與隔天0點(diǎn)的時間差,在停留此界面中定時器一直計(jì)時,到指定時間就刷新界面,若中途進(jìn)入后臺再回到前臺時,可以重新刷新服務(wù)器時間,重新初始化定時器

2.簡單做法:接收UIApplicationSignificantTimeChangeNotification通知,它會在新的一天到來或運(yùn)營商時間改變時發(fā)出通知,具體未使用不知

拽很帥 回答

在以往windows ie為主的時代,可以通過檢查控件等方式判斷,但現(xiàn)在H5,都不建議用控件了,所以需要別的方法了。
一般是用特殊協(xié)議檢測法,不過囿于瀏覽器安全控制方面的原因,效果不會完美。

涼汐 回答

問題原因是使用事務(wù)時,缺少 rollback 或 commit,使用以下代碼可穩(wěn)定復(fù)現(xiàn)這個錯誤:

let mysql = require("mysql");

function createConn() {
    return mysql.createConnection({
        host     : '192.168.1.100',
        user     : 'yangqiang',
        password : '123456',
        database : 'node_mysql_demo'
    });
}

function transactionWithoutCommit(conn) {
    conn.beginTransaction(function (err) {
        if (err) {
            throw err;
        }
        conn.query('SELECT * from user where name="jonny"', function (error, results, fields) {
            if (error) {
                return conn.rollback(function () {
                    throw error;
                })
            } else {
                // 缺少 commit,引發(fā)錯誤
            }
        });
    });
}

function transactionWithCommit(conn) {
    conn.beginTransaction(function (err) {
        if (err) {
            throw err;
        }
        conn.query('SELECT * from user where name="jonny"', function (error, results, fields) {
            if (error) {
                return conn.rollback(function () {
                    throw error;
                })
            } else {
                conn.commit(function (err) {
                    if (err) {
                        return conn.rollback(function(){ throw err;})
                    } else {
                        console.log('transaction committed');
                    }
                });
            }
        });
    });
}

function write(conn) {
    conn.query('INSERT INTO user (name) VALUES ("Mei");', function (error, results, fields) {
        if (error) throw error;
        console.log(JSON.stringify(results));
    });
}


var connection = createConn();
connection.connect();

transactionWithoutCommit(connection); // 引發(fā)錯誤
// transactionWithCommit(connection); // 正確的方法
write(connection);
焚音 回答

this.callback 做回調(diào),不傳參數(shù)能拿得到 response ???

脾氣硬 回答

已修正 數(shù)字也轉(zhuǎn)正了
附上https://codepen.io/wanroulin/... 供參考

主要修改的片段為內(nèi)圈旋轉(zhuǎn)角度 及 數(shù)字校正角度

  // scale
        ctx.setTransform(1, 0, 0, 1, Math.floor(W / 2), Math.floor(W / 2));
        ctx.beginPath();
        ctx.lineWidth = 2;
        ctx.strokeStyle = 'rgba(255, 255, 255, .3)';
        // there should be 10 lines
        var stepAngle = (Math.PI * 2) / 10;
        // begin angle
        ctx.rotate(0.7 * Math.PI);
        // draw only 9 of the 10 lines
        for (var i = 0; i < 9; i++) {
            ctx.moveTo(Math.floor(W / 3) - 50, 0);
            ctx.lineTo(Math.floor(W / 3) - 55, 0);
            ctx.rotate(stepAngle);
        }
        ctx.stroke();
        ctx.setTransform(1, 0, 0, 1, 0, 0);

        // scale txt
        ctx.fillStyle = 'rgba(255, 255, 255, .4)';
        ctx.font = "1.5vh play";
        ctx.textAlign = 'center';
        ctx.textBaseline = 'middle';

        var stepAngle = (Math.PI * 2) / 10;
        var currentAngle = 0.20 * Math.PI;

        for (i = 0; i < 9; i++) {
            // move to center, unrotated
            ctx.setTransform(1, 0, 0, 1, Math.floor(W / 2), Math.floor(W / 2));
            // set current rotation
            ctx.rotate(currentAngle)
            // move the context to our text's position
            ctx.translate(0, Math.floor(W / 3) - 65);
            // inverse rotate so we face North
            ctx.rotate(-currentAngle);
            // fill at 0,0
            ctx.fillText(0 + 1 * i, 0, 0);
            // increment currentAngle for next iteration
            currentAngle += stepAngle;
        }
        ctx.setTransform(1, 0, 0, 1, 0, 0);

        ctx.restore();
薄荷糖 回答

this.filter = {

a: xx,
b: xx

}
這樣是可以的。絕對沒問題。

赱丅呿 回答

data里綁定一個標(biāo)記:

data:{
    visible: false
}
// 點(diǎn)擊的時候
this.visible改為ture,同時video.pause()

html內(nèi)用visible來顯示隱藏
雨蝶 回答

ready事件,是第一次進(jìn)入到頁面,文檔加載完成后觸發(fā)。之后不會再被觸發(fā)。
如果想每次進(jìn)入到首頁都執(zhí)行這段代碼,即每次進(jìn)入到這個路由都執(zhí)行這段代碼,只要放在mounted鉤子函數(shù)中執(zhí)行就OK。

尤禮 回答

你只引入了 這個插件的js部分 這個插件還有樣式文件需要引入, 我記得官網(wǎng)有兩個皮膚

,一般是引入snow這個皮膚,clipboard.png

臭榴蓮 回答

我試了一下,沒出現(xiàn)你說的這個情況。。。

心沉 回答

不用加 this. 直接取 active

拼未來 回答

使用

Promise.all([axios1, axios2]).then(() => {
  // 隱藏loading
})
墨小白 回答

覆蓋規(guī)則不清楚。但是w3c-H94明確給出了聲明:確保元素不包含重復(fù)的屬性
https://www.w3.org/TR/WCAG20-...
如果你還想繼續(xù)研究的話可以查一查瀏覽器是如何渲染html標(biāo)簽的,或者瀏覽器是如何對html標(biāo)簽糾錯的資料。

賤人曾 回答

我建議你是用 vim-rooter 這個插件,這個插件原理是當(dāng)你打開某個文件時,他會根據(jù)這個文件的絕對目錄向上搜索,直到搜到匹配的文件或者目錄,將該目錄設(shè)為當(dāng)前目錄。

https://github.com/airblade/v...

比如,你可以設(shè)定 .git/ 為匹配項(xiàng),那么他就會將git倉庫的根目錄作為當(dāng)前目錄。同理,很多語言開發(fā)的項(xiàng)目,在根目錄都有特征文件,設(shè)置成對應(yīng)的即可。