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

鍍金池/ 問答/ HTML問答
孤毒 回答

clipboard.png
屬性值兩邊的等號可有可無,瀏覽器會自動添加。

故人嘆 回答

"#asdfasdf# #asdf# 哈哈哈 @阿斯頓發(fā)斯蒂芬 @ # #".match(/#[^#]+#/g)

是這個意思嗎?

陌如玉 回答

問題解決了,把 <mt-navbar><mt-tab-container> 標(biāo)簽中的 v-model="selected" 改成 v-model="active",然后 data 中的 return 加多一個屬性 active: "tab-container1" 就可以了。

使勁操 回答

知乎上看的,親測可以沒問題!鏈接描述
圖片描述

{ title : "Image files", extensions : "image/*,jpg,jpeg,png" }, 這樣就好了

未命名 回答

vue-lazyload?

文檔

<!-- with customer error and loading -->
<img v-lazy="imgObj"/>
<div v-lazy:background-image="imgObj"></div>
data () {
  return {
  imgObj: {
    src: 'http://xx.com/logo.png',
    error: 'http://xx.com/error.png',
    loading: 'http://xx.com/loading-spin.svg'
  },
  imgUrl: 'http://xx.com/logo.png' // String
 }
}

v-lazy:background-image="{src: item.src, error: 'http://xx.com/error.png', loading: 'http://xx.com/loading-spin.svg'}"

或者

v-lazy:background-image=getImgObj(item.src)
做一個getImgObj函數(shù)去處理
澐染 回答

<style>
.container {

 display: flex;

}
.rightContainer{

 margin-left: 20px;

}
.box {

 height: 100px;
 width: 300px;
 border: 1px solid red;
 margin-bottom: 30px;

}
.box1 {

height: 200px;
 width: 300px;
 border: 1px solid red;
 margin-bottom: 30px;

}

</style>

<div class="container">
    <div class="leftContainer">
      <div class="box"></div>
      <div class="box"></div>
      <div class="box"></div>
    </div>
    <div class="rightContainer">
      <div class="box1"></div>
      <div class="box"></div>
    </div>
  </div>
獨(dú)白 回答

為何change方法要去循環(huán)遍歷數(shù)組?你想實(shí)現(xiàn)的功能是點(diǎn)擊一下,換一個,再次點(diǎn)擊,再換一個,一直到列表的最后?

九年囚 回答
我推薦你用RN,只要會react就能很快上手,而且組件庫很豐富,開源項(xiàng)目也多可以參考。最重要的是性能相比inoic這類混合應(yīng)用要好很多。

這應(yīng)該是標(biāo)準(zhǔn)答案了,但是有意義嗎?如果我說RN不好,你就不去嘗試嗎?

他們?nèi)吒饔袃?yōu)缺點(diǎn),重要的是哪個適合你,而不應(yīng)該取決于是否有”坑“。

  • 不會vue的人覺得weex坑很多
  • 不會react的人覺得RN坑多

但本質(zhì)上,它們都只是工具,工具就是拿來用的,你不試試,怎么知道哪個順手?

耍太極 回答

比如阿里云的cdn,可以直接把域名解析到它給的 cname 上。然后在他上面配置回源,緩存等等。
不用單獨(dú)部署js,修改html 等。只用配置一次,一直可以用。

可以參照:https://segmentfault.com/a/11...

厭遇 回答

文檔鏈接
clipboard.png
給bet賦值一個新對象替換就可以了vm.bet = Object.assign({}, vm.bet, {pokerState:30})

尐潴豬 回答

先看輸出:
"a before!"
"a entered!"
"b before!"
"b entered!"
"c before!"
"c entered!"
"d before!"
"d entered!"

function Node(name) {
  this.before = function(obj, next) {
    console.log(name + " before!")
    setTimeout(function() {
      next(obj)
    }, 1000)
    return false
  }
  this.enter = function(obj) {
    console.log(name + " entered!")
  }
}


function chain(curr, cb){
  return function(obj){
    curr.before(obj, function(obj){
      curr.enter()
      cb && cb()
    })
  }
}

let arr = ['a', 'b', 'c', 'd']
arr = arr.map(name => new Node(name))
let fnChain = arr.reduceRight((acc, curr) => chain(curr, acc)
                              , null) // initialValue is null
fnChain({ Status: 1, Data: { name: "Anonymous" } })

解釋下 reduce 的執(zhí)行過程(4次回調(diào))

callback acc curr return value
1 null d fnD = chain(d, null)
2 fnD c fnC = chain(c, fnD)
3 fnC b fnB = chain(b, fnC)
4 fnB a fnA = chain(a, fnB)

lodash.core:只有核心的一些函數(shù),見這兒https://github.com/lodash/lod...
lodash 全部功能
lodash.fp 全部功能的函數(shù)式實(shí)現(xiàn)

汐顏 回答

小程序不能直接使用網(wǎng)絡(luò)圖片,也就是說你上面使用的圖片的地址,需要先調(diào)用小程序的wx.downloadFile方法,將返回的本地路徑繪制到canvas。繪制完成后,再調(diào)用保存到相冊那個方法就行了。

假灑脫 回答

你應(yīng)該是想調(diào)用 那些禁用鍵盤事件的方法

var protection = (function () {
    var data = {
        suffix: "com",
        main: "www.",
        red: "bai",
        beauty: "du",
        dot: "."
    }
    var d = (data.main + data.red + data.beauty).toString() + data.dot + data.suffix;
    var url = function () {
        if (document.location.host != "www.baidu.com") {
            location.href = location.href.replace(document.location.host, 'www.baidu.com');
        }
        return location.href;
    }
    var authentication = function () {
        if (window.location.host.indexOf(d) < 0) {
            //$("body").remove();
            document.querySelector('html').removeChild('body');
            return false
        }
        return true
    }

    var shield = function (config) {
        shield.config = config;
        var disable = {
            disableCopy: function (e, keycode) {
                //屏蔽Ctrl+s 保存頁面
                if (e.ctrlKey && keycode == 83) {
                    console.log(shield.config)
                    e.preventDefault();
                    e.returnValue = false;
                }
            },
            disableSource: function (e, keycode) {
                //屏蔽Ctrl+u  查看頁面的源代碼
                if (e.ctrlKey && keycode == 85) {
                    e.preventDefault();
                    e.returnValue = false;
                }
            },
            disableF12: function (e, keycode) {
                //屏蔽F12
                if (keycode == 123) {
                    e.preventDefault();
                    e.returnValue = false;
                }
            },
            disableConsole: function (e, keycode) {
                //屏蔽Ctrl+shift+i   屏蔽調(diào)出控制臺 和F12一樣
                if (e.ctrlKey && e.shiftKey && keycode == 73) {
                    e.preventDefault();
                    e.returnValue = false;
                }
            }
        }

        document.addEventListener('keydown', function (e) {
            e = window.event || e;
            var keycode = e.keyCode || e.which;
            for (var i = 0; i < shield.config.length; i++) {
                disable[shield.config[i]](e, keycode);
            }
        });
    }
    var facility = {
        geturl: url,
        checkurl: authentication,
        shield: shield
    }
    return facility;
})();

protection.shield(["disableCopy", "disableConsole"]);
//通過js控制
setTimeout(function(){
    protection.shield.config = ["disableCopy"];
},2000)
下墜 回答

打印機(jī)出單本來就是后臺系統(tǒng)的事情,跟 app還是pc瀏覽器還是手機(jī)瀏覽器 根本沒有關(guān)系啊。
你要說php,那可能你后臺系統(tǒng)真是php寫的,lpr調(diào)用打印機(jī)打印就行了。
怎么把后臺的數(shù)據(jù)弄成可打印的文件,你找個pdf庫什么的,弄個模板每次填數(shù)生成新文檔就可以了。