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

鍍金池/ 問(wèn)答
笑浮塵 回答

問(wèn)題解決了 但是不知道怎么解決了 今天早上 重新打開eclipse 就發(fā)現(xiàn)可以運(yùn)行了 幸福來(lái)的太突然。但是有那位大佬知道原因嗎?
還有就是我之前寫的 會(huì)出現(xiàn) :There is no Action mapped for namespace [/] and action name [login] associate ; 這個(gè)錯(cuò)誤的項(xiàng)目也可以運(yùn)行了

附上我eclipse版本
clipboard.png

網(wǎng)妓 回答

兄弟,我給你答了那么久,你不感謝一下還把問(wèn)題關(guān)了..

項(xiàng)目不支持es6語(yǔ)法,嘗試模塊化改寫的

        // 模板引擎補(bǔ)充
        template.defaults.imports.Balance = function(number) {
            return number.toFixed(2);
        }
        // 當(dāng)所有組件準(zhǔn)備好后執(zhí)行內(nèi)部回調(diào)方法
        appcan.ready(function() {

            uexWindow.setWindowScrollbarVisible('false');

            appcan.frame.setBounce(1, function(type) {
                $("#pullstatus").html("");
            }, function(type) {
                $("#pullstatus").html("");
            }, function(type) {
                $("#pullstatus").html("松手了,產(chǎn)生事件了,開始更新數(shù)據(jù)!");
                // 下拉事件發(fā)生
                appcan.frame.resetBounce(1);
                var num = Number(pageNo) * limit;

                $("#pullstatus").html("");
                // alert("totalRows=" + totalRows)

                if (Number(totalRows) <= num) {
                    appcan.window.openToast({
                        msg : '沒(méi)有更多',
                        duration : 1000,
                        position : 5,
                        type : 0
                    });
                    return;
                }

                pageNo = Number(pageNo) + 1;
                Orders.addData();
            });
            Orders.init();

        });
        var Orders = {
            init : function() {
                this.queryCusBasOrg();
                this.options().bind();
            },
            options : function() {
                var yue = this,
                    options = {};
                yue.options.companyList = document.getElementById('companyList');
                yue.options.bills_list = document.getElementById("bills_list");
                yue.options.tishi = document.getElementById('tishi');
                return yue;
            },
            bind : function() {
                var yue = this;
                this.options.companyList.onchange = function() {
                    yue.changeCompany();
                }
            },

            // 獲取公司列表
            queryCusBasOrg : function() {
                var yue = this;
                var func = yue.showCompanyCallback.bind(yue);

                ajaxPostQuery(URL + "/app/cus/queryCusBasOrg", "", func, "text");

            },
            // 回調(diào)
            showCompanyCallback : function(data) {
                var yue = this;
                var tishi = yue.options.tishi;
                var companyList = yue.options.companyList;

                if ( typeof data == "string") {
                    data = JSON.parse(data);
                };

                var html = template('Company_tmpl', {
                    list : data
                });

                $('#companyList').html(html);
                tishi.style.height = "5em"

                var linkId = companyList.value;

                Orders.queryBills(linkId);
            },
            // 獲取訂單數(shù)據(jù)
            queryBills : function(linkId) {
                var yue = this;
                var paramJsonStr = "&pager.pageNo=" + pageNo + "&pager.pageSize=" + pageSize + "&cusOrgLinkid=" + linkId;
                var func = yue.showBillsCallback.bind(yue);
                ajaxPostQuery(URL + "/app/cus/queryCusPayMoney", paramJsonStr, func, "text");
                appcan.window.openToast('正在加載...', '0', '5', '1');

            },
            // 獲取訂單數(shù)據(jù)回調(diào)
            showBillsCallback : function(data) {
                var yue = this;
                var tishi = yue.options.tishi;
                var bills_list = yue.options.bills_list;

                appcan.window.closeToast();

                if ( typeof data == "string") {
                    data = JSON.parse(data)
                };
                totalRows = data["pager.totalRows"];
                // alert(totalRows)

                var html = '';
                if (data === 0) {
                    html = "<div id='' class='ub ub-pc pc time-wrapper''>" + "<span class='mf-size2 time'>暫無(wú)歷史賬單</span>" + "</div>";
                    tishi.innerHTML = html;
                } else {
                    html = template('bills_tmpl', {
                        list : data.rows
                    });
                    bills_list.innerHTML = html;
                    tishi.innerHTML = "";
                }

            },
            // 下拉刷新添加數(shù)據(jù)
            addData : function() {
                var yue = this;
                var linkId = yue.options.companyList.value;
                var paramJsonStr = "&pager.pageNo=" + pageNo + "&pager.pageSize=" + pageSize + "&cusOrgLinkid=" + linkId;

                ajaxPostQuery(URL + "/app/cus/queryCusPayMoney", paramJsonStr, yue.addDataCallback, "text");
                appcan.window.openToast('正在加載...', '0', '5', '1');
            },
            // 下拉刷新添加數(shù)據(jù)回調(diào)
            addDataCallback : function(data) {
                var yue = this;
                var tishi = yue.options.tishi;
                appcan.window.closeToast();

                if ( typeof data == "string") {
                    data = JSON.parse(data)
                };
                totalRows = data["pager.totalRows"];
                // alert(totalRows)

                var html = '';
                if (data === 0) {
                    html = "<div id='' class='ub ub-pc pc time-wrapper''>" + "<span class='mf-size2 time'>暫無(wú)歷史賬單</span>" + "</div>";
                    tishi.innerHTML = html;
                } else {
                    html = template('bills_tmpl', {
                        list : data.rows
                    });

                    $('#bills_list').append(html);
                    tishi.innerHTML = '';
                }
            },
            // 城市名稱改變
            changeCompany : function() {
                var yue = this;
                yue.options.bills_list.innerHTML = "";
                var linkId = yue.options.companyList.value;
                pageNo = 1;
                yue.queryBills(linkId)
            },
            // 打開詳情頁(yè)
            openDetail : function(id) {
                appcan.locStorage.setVal('FUNDSUB_ID', id);
                appcan.window.open("detail", 'order_detail.html', 10);
            }
        }
筱饞貓 回答

可以把 Vue 當(dāng)成一個(gè)類(即:ES6 中的 class Vue{} 或 ES5 中的 function Vue(){} )。

圖中,Vue.useVue 的類方法,即直接通過(guò) Vue.use() 調(diào)用的方法,這個(gè)方法是用來(lái)拓展 Vue 的插件的,項(xiàng)目中如果要使用一些插件,比如 Element UI,就需要通過(guò)這個(gè)方法來(lái)引入。

而,通過(guò) Vue.pototype.fun 定義的方法,是在一個(gè) Vue 組件內(nèi)使用的方法,就是說(shuō),如果想用方法 fun,你需要在用 Vue 定義的組件內(nèi)調(diào)用才行,不能直接使用 Vue.fun 來(lái)調(diào)用。

只愛你 回答

但凡是js里在瀏覽器端才能決定路徑的代碼,其中的路徑地址都該是絕對(duì)路徑引用static,或使用require提前導(dǎo)入對(duì)應(yīng)資源。

怣人 回答

map使用方法

var newArrayOne = oldArray.map(function(v){
    return v.name
})

var newArrayTwo = oldArray.map(function(v){
    return v.num
})

順便貼一張微博偷來(lái)的圖。。

clipboard.png

孤島 回答

你這密碼中好像沒(méi)有加多余的參數(shù),只是記住密碼的時(shí)候,把登陸信息加密保存在cookie中了;

如果提示登陸失敗的話,應(yīng)該是

$model = M("Member");
$user = $model ->field('uid,user')-> where(array('user'=>$username,'password'=>$password)) -> find();
if($user) {

}

$user這個(gè)值為空,說(shuō)明沒(méi)有查詢到相關(guān)信息;
樓主可以斷點(diǎn)調(diào)試一下自己的代碼,或者在關(guān)鍵的代碼下面,打印輸出進(jìn)行調(diào)試;

情殺 回答

一、reject后的東西,一定會(huì)進(jìn)入then中的第二個(gè)回調(diào),如果then中沒(méi)有寫第二個(gè)回調(diào),則進(jìn)入catch


 var p1=new Promise((resolve,rej) => {
    console.log('沒(méi)有resolve')
    //throw new Error('手動(dòng)返回錯(cuò)誤')
    rej('失敗了')

 })

 p1.then(data =>{
    console.log('data::',data);
 },err=> {
    console.log('err::',err)
 }).catch(
    res => {
    console.log('catch data::', res)
 })

 VM367054:2 沒(méi)有resolve
 VM367054:11 err:: 失敗了
  • then中沒(méi)有第二個(gè)回調(diào)的情況

 var p1=new Promise((resolve,rej) => {
    console.log('沒(méi)有resolve')
    //throw new Error('手動(dòng)返回錯(cuò)誤')
    rej('失敗了')

 })

 p1.then(data =>{
    console.log('data::',data);
 }).catch(
    res => {
    console.log('catch data::', res)
 })

 VM367054:2 沒(méi)有resolve
 VM367054:11 catch data:: 失敗了
  • 如果沒(méi)有then, 也可以直接進(jìn)入catch
 var p1=new Promise((resolve,rej) => {
    console.log('沒(méi)有 resolve')
    //throw new Error('手動(dòng)返回錯(cuò)誤')
    rej('失敗了')

 })

 p1.catch(
    res => {
    console.log('catch data::', res)
 })
VM367087:2 沒(méi)有resolve
VM367087:9 catch data:: 失敗了

二、resolve的東西,一定會(huì)進(jìn)入then的第一個(gè)回調(diào),肯定不會(huì)進(jìn)入catch

 var p1=new Promise((resolve,rej) => {
    console.log('resolve')
    //throw new Error('手動(dòng)返回錯(cuò)誤')
    resolve('成功了')

 })

 p1.then(data =>{
    console.log('data::',data);
 }).catch(
    res => {
    console.log('catch data::', res)
 })
VM367087:2 resolve
VM367087:9 data:: 成功了
  • 不會(huì)進(jìn)入catch的情況
 var p1=new Promise((resolve,rej) => {
    console.log('resolve')
    //throw new Error('手動(dòng)返回錯(cuò)誤')
    resolve('成功了')

 })

 p1.catch(
    res => {
    console.log('catch data::', res)
 })
VM367087:2 resolve

throw new Error 的情況和rej一樣,但是他倆只會(huì)有一個(gè)發(fā)生
另外,網(wǎng)絡(luò)異常(比如斷網(wǎng)),會(huì)直接進(jìn)入catch而不會(huì)進(jìn)入then的第二個(gè)回調(diào)

菊外人 回答

apple-watch-series這個(gè)canvas窗口滾動(dòng)縮放實(shí)現(xiàn)難度太大,放棄了

伴謊 回答

react 16 已經(jīng)沒(méi)有data-react-checksum了, use hydrate() instead of render()

history.push(path, {query: {grade, id}})
獲取的時(shí)候在match中。請(qǐng)把props打印出來(lái)慢慢找。

鹿惑 回答

axios攔截器里面,設(shè)置content-type了嗎?
后臺(tái)接收content-type:application/json;還是application/x-www-form-urlencoded或者別的,
400后臺(tái)應(yīng)該是都沒(méi)收到你的請(qǐng)求

你的瞳 回答

哪有那么麻煩。
用一個(gè)state值記錄這個(gè)表單就可以了。
切回來(lái)的時(shí)候,就相當(dāng)于編輯功能。

離夢(mèng) 回答

兩種都是json吧,不信你拿json格式化工具試試
在項(xiàng)目中要改,估計(jì)redcuer,還有mapStateToProps都要改了。
依你的數(shù)據(jù)將數(shù)據(jù)轉(zhuǎn)對(duì)象的方法:

let oldArray = [
  {id: 1, field_id: 10, data: "215", member_id: 101},
  {id: 12, field_id: 2, data: "215212", member_id: 101},
  {id: 2, field_id: 31, data: "123", member_id: 101}
];

let obj = {};

for(const o of oldArray) {
  obj[o.id] = o;
}

console.log(obj)
法克魷 回答

使用媒體查詢吧

失魂人 回答

代碼看不出什么問(wèn)題。
今天官網(wǎng)確實(shí)打不開,需要梯子才可以。
給你一個(gè)國(guó)內(nèi)鏡像:
antd
antd-mobile

@change="change(scope.$index,$event)";

methods:{

change(index,e){
    const value = e.target.value;
    this.$set(this.tableData[index],'exchangeNum',value * 10) 
}

}

應(yīng)該是可行的