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

鍍金池/ 問(wèn)答/ 網(wǎng)絡(luò)安全問(wèn)答
懶豬 回答

GCD 線程安全,還有onceToken參數(shù)保證 gcd里面的代碼在程序的運(yùn)行時(shí)只執(zhí)行一次,除非onceToken重新設(shè)置成0。不使用GCD,你alloc,copy 一個(gè)單例的對(duì)象時(shí),很容易生成一個(gè)新的對(duì)象,如果使用不當(dāng)。

撥弦 回答

//創(chuàng)建批注
function createAnnotation(viewer){

var config = new Glodon.Bimface.Plugins.Annotation.AnnotationToolbarConfig();
config.viewer = viewer;//2D圖紙
annotationToolbar = new Glodon.Bimface.Plugins.Annotation.AnnotationToolbar(config);
AnnotationToolbarEvent = Glodon.Bimface.Plugins.Annotation.AnnotationToolbarEvent
annotationToolbar.addEventListener(AnnotationToolbarEvent.Saved,function(list){
  list = list;
});
annotation = annotationToolbar.getAnnotationManager();
annotationToolbar.show()

}

//導(dǎo)出截屏

var prop = document.getElementById("prop");
var content = document.getElementById("content");
var close = document.getElementById("close");
document.getElementById("createSnapshot").addEventListener("click",function(){

annotation.createSnapshot(function(image){
  var img = new Image();
  img.src = image;
  prop.style.display = "block";
  content.innerHTML = "";
  content.appendChild(img);
})

});

clipboard.png

硬扛 回答

不按tab鍵啊,enter鍵
圖片描述

顯示這個(gè),按enter鍵就好了

別傷我 回答

flask cache已經(jīng)很久沒(méi)有更新了(2014年最后一次更新),如果樓主真的不想看到這個(gè)warning信息可以考慮使用修改過(guò)的版本:

pip install git+git://github.com/huangxiaohen2738/flask-cache.git@0.14.0

或者參考官方文檔,隱藏特定的warning:
https://docs.python.org/2/lib...

賤人曾 回答

問(wèn)題已解決,是瀏覽器緩存問(wèn)題。只需要禁止瀏覽器使用緩存就可以。

好難瘦 回答

hi 您好 我想請(qǐng)教一下,您現(xiàn)在有解決方法嗎??萬(wàn)分感謝

逗婦惱 回答

在使用JDBC連接Mysql數(shù)據(jù)庫(kù),向Mysql數(shù)據(jù)庫(kù)插入一條帶有中文的記錄,在查詢的時(shí)候,發(fā)現(xiàn)全都是??????
這里寫(xiě)圖片描述
查詢了一些資料,最簡(jiǎn)單的解決辦法如下:
①:設(shè)置當(dāng)前庫(kù)的編碼

ALTER DATABASE zhongfucheng
CHARACTER SET utf8;

②:設(shè)置當(dāng)前表的編碼

ALTER TABLE customer
  CHARACTER SET utf8;

③:使用JDBC連接數(shù)據(jù)庫(kù)時(shí),指定編碼

jdbc:mysql://localhost:3306/zhongfucheng?characterEncoding=utf8

當(dāng)我們完成這三個(gè)步驟的時(shí)候,再插入數(shù)據(jù):就好了

愿如初 回答
為什么require這個(gè)模板文件進(jìn)來(lái)后,渲染這個(gè)模板的時(shí)候,testHtml可以將res作為參數(shù),arttemplate有這個(gè)用法么?

因?yàn)?code>require出來(lái)的可以是個(gè)方法,這取決于你模塊導(dǎo)出的是什么。

  if (/Mobile: /../<span class=\"telnum\"\>+(.+)\<\/span\>.*$/)   { $mobile = $1; }
         if (/Email: /../href=\"mailto:+(.+)\"\>.*$/)   { $email = $1; }
舊酒館 回答

時(shí)間是LogEvent創(chuàng)建時(shí)間, 多線程時(shí),寫(xiě)入的順序可能與事件的創(chuàng)建時(shí)間不一致.

下面是我寫(xiě)的一個(gè)測(cè)試程序


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class LogTest {
    final Log log = LogFactory.getLog(this.getClass());

    Object o = new Object() {
        public String toString() {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return "this is slow! " + System.currentTimeMillis();
        }
    };

    @Test
    public void testFIFO() throws InterruptedException {
         
            new Thread() {
                public void run() {
                    log.info(o);
                }
            }.start();
            
            Thread.sleep(100);
            
            new Thread() {
                public void run() {
                    log.info("this is fast! " + System.currentTimeMillis());
                }
            }.start();
            
            Thread.sleep(2000);

    }
    

    @Test
    public void testFILO() throws InterruptedException {
         
            new Thread() {
                public void run() {
                    log.info(o.toString());
                }
            }.start();
            
            Thread.sleep(100);
            
            new Thread() {
                public void run() {
                    log.info("this is fast! " + System.currentTimeMillis());
                }
            }.start();
            
            Thread.sleep(2000);

    }

}

這里用的是commons-logging 來(lái)間接使用Log4j. 原理上是一樣的

輸出如下:

FIFO

INFO  2018-03-02 12:43:26,846 LogTest$2:run - this is slow! 1519965807848
INFO  2018-03-02 12:43:26,946 LogTest$3:run - this is fast! 1519965806946

FILO


INFO  2018-03-02 12:43:29,048 LogTest$5:run - this is fast! 1519965809048
INFO  2018-03-02 12:43:29,948 LogTest$4:run - this is slow! 1519965809948

第一個(gè)測(cè)試和第二個(gè)不同在于一個(gè)(FILO)是 log.info(o.toString());, 一個(gè)(FIFO)是log.info(o);
我故意把toString方法變慢. 對(duì)比兩個(gè)結(jié)果, 可以看到發(fā)生時(shí)間和寫(xiě)出時(shí)間的差異.

赱丅呿 回答

!!token是強(qiáng)制轉(zhuǎn)換類(lèi)型,用 !token

未命名 回答

你這打開(kāi)的是多個(gè)modal吧,打開(kāi)下一個(gè)modal框前先清除之前modal里面的值

凹凸曼 回答

已解決,props單向傳遞,從父到子就可以實(shí)現(xiàn)了

笑浮塵 回答

document.querySelectorAll 返回的是 NodeList 對(duì)象,在低版本瀏覽器中是沒(méi)有 forEach 方法的。
你需要將 NodeList 轉(zhuǎn)換成 Array 類(lèi)型再使用 forEach

[...document.querySelectorAll('*')].forEach(console.log)
浪婳 回答

請(qǐng)查閱Mysql的數(shù)據(jù)類(lèi)型