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

鍍金池/ 問答/ HTML問答
薄荷綠 回答
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Test</title>
</head>
<body>
  <div>
    <a href="javascript:void(0);">11</a>
    <a href="javascript:void(0);">22</a>
    <a href="javascript:void(0);">33</a>
  </div>
  <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
  <script> 
    $("div").on("click", 'a', function(){
      var currentItem = $(this)
      console.log(currentItem.text())
    });
  </script>
</body>
</html>

$("div").on("click", ***$("a")*, function(){ 里面的$("a") 應(yīng)該改成'a',這樣就能通過$(this)獲取到當(dāng)前點(diǎn)擊的對(duì)象啦

終相守 回答

提示--操作不存在,是不是--和命令之間有空格

膽怯 回答

最簡(jiǎn)單的做法就是把聲音文件放在statics下即可,不需要修改webpack的任何配置,比如

<audio src="statics/xxx.mp3" type="audio/mpeg"></audio>

如果后續(xù)要控制這個(gè)播放,可以增加一個(gè)ref,后面在js代碼里控制播放。

<audio ref="myAudio" ...
拽很帥 回答

看路由設(shè)置情況,是否攔截狀態(tài);
還有 接受返回值狀態(tài)是否有攔截,做了加載處理

雨蝶 回答

onblur能滿足你的要求么?

久愛她 回答

data應(yīng)該要是一個(gè)函數(shù),massage才是函數(shù)return出去的屬性。

熊出沒 回答

原來是因?yàn)?lt;Tree>標(biāo)簽放在MuseUI的標(biāo)簽里面了:

<mu-dialog>
<Tree ref="tree" :data="data1"><Tree>
</mu-dialog>

如果<Tree>不與MuseUI混合使用就能通過$refs獲取<Tree>組件實(shí)例了

陌上花 回答

正常來說兩次彈窗不是一個(gè)很好的交互,建議是第一個(gè)彈出可以換成一個(gè)新的頁(yè)面

陌南塵 回答

從我這邊看,返回的是到 https://segmentfault.com/ 的 302。

短嘆 回答

沒明白你的意思,你是要做國(guó)際化嗎

孤星 回答

nginx配置好了,出現(xiàn)403 Forbidden主要有兩種原因:1、nginx沒有訪問目錄的權(quán)限;2、nginx的目錄里面沒有默認(rèn)文檔,并且沒有列出目錄的權(quán)限。
nginx.conf 貼出來

這個(gè)沒有就添加,有就把這個(gè)貼出來看看

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
        // root /var/www/html; #指定php的根目錄
        // fastcgi_pass 127.0.0.1:9000;#php-fpm的默認(rèn)端口是9000
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
}
夢(mèng)囈 回答

應(yīng)該是scss loader的配置問題。

涼汐 回答

很簡(jiǎn)單,在前臺(tái)代碼中先搞個(gè)script標(biāo)簽,然后在js代碼區(qū)域里渲染一個(gè)模板變量即可。
比如這樣:

<html>
<head></head>
<body>
<p>xxxxxxxxxx</p>
<script>
    var titleFromServerRender = '{{ title }}';
</script>
</body>
</html>

但這里要確保,你在node server端渲染時(shí)傳給swig的title參數(shù)一定是字符串。同時(shí) 考慮到xss攻擊的風(fēng)險(xiǎn),確保此變量不會(huì)被注入攻擊。

離殤 回答

Mobx類似于Redux,也是有Provider方法,可以把Store掛載到整個(gè)應(yīng)用上,至于多個(gè)Store實(shí)現(xiàn)起來也是簡(jiǎn)單的,給個(gè)例子:

storeA.js

import {observable, action} from 'mobx';

class AStore {
  //……
}

const aStore = new AStore()

export {aStore}

storeB.js

import {observable, action} from 'mobx';

class BStore {
  //……
}

const bStore = new BStore()

export {bStore}

index.js

import {bStore} from './storeA'
import {bStore} from './storeB'

export {bStore, bStore}

具體可以看看我的項(xiàng)目>>react-mobx-demo

順便再給個(gè)Redux的項(xiàng)目>>react-redux-demo

壞脾滊 回答

樓上有點(diǎn)小問題, 我在他的基礎(chǔ)上改了改

function outerFn (param){
    var result = {}
    function fn(obj, prefix) {
        for (key in obj) {
            let fullKey = prefix ? (prefix + '.' + key) : key;
            if (typeof obj[key] === 'object') {
                fn(obj[key], fullKey)
            } else {
                result[fullKey] = obj[key]
            }
        }
    }
    fn(param);
    return result;
}
咕嚕嚕 回答

你說的默認(rèn)配置具體指什么?
官網(wǎng)文檔有沒有相關(guān)信息?

菊外人 回答

所以,你按官方實(shí)例,Select.Option了嗎

import { Select } from 'antd';
const Option = Select.Option;