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

鍍金池/ 問答/ HTML問答
擱淺 回答

寫了個測試在一下兩個版本跑結果竟然是不同的.萬年的微軟坑
Microsoft Edge 41.16299.15.0 axios post 請求會自動轉(zhuǎn)成get請求
Microsoft Edge 38.14392.1066.0 axios post 請求正常

import Axios from 'axios'
import Promise from 'es6-promise'
Promise.polyfill()
import qs from 'qs'
const URL= 'http://192.168.0.112/account/login/username'
let params = {
    username:'admin',
    password:'admin',
}
Axios.post(URL,qs.stringify(params))
.then(res=>{
    console.log(res)
    }
)
.catch(error=>{
    console.log(error)
    }
)

ISSUES回答,github

EDGE相同問題,微軟

你好胸 回答

this.siblings()?

過客 回答

如果new語句一定要放在function里面的話,是沒有辦法實現(xiàn)你說的需求的。

我知道你的實際使用場景是什么,為什么一定要把new放function里面。沒有別的方式可以代替麼?

舊城人 回答

在item組件中直接使用對象進行渲染,因此報錯了。

魚梓 回答

JWT的原理就是服務端根據(jù)secret生成token,當然secret只有服務器自己才知道是多少,也就讓token只能是由服務端簽發(fā);

看看
http://blog.csdn.net/u0112771...

離殤 回答

vue路由有meta字段,可以用來存儲可訪問此路由的角色,但是這樣的話,你的菜單需要根據(jù)路由動態(tài)生成而不是寫死在頁面上。

喜歡你 回答

對于復制集,唯一索引是保證絕對唯一的;對于分片集,只保證片內(nèi)唯一,不保證跨片的唯一,除非唯一索引正好是片鍵。
這些在文檔里有,可以參考。因為不知道你具體出現(xiàn)的是什么問題,所以也沒法分析了。

萢萢糖 回答

看看這個demo

<template>
    <v-table
            is-horizontal-resize
            style="width:100%"
            :columns="columns"
            :table-data="tableData"
            row-hover-color="#eee"
            row-click-color="#edf7ff"
            @on-custom-comp="customCompFunc"
    ></v-table>
</template>

<script>

    import Vue from 'vue'

    export default{
        data() {
            return {
                tableData: [
                        {"name":"趙偉","tel":"156*****1987","hobby":"鋼琴、書法、唱歌","address":"上海市黃浦區(qū)金陵東路569號17樓"},
                        {"name":"李偉","tel":"182*****1538","hobby":"鋼琴、書法、唱歌","address":"上海市奉賢區(qū)南橋鎮(zhèn)立新路12號2樓"},
                        {"name":"孫偉","tel":"161*****0097","hobby":"鋼琴、書法、唱歌","address":"上海市崇明縣城橋鎮(zhèn)八一路739號"},
                        {"name":"周偉","tel":"197*****1123","hobby":"鋼琴、書法、唱歌","address":"上海市青浦區(qū)青浦鎮(zhèn)章浜路24號"},
                        {"name":"吳偉","tel":"183*****6678","hobby":"鋼琴、書法、唱歌","address":"上海市松江區(qū)樂都西路867-871號"}
                     ],
                    columns: [
                        {
                            field: 'custome', title:'序號', width: 50, titleAlign: 'center', columnAlign: 'center',
                            formatter: function (rowData,rowIndex,pagingIndex,field) {
                                return rowIndex < 3 ? '<span style="color:red;font-weight: bold;">' + (rowIndex + 1) + '</span>' : rowIndex + 1
                            }, isFrozen: true,isResize:true
                        },
                        {field: 'name', title:'姓名', width: 80, titleAlign: 'center',columnAlign:'center',isResize:true},
                        {field: 'tel', title: '手機號碼', width: 150, titleAlign: 'center',columnAlign:'center',isResize:true},
                        {field: 'hobby', title: '愛好', width: 150, titleAlign: 'center',columnAlign:'center',isResize:true},
                        {field: 'address', title: '地址', width: 230, titleAlign: 'center',columnAlign:'left',isResize:true},
                        {field: 'custome-adv', title: '操作',width: 200, titleAlign: 'center',columnAlign:'center',componentName:'table-operation',isResize:true}
                    ]

            }
        },
        methods:{
            customCompFunc(params){

                console.log(params);

                if (params.type === 'delete'){ // do delete operation

                    this.$delete(this.tableData,params.index);

                }else if (params.type === 'edit'){ // do edit operation

                    alert(`行號:${params.index} 姓名:${params.rowData['name']}`)
                }

            }
        }
    }

    // 自定義列組件
    Vue.component('table-operation',{
        template:`<span>
        <a href="" @click.stop.prevent="update(rowData,index)">編輯</a>&nbsp;
        <a href="" @click.stop.prevent="deleteRow(rowData,index)">刪除</a>
        </span>`,
        props:{
            rowData:{
                type:Object
            },
            field:{
                type:String
            },
            index:{
                type:Number
            }
        },
        methods:{
            update(){

               // 參數(shù)根據(jù)業(yè)務場景隨意構造
               let params = {type:'edit',index:this.index,rowData:this.rowData};
               this.$emit('on-custom-comp',params);
            },

            deleteRow(){

                // 參數(shù)根據(jù)業(yè)務場景隨意構造
                let params = {type:'delete',index:this.index};
                this.$emit('on-custom-comp',params);

            }
        }
    })
</script>
舊城人 回答

pm2,管理node進程。自動重啟小case

何蘇葉 回答

npm的安裝就是覆蓋形式的,比如說現(xiàn)在npm3.x,npm install -g npm@latest升級完了以后就是npm6.x 了。
npm3.x就不會存在了。

離觴 回答

var pbg =require('../img/p10bg.png')

loader.addImage(pbg)

$('#aaabb').attr('src', pbg)

念舊 回答

監(jiān)聽第一個seelect的change事件,清空第二個select綁定的值,或者賦值第一個

祈歡 回答

less-loader 沒有裝吧

悶油瓶 回答

循環(huán)生成列表的時候給盒子綁定一個data-id={{index}},
然后判斷class寫這樣{{cousedis==index?'active':''}}
js 獲取每個按鈕的data-id的值,然后把值賦值給cousedis

不討囍 回答

貌似可以看出一個數(shù)學的優(yōu)化問題?;谀愕?strong>離目標價格(5000元)越遠時,掛單資金越少,越近時越多的思路,可以進行建模:

起始商品價格為$begin$,最終價格為$end$,間隔區(qū)間為$delta$,則總共掛單次數(shù)$n$為:

$$ n = \frac{(begin-end)}{delta} + 1 $$

當$begin = 6000$, $end = 5000$, $delta = 100$時代入得$n=11$, 總共掛單11次

起始掛單資金$basic$, 然后逐單增加$extra$。但保證$costlimit$范圍內(nèi),

則全部花費$cost$為:
$$ cost = basic + extra * 0 + basic + extra*1 + ... + basic + extra * (n-1) = (n-1) basic + \frac{ extra * n(n-1)}{2}$$

假設你的花費上限為$costlimit$,那么應該有
$$ (n-1) basic + \frac{ extra * n(n-1)}{2} \leq costlimit $$

第n次買的商品數(shù)量為第n次的花費處以當前商品的價格,也就是
$$ \frac{(basic + extra * (n-1))}{(begin - delta* (n-1))}$$

總共有商品數(shù)量為
$$ \sum_{i=0}^{n-1} \frac{(basic + extra * i)}{(begin - delta* i)} $$

總共商品均價為
$$ avg\_price = \frac{cost}{amount} $$

也即是:

$$ avg\_price = \frac{(n-1) basic + \frac{ extra * n(n-1)}{2}}{\sum_{i=0}^{n-1} \frac{(basic + extra * i)}{(begin - delta* i)}} $$

你的目標就是在
$$ (n-1) basic + \frac{ extra * n(n-1)}{2} \leq costlimit $$

的前提下使得$avg\_price$和最終的價格$end$差距盡可能小,可以用兩個價格差作為標準,也可以用$\frac{end}{avg\_price}$ 比例的方式(也就是性價比)衡量。這里用性價比:

$$ f = argmax(\frac{ end}{ \frac{(n-1) basic + \frac{ extra * n(n-1)}{2}}{\sum_{i=0}^{n-1} \frac{(basic + extra * i)}{(begin - delta* i)}} } ) \leq 1 $$

當你的最終成交均價就是商品的價格時性價比為1,否則小于1.

你通過調(diào)整一下你的起始價格$basic$和遞增價格$extra$,應該能找到最佳的方案。

不將就 回答

你這個沒法調(diào)用的吧,通過<router-view>加載的兩個組件,一個在,另外一個就不在dom,如果要進行數(shù)據(jù)交互,用vuex就好了。

遲月 回答

把program 換成"program": "${file}"
你那個配置總是運行....def.conf.js 文件,改成${file} 就是運行當前文件。

浪蕩不羈 回答

/(?<=\([^\)]*?),(?=[^\)]*?\))/g

"123(123,123,123),123".replace(/(?<=\([^\)]*?),(?=[^\)]*?\))/g, "+");
//"123(123+123+123),123"