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

鍍金池/ 問答
菊外人 回答

Javascript模塊化編程(三):require.js的用法
http://www.ruanyifeng.com/blo...

命于你 回答

定義swiper數(shù)據(jù)

data(){
    return {
         swiperdata:[]
    }
}

發(fā)送請求獲取數(shù)據(jù)

created(){
    asiox.get().then(res=>{
    
        this.$nextTick(()=>{
            this.swiperdata=[...]
        })
    })
}

組件

<swiper v-if="swiperdata&&swiperdata.length>0"></swiper>

菊外人 回答

ffmpeg就可以應對大部分的壓縮和轉碼需要了

初心 回答

jquery的話 我是用js直接生成模態(tài)框.
vue的話 用js模板寫好 觸發(fā)事件導入 插入到某個位置 我一般是在body中

話寡 回答

main.js

export const app = new Vue() .....

axios

import {app} from '....main.js'
...
app.$tips ....
...
尋仙 回答

這是一個數(shù)據(jù)設計層面的問題。你可以這樣做
1、訂單表分為父訂單表和子訂單表,父訂單表內存儲的是你說的統(tǒng)一的訂單號,而子訂單表存儲的才是1店的訂單,2店的訂單和3店的訂單。你給商家顯示的應該是子訂單表的訂單號
2、當用戶選擇退換貨的時候,你應該將子訂單表的訂單號傳入并繼續(xù)退換貨的各種邏輯操作

你可以看下我的電商相關設計的文章 https://blog.fastrun.cn/shop_...
僅供參考

故林 回答

我也在尋找,目前并沒找到好辦法....

下墜 回答

我也遇到這個問題,filed 哈哈 我是上傳圖片的時候遇到的 這個是后臺的問題吧 我的是后臺解決的 當時還想著寫一個博客記錄一下 沒有記錄

互擼娃 回答
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<canvas></canvas>
<script>
    window.onload = function () {
        const canvas = document.getElementsByTagName('canvas')[0]
        const ctx = canvas.getContext("2d");
        const w = document.documentElement.clientWidth;
        const h = document.documentElement.clientHeight;
        canvas.width = w;
        canvas.height = h;
        let mols = []
        function  init() {
            let mol = new generate_mol(1)
            mols.push(mol);
        }
        function draw(){
            canvas.width = canvas.width;
            for(var i=0;i<mols.length;i++){
                var m = mols[i];
                m.draw();
            }
        }
        function  generate_mol(mol) {
            this.x = w*0.3;
            this.y = h*0.3;
            // this.vx = Math.random()*-2;
            // this.vy = Math.random()*2;
            // this.vr = 0.1;
            this.r = Math.random()*Math.PI;
            this.draw = function() {
                // ctx.save();
                // ctx.translate(this.x + 20, this.y + 80);
                // ctx.rotate(Math.PI * 0.17);
                // ctx.translate(-this.x + 20, -this.y - 80);
                // ctx.beginPath();
                // ctx.moveTo(this.x, this.y + 30);
                // ctx.lineTo(this.x - 26, this.y + 45);
                // ctx.lineTo(this.x - 26, this.y + 75);
                // ctx.lineTo(this.x, this.y + 90);
                // ctx.lineTo(this.x + 26, this.y + 75);
                // ctx.lineTo(this.x + 26, this.y + 45);
                // ctx.lineTo(this.x, this.y + 30);
                // ctx.moveTo(this.x - 20, this.y + 47);
                // ctx.strokeStyle = "rgba(0,0,0,0.2)";
                // ctx.lineWidth = 3;
                // ctx.stroke();
                // ctx.closePath();
                // ctx.restore()
                ctx.fillStyle = "rgba(0,0,0,0.5)";
                ctx.font = "15px Arial";
                ctx.fillText("A", this.x+40 , this.y+80);

                ctx.save();
                ctx.translate(this.x + 20, this.y + 30);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.fillStyle = "rgba(0,0,0,0.5)";
                ctx.font = "15px Arial";
                ctx.fillText("B", this.x , this.y+70);
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x + 68, this.y + 56);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x + 66, this.y + 110);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x + 20, this.y + 135);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()
                //
                ctx.save();
                ctx.translate(this.x -27,this.y + 108);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x -26, this.y + 56);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()
            }
        }
        init()
        draw()
    }
</script>
</body>
</html>

沒畫好 畫偏了
應該還要加算法 來生成指定個數(shù)的
預覽地址

笑浮塵 回答

先說原因:map方法遍歷數(shù)組導致this.p被不斷的重新賦值,所以最后在componentDidMount中拿到的永遠都是數(shù)組最后一次遍歷創(chuàng)建的dom節(jié)點。
提供解法:

export default class Content extends Component{
  componentDidMount() {
    console.log(this.p0);
    console.log(this.p1);
    console.log(this.p2);
  }

  render() {
    const arr = [{content:'內容一'},{content:'內容二'},{content:'內容三'}];
    
    const domP = arr.map((item,i) => {
      return <p ref={(dom) => this['p' + i] = dom} key={i}>{item.content}</p>
    });
    retuen (
      <div>
        {domP}
      </div>
    );
  }
}
局外人 回答
View view= factorys.inflate(R.layout.activity_detail, null); 

這個 Fragment 的 View 是新創(chuàng)建的跟 Activity 中的都不是同一個對象。

背叛者 回答
剛發(fā)現(xiàn)原來獲取到是字符串

兩種方法:

1.把這個字符串塞到頁面中

var dom = $("<a id="test" href="javascript:void(0)" onclick="show_float_panel('/monitor/onlinecntstatis/detail/5.5.0.27/')">(5.5.0.27)</a>");
// 注意我給它加了個id
$('body').append(dom);

然后使用$('#test').click() // 或者 $('#test').trigger('click')觸發(fā).

觸發(fā)click事件后,瀏覽器自會把該變量傳遞過去,不用你操心.

2.用正則把show_float_panel('/monitor/onlinecntstatis/detail/5.5.0.27/')提取出來,然后用eval執(zhí)行

糖果果 回答

可以嘗試用下面這個,也可以自己找一個
https://www.npmjs.com/package...

慢半拍 回答

不是你的問題,是翻譯的問題,你可以看那個博客的原文,原文push的是一個對象,這個對象有兩個屬性,一個context,一個callingContext,所以pop一次就夠了:

clipboard.png

瘋浪 回答

親測可行,可能是你配置錯了。

  • 配置文件
'urlManager' => [
    'enablePrettyUrl'       => true,
    'enableStrictParsing'   => true,
    'showScriptName'        => false,
    'rules' => [
        # 注意這里還嵌套了一層中括號
        ['class' => 'yii\rest\UrlRule', 'controller' => [ 'u'=> 'user']],
    ],
],
  • controller
use api\components\rest\Controller;

class UserController extends Controller
{
    public function actionIndex()
    {
        return [
            'code' => 0,
            'message' => 'success',
        ];
    }
}
{
    "code": 0,
    "message": "success"
}
陌如玉 回答
  1. NaN的話難道不是你的js邏輯有問題嗎?把一個不能轉"Number"的轉成了Number,出現(xiàn)了NaN。
  2. 單文件組件下v-cloak是沒必要的,也不會有用,不知道你是不是單文件組件。
嫑吢丕 回答

解決

  • 不用添加自定義標簽
  • 只需要設置不認識的標簽不進行提示即可

    • file -> settings -> editor -> inspections -> html -> unkown html tag, unkown html tag attribute