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

鍍金池/ 問答
舊螢火 回答

保證數(shù)據(jù)是json數(shù)組,vue循環(huán)嵌套

  <ul>
    <li v-for='val in treeObj'>
       <p  v-for='item in val.child' >
         {{val.value}}-{{item.value}}
       </p>
    </li>
  </ul>
    data() {
      return {
        treeObj: [{
          value: '1',
          child:[
            {
              value: '1.1',
              child:[]
            },
            {
              value: '1.2',
              child:[]
            }
          ]
        }]
      }
    },
熟稔 回答
  1. angular2+是基于component的,組件化開發(fā)是常態(tài)。
  2. angular2+可以完全脫離jQuery,現(xiàn)在都是虛擬dom了
  3. angular2+都是搭配typescript開發(fā),ES最新的標(biāo)準(zhǔn)都在慢慢支持。

最后想說angular2+學(xué)習(xí)曲線很高,更適合企業(yè)級開發(fā)應(yīng)用。
當(dāng)然也適合移動端, 但我覺得你在做技術(shù)選型的時候還是要考慮,angular2+究竟適不適合你們的業(yè)務(wù)需求。

絯孑氣 回答

應(yīng)該是都可以的,還有這么一種方法:

dataList = new Vue({
    el: '#corps',
    data() {
        return {
            items: list
        }
    }
});

我像你那樣寫沒問題呀,你看看這個,你是怎么玩兒的,是這樣嘛?:

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>test</title>
    <script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
</head>

<body>
    <span id="corps" class="corps box">
        <font>請選擇總隊</font>
        <ul v-for="item in items">
            <li v-html="item.fcName"></li>
        </ul>
    </span>
    <script>
        var list = [{
            fcName: "0"
        }, {
            fcName: "1"
        }];
        var dataList = new Vue({
            el: '#corps',
            data: {
                items: list
            }
        });
    </script>
</body>

</html>
陌南塵 回答

有這么幾種可能

  • 百度統(tǒng)計沒有正確安裝,少統(tǒng)計某一種設(shè)備什么的
  • 百度統(tǒng)計本身不是實時的,對于你們來說有滯后
  • 用戶網(wǎng)絡(luò)狀況,手速太快等等原因?qū)е掳俣冉y(tǒng)計根本沒起作用

對了,還有種可能是這些沒被統(tǒng)計的注冊用戶都是機(jī)器人

慢半拍 回答

這個什么鬼?問題估計處在這里,需要關(guān)閉這個資源??蓡栴}是你從哪里冒出這個ImageIO的?

情已空 回答

這個很明顯呀,曲線橫軸是時間t,縱軸是狀態(tài)p。
如果這個曲線有一部分位于第四象限,那么就會有一段t值,會使得p<0,并且不斷減小。
假如狀態(tài)p就是元素向右偏移的距離,那么p<0不就是向左偏了嗎

淚染裳 回答

之所以有一秒延遲是因為你使用的時候外部方法,如果你使用 $timeout就不會出現(xiàn)這個問題,或者你使用外部方法之后進(jìn)行一下臟值檢測。也就是在方法最后寫一個 $scope.$apply()

憶往昔 回答

問題:
1.本地環(huán)境打包的 js正常
2.預(yù)發(fā)環(huán)境,測試環(huán)境打包的js報錯
問題假設(shè)(彎路):
1.node npm 版本問題導(dǎo)致打包出來js不同
2.liunx 環(huán)境差異
學(xué)藝不精:
1.export 說明 ES6 沒有成功轉(zhuǎn)為瀏覽器所支持的 ES5
2.那就應(yīng)該是babel的問題
3.
clipboard.png
4.查看package.json 發(fā)現(xiàn)要求babel版本>=X.X.X的,猜測版本問題
5.刪了所有babel依賴重新下載,終于復(fù)現(xiàn)了預(yù)發(fā)環(huán)境的問題
6.最終解決方案固定關(guān)鍵依賴版本號

孤毒 回答

a 是 void*,不能解引用。此外 a = (int *)a; 這句毫無意義,你把 a 轉(zhuǎn)成 int*,再賦值給 a,又變成 void *

蝶戀花 回答

閑來無事、瞎答一通、僅供參考、概不負(fù)責(zé)................

  • HTML里的狀態(tài)合并 根據(jù)請求的數(shù)據(jù)顯示不同的結(jié)果 包括內(nèi)容和class eg:
    <span :class="infoStatus.class">{{infoStatus.message}}</span>
  • 設(shè)置一個狀態(tài)對象顯示 eg:
    data() {
        return {
            infoStatus: {
                class: [],
                message: '待支付'
            }
        }
    }
  • 定義一個方法 處理對象 接收參數(shù) eg:
    methods: {
        statusJudge(item, message){
            if (item.payment_amount === 1 ){
                return
            }
            //  如果你的后端給你message的話 就可使用message替換文字描述
            if (status ===1) {
                this.infoStatus.message = '待支付'
                this.infoStatus.class = ['error','show']
            } else if ( status ===3 || status === 6 ) {
                this.infoStatus.message = '已支付'
                this.infoStatus.class = ['danger','hide']
            } else if ( status ===3 || status === 6 ) {
                this.infoStatus.message = '已超時'
                this.infoStatus.class = ['xxx','sss']
            }
        }
    }
  • 在你獲取或者改變狀態(tài)的請求中調(diào)用方法 eg:
    mounted() {
        axios('url').then((res) =>{
            let item = res.data;
            this.statusJudge(item, item.message)
        })
    },

不寫了。。。

先看看你控制臺有沒有報什么錯

礙你眼 回答
  1. 所以使用module中的必須要用module.exports和require?

首先你是nodejs,8以上支持import-export,但要加運行參數(shù),并且改為.mjs,詳情看官網(wǎng)。

2.如果是按上面的方法的話不是還是將整個模塊導(dǎo)入然后再從模塊中讀取特定屬性,可是我看阮一峰的教程中是說只加載import的方法?

據(jù)我所知,無論require還是import都是整個模塊導(dǎo)入,這是nodejsrequire實現(xiàn)以及ES6import規(guī)范,let {foo,bar} = ...只是解構(gòu)語法。

參考鏈接MDN import

Given an object or value named myExport which has been exported from the module my-module either implicitly (because the entire module is exported) or explicitly (using the export statement), this inserts myExport into the current scope.
import {myExport} from '/modules/my-module.js';
愿如初 回答

可以換一個思路,withShareTicket定義到全局的data里,然后wx.showShareMenu的時候給withShareTicket賦值為true,這樣就可以用this了

孤酒 回答

如果當(dāng)前只有這一個選擇,你跳轉(zhuǎn)的頁面 不就是你的選擇,不需要記下來啊
// /cpi /cloth
如果是當(dāng)前 數(shù)據(jù) 關(guān)閉當(dāng)前標(biāo)簽頁 消失可以存在 session Storage 里面 否則存在 local Storage里面
sessionStorage.setItem("data1", "value");
// undefined
sessionStorage.getItem("data1");
// "value"
這樣就可以再下個頁面得到 數(shù)據(jù)了

好難瘦 回答

在scripts/config/
zconf.hash.c
zconf.hash.c_shipped
兩個文件中kconf_id_lookup前加入:

#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif

圖片描述

厭惡我 回答

探究

public static void main(String[] args) throws Exception {
    Thread.currentThread().join();
    System.out.println("main thread exit.");
  }

為了了解問題本質(zhì),我們跟進(jìn)去代碼看看,線程的join方法如下:

public final void join() throws InterruptedException {
        join(0);
    }

再繼續(xù)跟:

public final synchronized void join(long millis)
    throws InterruptedException {
        long base = System.currentTimeMillis();
        long now = 0;

        if (millis < 0) {
            throw new IllegalArgumentException("timeout value is negative");
        }

        if (millis == 0) {
            while (isAlive()) {
                wait(0);
            }
        } else {
            while (isAlive()) {
                long delay = millis - now;
                if (delay <= 0) {
                    break;
                }
                wait(delay);
                now = System.currentTimeMillis() - base;
            }
        }
    }

根據(jù)代碼,其實join方法最終是待用了wait(0);這行代碼,而wait方法是本地方法.

根據(jù)wait的方法定義,有以下幾點逐一說明:

  • wait()方法在Object類定義,調(diào)用時會獲取該對象上的監(jiān)視器,因此必須在同步代碼塊上調(diào)用.從代碼來看`public final synchronized void join(long millis)
    throws InterruptedException`,因此調(diào)用wait方法后,實際上是獲取了當(dāng)前對象(根據(jù)調(diào)試查看到是main線程)的監(jiān)視器.
  • 根據(jù)wait方法的定義,它只在在如下幾種情況才會被喚醒,否則將一直等待:
<ul>
  
<li>Some other thread invokes the {@code notify} method for this
      object and thread <var>T</var> happens to be arbitrarily chosen as
      the thread to be awakened.
     
<li>Some other thread invokes the {@code notifyAll} method for this
      object.
      
<li>Some other thread {@linkplain Thread#interrupt() interrupts}
      thread <var>T</var>.
      
<li>The specified amount of real time has elapsed, more or less.  If
      {@code timeout} is zero, however, then real time is not taken into
      consideration and the thread simply waits until notified.
</ul>

總結(jié)

因此,回答你的問題就是,join方法實質(zhì)是調(diào)用了wait方法.wait方法調(diào)用后阻塞(我不認(rèn)為這是阻塞)在當(dāng)前線程(main線程上),根據(jù)wait的定義,不調(diào)用notify,notifyAll,interrupt以及超時機(jī)制(本例調(diào)用的是wait(0),故不存在這種情況),那么線程將一直處于等待狀態(tài),故一直不會退出。

嘟尛嘴 回答

恩,我找到了答案。。https://www.jianshu.com/p/f24...