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

鍍金池/ 問答
祉小皓 回答

yAxis.minInterval //自動計(jì)算的坐標(biāo)軸最小間隔大小 設(shè)置成1 保證坐標(biāo)軸分割刻度顯示成整數(shù)

{
    min:0,
    minInterval :1
}

按照文檔感覺這樣就可以,可以把全部代碼發(fā)過來看下

安淺陌 回答

你看看這個(gè)字體是不是靜態(tài)的咯,是靜態(tài)的話生成一次map就可以一直用了,比如b'E03B'對應(yīng)u'二'這樣的。如果是動態(tài)的,愿意的話你可以找到同樣的字體,比如普通的“黑體”,然后想辦法用類似OCR的技術(shù)識別出每個(gè)字對應(yīng)的真正的文字。

愛是癌 回答

測試了一下,發(fā)現(xiàn)確實(shí)是返回undefined,下面是我的思維過程:

  1. Object.getOwnPropertyDescriptor從方法名可以看出來,這個(gè)屬性必須是自有屬性,而不是原型鏈上的屬性,那么是不是attributes并不是dom元素的自有屬性呢?
  2. 使用Object.hasOwnProperty驗(yàn)證一下,果然返回了false。既然不是自有屬性,那么Object.getOwnPropertyDescriptor也就返回undefined了。但是為什么不是自有屬性呢?
  3. 使用Object.hasOwnPropertyobj原型鏈上的對象測試了一遍,都是返回false。
  4. 結(jié)論:可能是dom對象做了特殊處理。那么我還是想看這個(gè)屬性描述符怎么辦呢?
  5. 既然attributes不是obj的自有屬性,那么我自己創(chuàng)建一個(gè)js對象,然后設(shè)置attributes屬性是obj.attributes應(yīng)該就行了吧?
  6. 果然,出來了。驗(yàn)證截圖如下:

clipboard.png

膽怯 回答

生成簽名的接口路徑是什么,調(diào)用支付的頁面路徑是什么,2個(gè)路徑是不是在同一個(gè)路徑下面

青瓷 回答

pdb的p打印出的是這個(gè)字符串的”定義串“,所以這里是對的,一個(gè)斜杠變成兩個(gè)斜杠,沒問題的。如果你的命令執(zhí)行有問題,可以檢查下你下面popen相關(guān)的代碼,通常不建議用os.popen,用subprocess.popen更好一些。

夏夕 回答

Linux的管道實(shí)現(xiàn)是個(gè)環(huán)形緩沖區(qū):

/**
 *    struct pipe_buffer - a linux kernel pipe buffer
 *    @page: the page containing the data for the pipe buffer
 *    @offset: offset of data inside the @page
 *    @len: length of data inside the @page
 *    @ops: operations associated with this buffer. See @pipe_buf_operations.
 *    @flags: pipe buffer flags. See above.
 *    @private: private data owned by the ops.
 **/
struct pipe_buffer {
    struct page *page;
    unsigned int offset, len;
    const struct pipe_buf_operations *ops;
    unsigned int flags;
    unsigned long private;
};


/**
 *    struct pipe_inode_info - a linux kernel pipe
 *    @mutex: mutex protecting the whole thing
 *    @wait: reader/writer wait point in case of empty/full pipe
 *    @nrbufs: the number of non-empty pipe buffers in this pipe
 *    @buffers: total number of buffers (should be a power of 2)
 *    @curbuf: the current pipe buffer entry
 *    @tmp_page: cached released page
 *    @readers: number of current readers of this pipe
 *    @writers: number of current writers of this pipe
 *    @files: number of struct file referring this pipe (protected by ->i_lock)
 *    @waiting_writers: number of writers blocked waiting for room
 *    @r_counter: reader counter
 *    @w_counter: writer counter
 *    @fasync_readers: reader side fasync
 *    @fasync_writers: writer side fasync
 *    @bufs: the circular array of pipe buffers
 *    @user: the user who created this pipe
 **/
struct pipe_inode_info {
    struct mutex mutex;
    wait_queue_head_t wait;
    unsigned int nrbufs, curbuf, buffers;
    unsigned int readers;
    unsigned int writers;
    unsigned int files;
    unsigned int waiting_writers;
    unsigned int r_counter;
    unsigned int w_counter;
    struct page *tmp_page;
    struct fasync_struct *fasync_readers;
    struct fasync_struct *fasync_writers;
    struct pipe_buffer *bufs;
    struct user_struct *user;
};

curbuf是當(dāng)前緩存區(qū)的下標(biāo),每個(gè)緩沖區(qū)里有offset和len記錄數(shù)據(jù)寫到的位置,讀寫的時(shí)候是要修改這些信息的。

如果兩個(gè)進(jìn)程同時(shí)進(jìn)行讀或者同時(shí)進(jìn)行寫,必要會導(dǎo)致數(shù)據(jù)沖突,所以內(nèi)核會對管道上鎖(pipe_inode_info里的mutex),所以是半雙工的。

比較簡單的實(shí)現(xiàn)可以看xv6的實(shí)現(xiàn)

struct pipe {
  struct spinlock lock;
  char data[PIPESIZE];
  uint nread;     // number of bytes read
  uint nwrite;    // number of bytes written
  int readopen;   // read fd is still open
  int writeopen;  // write fd is still open
};

直接一塊連續(xù)的內(nèi)存data,用兩個(gè)數(shù)字nread、nwrite記錄讀寫數(shù),通過PIPESIZE取模得到在data上的讀寫位置,用自旋鎖保護(hù)。如果沒有鎖,兩個(gè)進(jìn)程就能同時(shí)寫數(shù)據(jù)到data和修改nwrite,數(shù)據(jù)也就沖突了,同時(shí)讀也同理。

一整個(gè)字符串是換行是不可控的,達(dá)不到預(yù)期效果,只能像上面兩位大佬說的,在js要先轉(zhuǎn)成數(shù)組:

給你的jobsdetail添加個(gè)數(shù)組,拿到j(luò)obsdetail值后做個(gè)處理
....
this.jobsdetail=dataA
this.jobsdetail.PostDutiesArr=dataA.PostDuties.replace(/\s\d/g,v=>{return '$'+v}).split('$ ')
.....

頁面上寫成
....
<p v-for='it in item.PostDutiesArr'>{{it}}</p>
....
陌如玉 回答

this.$refs.paytpl.$el.cloneNode(true) 克隆下節(jié)點(diǎn)不行嗎

孤島 回答

我自己找到的答案,并且用了可以正常用,在databse.php里面配置
'search' => [

        'host' => '10.10.10.67',
        'port' => 6379,
        'database' => 0,
        'parameters'=>[
            'password'=>env('REDIS_PASSWORD', '')
        ]
    ]
野橘 回答

下載請求不是用ajax發(fā)出的,得用window.open(url)

莫小染 回答

兄弟,解決了嗎?

重寫樣式試試,將第一列的樣式與固定的樣式寫一樣。

安若晴 回答

StringBuilder是使用char[] value;存儲數(shù)據(jù)的

 @Override
    public int length() {
        return count;
    }
AbstractStringBuilder(int capacity) {
        value = new char[capacity];
    }

長度表示的是字符的個(gè)數(shù),容量表示的是可用于最新插入字符的存儲量。
例如:

StringBuilder sb=new StringBuilder();
sb.append("666");
sb.setLength(2);
System.out.println(sb.length());//追加了長度為3的字符串,count=count+3,所以結(jié)果為3
System.out.println(sb.capacity());//調(diào)用父類構(gòu)造器super(16);即是new char[16],所以結(jié)果16
String s=sb.toString();
System.out.println(s);
 public void setLength(int newLength) {
        if (newLength < 0)
            throw new StringIndexOutOfBoundsException(newLength);
        ensureCapacityInternal(newLength);

        if (count < newLength) {
            Arrays.fill(value, count, newLength, '\0');
        }

        count = newLength;
    }

執(zhí)行sb.setLength(2);char[]數(shù)組內(nèi)容沒有變化,下標(biāo)0,1,2還是存儲6,6,6
就是把count值設(shè)置為2而已,下面調(diào)用toString();方法重新構(gòu)造一個(gè)String對象,char數(shù)組存儲6,6
如果設(shè)置sb.setLength(4);構(gòu)造新的String對象,最后一個(gè)補(bǔ)上'0'。

鐧簞噯 回答

先設(shè)置post,并將url填好。

1、設(shè)置請求頭
SouthEast

2、設(shè)置請求體
SouthEast

比如后臺PHP服務(wù)器接受upload字段的文件:

echo $_FILES["upload"];

墨小羽 回答
  1. 終于找到問題來源了, 果然是頁面加載的問題, 在頁面頂部有一組輪播圖, 我通過判斷屏幕尺寸來動態(tài)獲取圖片資源, 代碼如下:
// 輪播圖動態(tài)選擇圖片
  var items = $('.carousel-inner .item');
  $(window).on('resize',function () {
    var width = $(window).width();
    if(width >= 768) {
      $(items).each(function (index,value) {
        var imgSrc = $(this).data("largeImage");
        $(this).find(".carousel-box").html($('<a href="javascript:;" class="pcImg"></a>').css("backgroundImage","url('"+imgSrc+"')"));
      });
    }else {
      $(items).each(function (index,value) {
        var imgSrc = $(this).data("smallImage");
        $(this).find(".carousel-box").html('<a href="javascript:;" class="mobileImg"><img src="'+imgSrc+'" alt="..."></a>');
      })
    }
  }).trigger('resize');  // 自動觸發(fā)事件
  1. 在設(shè)置樣式時(shí)我給pcImg設(shè)置了700px的高度, 圖片加載較慢, 還沒有設(shè)置高度就獲取了動畫元素的偏移量, 所以出錯(cuò)了;
  2. 我的解決辦法很簡單, 就是在滾動的時(shí)候一直去獲取$(".zxg-download").offset().top, 這樣就不會有問題了.
  3. 不知道還有沒有更好的辦法, 比如等到圖片加載出來之后再去執(zhí)行函數(shù), 我用了$(function(){})沒效果, 不知道為什么.
哎呦喂 回答

如下所示(負(fù)數(shù)處理):

var arr = [-10, 250, 850, 5000];
//對負(fù)數(shù)進(jìn)行了處理,負(fù)數(shù)也小于100,所以顯示為1,其它都是同理的
console.log(Math.ceil(arr[0] / 100) >= 1 ? Math.ceil(arr[0] / 100) : 1); 
console.log(Math.ceil(arr[1] / 100));
console.log(Math.ceil(arr[2] / 100));
console.log(Math.ceil(arr[3] / 100));