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

鍍金池/ 問答
我以為 回答

node 8+的話,package-lock.json也需要部署上去。沒有l(wèi)ock文件,其實(shí)很容易出問題,因?yàn)閚pm總是傾向于安裝更新的包,除非你固定版本

入她眼 回答

看看瀏覽器的控制臺(tái)是不是有 error

todataURL 出來的圖是空白的,都會(huì)有 error

笨笨噠 回答

終于摸索出答案了,自己回答吧,哈哈哈!

app.controller('ctl', function($scope){
    $scope.myOrder = function(item){
        return item.orderNum > 3: true: false;
    }
});

myOrder 返回 true,item往后排列,否則往前排。

祉小皓 回答
var i = 0
setInterval(() => {
    console.log(++i)
}, 3000)
卟乖 回答

你的異步加載模塊的過程就是返回的一個(gè)promise,那你在之前做你想做的唄,可以用promise鏈?zhǔn)教幚?/p>

兮顏 回答
//文章的  評(píng)論的改一下表就好了
select tb_user.* from tb_article join tb_user on tb_user.id=tb_article.id order by tb_article.create_time desc limit 5;
//一起?效率...就沒怎么考慮233.....
SELECT
    a.uid,
    username
FROM
    (
        (
            SELECT
                `uid`,
                `create_time` AS `time`
            FROM
                tb_article
        )
        UNION ALL
            (
                SELECT
                    `uid`,
                    `create_time` AS time
                FROM
                    tb_comment
            )
    ) AS a
JOIN tb_userAS b ON a.uid = b.uid
GROUP BY
    a.uid
ORDER BY
    a.time DESC
LIMIT 5
萌小萌 回答

() -> {} 是一個(gè) Java 8 的新特性:lambda 表達(dá)式。

命令模式在 Java 8 以前的實(shí)現(xiàn)是類似這樣的:

pulic interface Command {
    void doCommand();
}

這種單方法的接口,在 Java 8 里允許使用簡(jiǎn)潔的 lambda 表達(dá)式來描述,如果這個(gè)方法有參數(shù),比如:

public interface Command {
    void doCommand(int arg1, int arg2);
}

那么,就可以用 (arg1, arg2) -> { System.out.println(arg1 + arg2); } 來描述一個(gè)接口的實(shí)現(xiàn)。

這是 函數(shù)式編程 的一種體現(xiàn),你可以多了解一下 Java 8 這方面的新特性。

所以回過頭來說,() -> {} 表示的是,實(shí)現(xiàn)了某個(gè)接口的空參、啥都不干的接口實(shí)例。
具體實(shí)現(xiàn)的是哪個(gè)接口取決于 onCommands 的類型聲明。

so,你這個(gè)例子里意思就是:
創(chuàng)建兩個(gè)數(shù)組,分別是開啟時(shí)要執(zhí)行的命令、關(guān)閉時(shí)要執(zhí)行的命令,數(shù)組長(zhǎng)度為7;
為了初始化,避免空指針,為這兩個(gè)數(shù)組賦值 啥都不干接口實(shí)例 是最合適的。

涼汐 回答

JSON.parse()參數(shù)格式不對(duì),要完整json字符串

雨蝶 回答

首先屬性動(dòng)畫傾向于說法是通過改變控件屬性來執(zhí)行的動(dòng)畫,強(qiáng)調(diào)的是改變控件的屬性。也就是控件的實(shí)際屬性發(fā)生了變化。

補(bǔ)間動(dòng)畫則重視動(dòng)作和狀態(tài),意思是控件A狀態(tài):移動(dòng),漸變,放大等變成B狀態(tài)。因此叫做TweenAnimation
其中所有動(dòng)畫幀便是計(jì)算出來的,而實(shí)際控件的屬性和原來的屬性沒有任何變化。

因此補(bǔ)間動(dòng)畫是設(shè)定起始狀態(tài),結(jié)束狀態(tài)通過代碼計(jì)算繪制出來的連續(xù)動(dòng)畫
屬性動(dòng)畫則是通過不停的改變控件的屬性,通過刷新機(jī)制而形成的動(dòng)畫。

你非要說沒有補(bǔ)間的意思,那只能說我不太明白你要得補(bǔ)間是什么鬼

浪婳 回答

錯(cuò)誤定位在45行:

infodict.update({"股票名稱": stockname.text.split()[0]})#    

應(yīng)該是某些股票名稱為空造成的。

調(diào)試時(shí),不要用try...except把錯(cuò)誤信息都屏蔽了,在關(guān)鍵的地方打上斷點(diǎn)或者print出值看看。

絯孑氣 回答

autofocus="false"

取消默認(rèn)聚焦

clipboard.png

涼薄 回答

這個(gè)沒有任何區(qū)別啊

const p1=new Promise(function(resolve,reject){
    setTimeout(()=>reject(new Error('fail')),3000);
});
const p2=new Promise(function(resolve,reject){
    //setTimeout(()=>resolve(p1),1000);
    resolve(p1);
});

p2.then(result=>console.log(result))
.catch(error=>console.log(error));

console.log("p2===p1 =>"+(p2===p1));

p2和p1是2個(gè)不同的promise

getJSON('/post/1.json').then(function(post){
    return getJSON(post.commentURL);
}).then(function(comments){
    //some code
}).catch(function(error){
    //
});

==>

var getJSONPromise0=getJSON('/post/1.json');

var getJSONPromise1=getJSONPromise0.then(function(post){
    return getJSON(post.commentURL);
});
var getJSONPromise2=getJSONPromise1.then(function(comments){
    //some code
});

var getJSONPromise3=getJSONPromise2.catch(function(error){
    //
    console.log(error);
});

一共是4個(gè)promise

=====補(bǔ)充回答====
我們看看Promise
new Promise( /* executor */ function(resolve, reject) { ... } );
這個(gè)是Prmoise的構(gòu)造函數(shù)

Promise.prototype.then(onFulfilled, onRejected)是then方法的原型定義。

Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler, or to its original settled value if the promise was not handled (i.e. if the relevant handler onFulfilled or onRejected is not a function).

then方法返回一個(gè)新的promise對(duì)象,并把onFulfilled和onRejected作為新的Promise對(duì)象的完成或拒絕結(jié)果回調(diào)函數(shù)。
如果沒有對(duì)應(yīng)的回調(diào)函數(shù),那么將對(duì)應(yīng)的值直接作為新的Promise的resolve值

你要問的是onFulfilled函數(shù)有返回非promise,返回promise或不返回值之間的區(qū)別吧:
返回非promise,那么這個(gè)值通過Promise.resolve靜態(tài)方法轉(zhuǎn)成一個(gè)狀態(tài)確定的Promise返回
返回promise,那么這個(gè)新的promise將被返回作為作為后續(xù)then/catch方法的的實(shí)際調(diào)用Promise
不返回,也是返回一個(gè)一個(gè)狀態(tài)確定的Promise,最終的決議值為undefined

你可以簡(jiǎn)單的認(rèn)為返回Promise就會(huì)把then方法返回的Promise代替了

測(cè)試代碼

var tempP;
var p1=new Promise(function(resolve,reject){
    setTimeout(function(){
        resolve("p1");
    },1000);
});

var p2=p1.then(function(data){
    console.log("p2 GOT:"+data);
    //[A]
    /*
    tempP=new Promise(function(resolve,reject){
        setTimeout(function(){
            resolve("return_Promise");
        },1000);
    });
    */
    
    tempP="return_Normal"http://[B]
    //return tempP; //[C]
},function(error){
    console.log("error:"+error);
});

var p3=p2.then(function(data){
    console.log("p3 GOT:"+data);
});

[A]結(jié)果
//p2 GOT:p1
//p3 GOT:return_Promise

[B]結(jié)果
//p2 GOT:p1
//p3 GOT:return_Normal

[C]結(jié)果
//p2 GOT:p1
//p3 GOT:undefined
愿如初 回答

_animate沒調(diào)用啊

情皺 回答

不同列的數(shù)據(jù)表示的意義肯定不一樣,為什么說是重復(fù)無數(shù)據(jù),我沒懂上面的意思。能發(fā)一下表的的表格截圖嗎?

臭榴蓮 回答

className className className