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

鍍金池/ 問答
互擼娃 回答

感覺沒有安裝。

凝雅 回答
  1. 配置好php環(huán)境,然后指定.php文件用php-cgi.exe打開就好了,這樣雙擊.php文件就執(zhí)行了。

  2. 配置好php環(huán)境,寫個<name>.bat,雙擊<name>.bat就執(zhí)行了。

    php <name>.php
半心人 回答
select A,B,C where A=B;
select A,B,C where A=B and A=C;
扯機薄 回答

函數(shù)式編程可以

// 對應(yīng)的url為 a.com?c=123
router.push({ path: 'a.com', query: { c: '123' }})
眼雜 回答

你可能是想js獲取url參數(shù),直接截字符串,是可以獲取參數(shù)。

const getQueryString = paramKey => {
    let url = window.location.href.split('?')[1] || ''
    let params = {}

    url = url.replace(/#.*$/, '').split('&')

    for (let i = 0; i < url.length; i++) {
        let num = url[i].indexOf('=')
        if (num > 0) {
            let key = decodeURIComponent(url[i].substring(0, num))
            let val = url[i].substr(num + 1) || ''
            try {
                val = decodeURIComponent(val)
            } catch (ex) { }
            params[key] = val
        }
    }
    return params[paramKey]
}

但其實后端做這個更簡單,后端就是用來做這個的,如果這個都不能做,還能做啥

呆萌傻 回答

你每次調(diào)用setTimeout都會創(chuàng)建一個定時器啊……如果你只清除最后一個定時器的話沒有用

一種解決辦法是維護(hù)一個定時器列表,按鈕關(guān)閉的時候?qū)φ麄€列表調(diào)用clearTimeout
第二種方法是維護(hù)一個“需要定時刷新”Flag,計時器內(nèi)的函數(shù)通過setTimeout遞歸調(diào)用自身,并在遞歸前檢查這個Flag,如果Flag被按鈕置為false就退出遞歸

慢半拍 回答

你不添加請求頭,laravel怎么知道你要json呢?你想想,假如一個后臺登錄接口,如果輸入的賬號密碼正常,不重定向到index那應(yīng)該說點什么???

懷中人 回答

最終寫法。

    function fun(arry){
        for(let i in arry){
            let menu = arry[i];
            if(!menu['num']){
                menu['num'] = 1;
            }
            if(menu['children'].length && menu['children']){
                for(let j in menu['children']){
                    menu['children'][j]['num'] = arry[i]['num'] + 1;
                    fun(menu['children'])
                }
            }
        }
    }
青黛色 回答

這就屬于 js 的閉包了, 這個是在詞法作用域決定的那些變量,函數(shù)之后可以拿到~
想你定義的兩個函數(shù), 一個函數(shù)調(diào)用另一個函數(shù), 兩個函數(shù)有自己的函數(shù)作用域, 是不能拿到對方的變量的

念初 回答

你的商品設(shè)計有問題,
從商品管理的角度來說,就算是同種商品,但是味道、香型等不同,就應(yīng)該屬于不同的SKU,

蝶戀花 回答

命令 id 可打印當(dāng)前登錄用戶的群組信息,
id <username>是從數(shù)據(jù)庫中查詢該用戶的群組信息。

當(dāng)兩者的結(jié)果不一致時,你需要重新登錄以更新群組信息。

糖果果 回答

assetsPublicPath: './'

utils.js

if (options.extract) {
      return ExtractTextPlugin.extract({
        use: loaders,
        fallback: 'vue-style-loader',
        publicPath:'../../'
      })
    } else {
      return ['vue-style-loader'].concat(loaders)
    }

webpack.base.conf

{
   test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
   loader: 'url-loader',
   options: {
     limit: 10000,
     name: utils.assetsPath('img/[name].[hash:7].[ext]'),
     outputPath: process.env.NODE_ENV === 'production' ? '../' : ''
  }
},
吃藕丑 回答

更新2:

突然想起來,你這個更類似攔截器、過濾器的配置啊,可以參考一下。


更新:

interface ProtocolIndexConfigurer { void addIndex(ProtocolIndexRegistry registry); }

abstract class ProtocolIndexConfigurerRegister {
    
    // 這里假設(shè) registry 不是全局的,否則 configurer.addIndex(registry) 的調(diào)用形式很突兀
    // 全局的話應(yīng)該是 registry.addConfigurer(configurer) 這個你可以考慮一下
    public abstract void register();
    
}

使用:

@Component("conf1")
class ProtocolIndexConfigurer1 implements ProtocolIndexConfigurer {

    @Override
    public void addIndex(ProtocolIndexRegistry registry) { 
        // 注冊行為...
    }
    
}

@Component("conf2")
class ProtocolIndexConfigurer2 implements ProtocolIndexConfigurer { ... }

class MyProtocolIndexConfigurerRegister extends ProtocolIndexConfigurerRegister {

    @Resource("conf1")
    private ProtocolIndexConfigurer conf1; // 注入,或者用 @bean 導(dǎo)入都行
    
    @Resource("conf2")
    private ProtocolIndexConfigurer conf2;
    
    @Override
    public void register() {
        conf1.addIndex(new ProtocolIndexRegistry());
        conf2.addIndex(new ProtocolIndexRegistry());
        // 如果 ProtocolIndexRegistry 是全局的,那么就可以是
        // registry.addConfigurer(conf1)
                    .addConfigurer(conf2)
                    ...
        // 但是這樣改動可能比較大
    }
}

原答案:

interface ProtocolIndexConfigurer { void addIndex(ProtocolIndexRegistry registry); }

@ConditionOnMissingBean(name = "example")
@Component
class ProtocolIndexConfigurerAdapter implements ProtocolIndexConfigurer {
    @Override
    public void addIndex(ProtocolIndexRegistry registry) { /* 空實現(xiàn) */ }
}

class SomewhereInjectProtocolIndexRegistry {
    
    @Autowired
    private final ProtocolIndexConfigurerAdapter adapter;
    
    protected void func() {
        ProtocolIndexRegistry registry = // get registry
        adapter.addIndex(registry);
        // save index mapping
    }
}

使用:

@Bean(name = "example")
public SomeAdapter extends ProtocolIndexConfigurerAdapter {
    @Override
    public void addIndex(ProtocolIndexRegistry registry) {
        // do something here.
    }
}

印象里是這樣,你可以試一下,主要是 @ConditionOnxxx 注解的使用,給個空的默認(rèn)實現(xiàn)避免找不到實現(xiàn)類拋異常。

心悲涼 回答

個人猜測
可能是因為 HttpEntity 自己讀數(shù)據(jù)的時候使用的是 setter/getter 來訪問數(shù)據(jù),也就是說它自己做了序列化操作,那么 JSONObject 就沒有這些了。

硬扛 回答

不知道你的cli是什么版本,新版本已經(jīng)不是init了。vue-cli文檔

苦妄 回答

:show-overflow-tooltip="true"改成show-overflow-tooltip

瞄小懶 回答

webpack ./entry.js --output ./bundle.js
輸出用 --output,你那樣寫是多入口

貓館 回答

使用mapStateToProps之后,就是將state映射到props上,用const { posts } = this.state不對吧,應(yīng)該是this.props。
要將值傳遞到state里面,在【APP.js】里面,this.state = {posts: []}設(shè)置state的時候,直接把從props取出來的數(shù)據(jù)賦值給狀態(tài)。