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

鍍金池/ 問答/ HTML問答
短嘆 回答

代碼片段

wechatide://minicode/1cU2Odmo7l2o

通過路徑參數(shù)指定需要滾動到哪個元素
clipboard.png

荒城 回答

輸出整數(shù)的時候,%.n表示最少顯示n位數(shù)字。

離魂曲 回答

修改 img 本身的 texture

private onGroupComplete() {
    ...
    img.addEventListener( egret.TouchEvent.TOUCH_TAP, this.onTouch, img);
}
private onTouch() {
    this.texture = RES.getRes("你想要的texture");
}
冷溫柔 回答

您好,請問下這個問題您解決了嗎?我也遇到了這種需求,能否一起探討下?感謝。

茍活 回答

map方法返回的是一個新數(shù)組,不會改變原來的數(shù)組

this.opts = [1,2];
let result = this.opts.map(item => item*12)
console.log(result)
冷眸 回答

解決了,其實是用了connect-history-api-fallback中間件后所有的get請求都會變成index,所以get請求根本沒有執(zhí)行,設(shè)置rewrites就行了

app.use(history({
    rewrites: [
      {
        from: /^\/api\/.*$/,
        to: function(context) {
            return context.parsedUrl.path
        }
      }
    ]
  }))

設(shè)置了rewrites之后表示所有帶api的get都代理到parsedUrl.path,其實就是原來的路徑

莓森 回答

在controller上,把你所定義的header項轉(zhuǎn)化成類似的形式賦值給Session之類的。
相當于在外面套了一層封裝吧。

你講的太籠統(tǒng),猜測大概可以通過上述方法實現(xiàn)

懷中人 回答

推薦兩個字體圖標庫,一個是Font Awesome,還有一個阿里的Iconfont。如何使用這些矢量圖標,他們的網(wǎng)站都有具體說明。

茍活 回答

解決了

npm i -D exports-loader

a.vue, 單個文件使用

let QRCode = require('exports-loader?QRCode!qrcodejs/qrcode')
mounted () {
    console.log(new QRCode(...))
}

.eslintrc.js 需要關(guān)閉一個驗證

'import/no-webpack-loader-syntax': 'off'
孤島 回答

ThinkPHP訪問index.html時候默認訪問 Index模塊的Index控制器的index方法。
你要加loadApp,需要訪問Index/index/loadApp

孤星 回答

因為你每調(diào)用一次getFatherMsg就綁定了一次事件,事件綁定要拿到外面哇

不將就 回答

watch files不就好了。對新增的值調(diào)用uploadFile。
不過沒看懂你這個組件的上傳的時機,是需要手動調(diào)用才開始第一次上傳么,然后后續(xù)有文件,不管還有沒有進行中的任務(wù)都自動上傳?

挽歌 回答

handleClick的this指向有問題,要bind(this)

 return (
            <div id='parent' onClick={this.handleClick.bind(this)}>
                開啟輪播=={this.props.text}
            </div>
        )

或者用箭頭函數(shù)

 return (
            <div id='parent' onClick={()=>{this.handleClick()}}>
                開啟輪播=={this.props.text}
            </div>
        )
class Header extends React.Component{
    constructor(props,el){
        super(props);
        //this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
        this.state = {
            myval:'',
            show:true
        }
    }
    change(e){
        console.log(e.target);
        this.setState({myval:e.target.value})
    }
    click(aaa){
        console.log(aaa);
    }
    toggle(){
        this.setState({show:!this.state.show})
    }
    render(){
        return(
            <header className="header">
                <input type="text"  onChange={(e)=>{this.change(e)}}/>
                <h1 style={{display:this.state.show?'block':'none'}}>{this.state.myval}</h1>  
                <button onClick={this.toggle.bind(this)}>按鈕</button>                     
            </header>
        )
    }
    componentDidMount(){

    }
}
哎呦喂 回答

我也是這樣,請問怎么辦啊 ?

厭遇 回答

case中要求的是常量,一般是不能進行邏輯判斷的, 所以這也是if語句優(yōu)于switch語句的地方!

情殺 回答

可以運用 vue 的 動態(tài) class 做

<ul class="nav">
    <li class="nav-item" v-for="(v, index) in navs" :class="{selected: select==index}" @click="clickLi(index)"><router-link :to="v.link">{{v.text}}</router-link></li>
 </ul>

export default {
    data(){
        return {
            navs:[{link: '/', text: '首頁'}, {link: '/other', text: '其他'}],
            select: 0
        }
    },
    methods: {
        clickLi(index) {
            this.select = index;
        }
    }
}
久愛她 回答

你開服務(wù)器的img中放的是Base64么?看你報錯提示是請求的網(wǎng)絡(luò)資源,而base64的圖片屬于可脫機使用的本地資源,根本不需要請求網(wǎng)絡(luò)。

薄荷糖 回答

time 字段 需要設(shè)成timestamp類型就可以了

EDITED

insert into t_B(id, name,time) 
select id, name, now() from t_A