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

鍍金池/ 問答
過客 回答

類似這樣寫可以嗎

 extra={<a onclick={}>查看孩子單據(jù)</a>}

render()方法是react組件必須的,它檢查this.props和this.state并且返回一個(gè)React元素,我們也可以返回null或false,代表我們不想有任何的渲染。無法獲取到相應(yīng)元素的屬性,render()方法應(yīng)該是一個(gè)純方法,即它不會(huì)修改組件的state,在每一次調(diào)用時(shí)返回同樣的結(jié)果。它不直接和瀏覽器交互,如果我們想要交互,應(yīng)該在componentDidMount()或者其他的生命周期函數(shù)里面。

尛憇藌 回答

已解決:
在面包屑組件里面通過watch來監(jiān)聽路由更新組件

瘋子范 回答

AJAX 請(qǐng)求,參數(shù)值的編碼要使用 encodeURIComponent ,它只支持 UTF-8 的字節(jié)結(jié)果,無法產(chǎn)生 GBK 的字節(jié)結(jié)果。
form 提交,可以使用 accept-charset 屬性指定編碼的字節(jié)結(jié)果。(form 的話自己好像就會(huì)根據(jù)頁面的 charset 來默認(rèn)編碼了)

殘淚 回答

不太明白你想做什么 可以封個(gè)函數(shù) 就如2樓的

憶往昔 回答

先來認(rèn)清一下相對(duì)路徑和絕對(duì)路徑.

css/css.css

這個(gè)是相對(duì)路徑.相對(duì)于你的入口文件就是index.php這一層目錄.
例如,你的路徑是這樣子的/index/index.php,那么,css.css的文件路徑就是在/index/css/css.css,當(dāng)然,你可以在引入的時(shí)候用./css/css.css,這個(gè)也是相對(duì)路徑,

./  ---代表當(dāng)前路徑下
../ ---代表上一層目錄

絕對(duì)路徑.

/css/css.css

在第一個(gè)用上/這個(gè)符號(hào),那得到就是網(wǎng)站的根路徑.
例如.你的訪問路徑是這樣子的./index/index.php
那么,你的css.css的文件路徑就是/css/css.css
這個(gè)就是相對(duì)路徑和絕對(duì)路徑.你要想正確引入你的文件,那么,你就必須對(duì)這個(gè)理解通透.
詳情請(qǐng)了解
相對(duì)路徑和絕對(duì)路徑

生性 回答

換行符,替換一下就行了,系統(tǒng)差異

在vim中執(zhí)行 :%s/^M/\r/g 全部替換成換行符
注意^M是“CTRL-V CTRL-M”而不是“SHIFT-6 M”



pycharm 在
Settings -> Code Style -> General -> Line Separator 改成 \n 就行了
獨(dú)白 回答

getElementsByName結(jié)果是類數(shù)組需要遍歷吧

瞄小懶 回答

不需要用refs獲取dom,給答對(duì)了和打錯(cuò)了設(shè)置不同的類,在渲染的時(shí)候判斷是答對(duì)還是打錯(cuò),來設(shè)置不同的類,也可以直接在html里設(shè)置style

<div  v-for="(list,index) of lists.options" @click="ans(index,lists)" ref="items" class=" H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active" :style="color: ['A','B','C','D'].indexOf(list.an) > -1 ? 'limegreen' : 'red'">
        <div class=" H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12 H-text-show-row-3" style="line-height: 29px;">
                {{list}}
        </div>
    </div>
夢(mèng)囈 回答

意思是讓你用管理員來運(yùn)行這個(gè)命令,用sudo npm run build試試

乞許 回答

我寫了一個(gè)demo,在你那上面精簡(jiǎn)了不少,思路就是這樣,你運(yùn)行看看效果:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>example</title>
</head>
<body>
    <div id="app">
        <div class="total">
            <span>總共  {{totalCount}}  道</span>
            <span>合計(jì): ¥  {{totalPrice}}</span>
            <p>選擇的折扣:<span>{{selectDiscount}}</span></p>
            折后金額:<span>{{afterDiscount}}</span>
            <p>選擇折扣:</p><span v-for="item in discount" :key="item.id" @click="addDiscount(item)" style="cursor:pointer;"> {{item.name}}</span>
        </div>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script type="text/javascript">
        new Vue({
            el: "#app",
            data: {
                totalCount: 5,
                totalPrice: 155.24,
                selectDiscount: null,
                discount: [{
                    id: 1,
                    name: 0.9
                }, {
                    id: 2,
                    name: 0.8
                }, {
                    id: 3,
                    name: 0.7
                }, {
                    id: 4,
                    name: 0.6
                }, {
                    id: 5,
                    name: 0.5
                }, {
                    id: 6,
                    name: 0.4
                }]
            },
            computed: {
                afterDiscount() {
                    return (this.totalPrice * this.selectDiscount).toFixed(2);
                }
            },
            methods: {
                addDiscount(item) {
                    return this.selectDiscount = item.name;
                }
            }
        })
    </script>
</body>
</html>
挽歌 回答

map函數(shù)是用來生成新類的。flatMap和map類似,不同的是其每個(gè)元素轉(zhuǎn)換得到的是Stream對(duì)象,會(huì)把子Stream中的元素壓縮到父集合中。

法克魷 回答

<VirtualHost *:555>

DocumentRoot "D:\phpStudy\WWW\laravel\public"
ServerName localhost
ServerAlias localhost

<Directory "D:phpStudyWWWlaravelpublic">

  Options FollowSymLinks ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all
  Require all granted

</Directory>
</VirtualHost>

配置中指向public

柚稚 回答

抱歉,基礎(chǔ)的語法還不太懂,之前一直在用java,所以用java的思想去理解TypeScript就會(huì)有問題。
是我太著急了,多謝你的回答。

厭惡我 回答
$path="目錄";
if (is_dir($path)){  
    echo "對(duì)不起!目錄 " . $path . " 已經(jīng)存在!";
}else{
    $res=mkdir(iconv("UTF-8", "GBK", $path),0777,true); 
    if ($res){
        echo "目錄 $path 創(chuàng)建成功";
    }else{
        echo "目錄 $path 創(chuàng)建失敗";
    }
}
巷尾 回答
student = Student()

# 上面一種
student.age    # 返回 25
student.age()  # 25是數(shù)字不是函數(shù),不能執(zhí)行,報(bào)錯(cuò)

# 下面一種
student.age    # 返回匿名函數(shù)
student.age()  #  執(zhí)行這個(gè)匿名函數(shù),返回25
離殤 回答

圖片描述

百度地圖查詢公交線路,會(huì)有一個(gè)svg矢量覆蓋層,里面的path就是公交線路圖
可以試著從path坐標(biāo)反推出經(jīng)緯度