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

鍍金池/ 問(wèn)答/ HTML問(wèn)答
雨蝶 回答

你的cpp文件應(yīng)該放在source files文件夾里而不是resource files文件夾

玄鳥(niǎo) 回答

把函數(shù)拎出來(lái)唄

function request(method,url,data) {
    if (404) {
        request(method, url, data)
    }
}
module.exports = {
    request
}
孤星 回答
可以寫(xiě)多個(gè)啊,不過(guò)是綁定了2個(gè)不同的重復(fù)事件,你在觸發(fā)的時(shí)候按照綁定時(shí)的事件監(jiān)聽(tīng)器的事件名去觸發(fā)事件就行了。

圖片描述

已經(jīng)想到辦法解決了,添加一個(gè)數(shù)組和開(kāi)關(guān),把獲取到的菜單名存放到數(shù)組,再定義一個(gè)開(kāi)關(guān)(默認(rèn)是開(kāi)的),再將數(shù)組中的每一個(gè)菜單名和輸入的菜單名對(duì)比,如果有相同的菜單名就把開(kāi)關(guān)設(shè)置為關(guān)閉狀態(tài)。

<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <style type="text/css">
        #nav{
            border:1px solid #012;
            margin:150px auto 30px;
        }
        #menu{
            overflow:hidden;
            width:80%;
            margin:0 auto;
            list-style:none;
        }
        #menu li{
            float:left;
            margin:0 5px;
            
        }
        #menu li a{
            text-decoration: none;
            line-height:30px;
            padding:5px 15px;
            color:#012;
        }
        #menu li a:hover{
            background:#012;
            color:#FFF;
        }
    </style>
</head>
<body>
<div id="nav">
    <ul id="menu">
        <li><a href="#">主頁(yè)</a></li>
    </ul>
</div>
<div>
<h3>動(dòng)態(tài)創(chuàng)建菜單列表功能</h3>
<p></p>
    <lable>菜單名稱(chēng):<input id="list-name" type="text" placeholder="輸入菜單名稱(chēng)" /></lable>
    <lable>菜單鏈接:<input id="list-link" type="text" placeholder="輸入菜單鏈接" /></lable>
    <input type="button" value="添加菜單" onclick="createLists()" />
</div>

<script type="text/javascript">
var menu = document.getElementById("menu");
function createLists(){
    var lists_anchor = menu.getElementsByTagName("a");
    var list_name = document.getElementById("list-name").value;
    var list_link = document.getElementById("list-link").value;
    var arr = [];
    var create_switch = true;

    for(var i = 0; i < lists_anchor.length; i++){
        arr[i] = lists_anchor[i].innerHTML;
    }

    for(var j = 0; j<arr.length; j++){
        if(arr[j] == list_name){
            create_switch = false;
        }
    }

    if(create_switch){
        var list = document.createElement("li");
        var anchor =document.createElement("a");
        var anchor_text = document.createTextNode(list_name);
        
        anchor.appendChild(anchor_text);
        anchor.setAttribute("href",list_link);
        list.appendChild(anchor);
        menu.appendChild(list);
    }else{
        alert("你輸入的菜單名稱(chēng)已存在,無(wú)需重復(fù)添加。");
    }
}
</script>
</body>
</html>
脾氣硬 回答

666,一種界面,三種布局,感覺(jué)樓主的布局不錯(cuò),最窄的情況也不會(huì)亂,fork了 順便問(wèn)下樓主,這個(gè)新的叫什么布局

心悲涼 回答

優(yōu)化點(diǎn):

  1. 組件使用Array.map方法優(yōu)化,
  2. componentReciveProps 這個(gè)不需要
  3. 在render中減少計(jì)算,使用react 計(jì)算屬性寫(xiě)法

比如:

if(this.state.safety.length !== 0) {
            this.state.safety.map(function (item) {
                safetyData[item['name']] = item['value']
            })
        }

可更改為

get computedSafetyDate() {
    ...
    }
  1. 減少組件無(wú)謂的更新判斷
  2. 減少組件內(nèi)部使用bind, 箭頭函數(shù)(因?yàn)檫@些在js中會(huì)重新重建一個(gè)函數(shù),降低性能)

暫時(shí)就這么多了

不將就 回答

js有這樣一個(gè)特性,如果你給某個(gè)變量a賦值b而且這個(gè)值是一個(gè)對(duì)象字面量比如{key:100}的時(shí)候,那么你對(duì)賦值后的變量a的key屬性修改,那么b也會(huì)相應(yīng)的變化,但是如果你再對(duì)a賦值c,那么b是不會(huì)變化的。復(fù)雜類(lèi)型數(shù)據(jù)變量本質(zhì)上就是指針,如果你修改了變量?jī)?nèi)部的屬性,那么就是直接修改指針指向的內(nèi)存中的值,所以另一個(gè)同樣指向該地址的值就會(huì)發(fā)生變化,但是如果你重新賦值,那么變量a就重新指向另一個(gè)地址,僅此而已,注意下,基本類(lèi)型不是指針

愿如初 回答

你看錯(cuò)地了。
看下你的@RequestBody Dict dict對(duì)象數(shù)據(jù)。

HttpServerletRequest#getParameterMap獲取的是你url中queryString中的參數(shù)。如:

demo.com?a=b&c=d&e=f
安于心 回答
  1. 兼容方案:https://www.cnblogs.com/zhang...
  2. 適配方案:https://www.cnblogs.com/lolDr...
  3. 解決方案:http://web.jobbole.com/92991/

底部Tab欄/操作欄

有些頁(yè)面使用了底部Tab欄/操作欄,由于iPhone X去掉了底部Home鍵,取而代之是34px高度的Home Indicator ,對(duì)于目前的底部Tab欄/操作欄會(huì)造成一定的阻礙。
解決方案:在頁(yè)面底部增加一層高度34px的適配層,將操作欄上移34px,顏色可以自定義。

底部Tab欄/操作欄

原因同上,在底部有34px高度的Home Indicator ,對(duì)于目前的底部Tab欄/操作欄會(huì)造成一定的阻礙操作。
解決方案:在頁(yè)面底部增加一層高度34px的顏色塊,將操作欄上移34px,顏色可以自定義。

@media only screen and (device-width: 375px) and (device-height: 812px) and
(-webkit-device-pixel-ratio: 3) {
    /*增加頭部適配層*/
    .has-topbar {
        height: 100%;
        box-sizing: border-box;
        padding-top: 44px;
        &:before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 44px;
            background-color: #000000;
            z-index: 9998;
        }
    }
 
    /*增加底部適配層*/
    .has-bottombar {
        height: 100%;
        box-sizing: border-box;
        padding-bottom: 34px;
        &:after {
            content: '';
            z-index: 9998;
            position: fixed;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 34px;
            background: #f7f7f8;
        }
    }
 
    /*導(dǎo)航操作欄上移*/
    .bottom-menu-fixed {
        bottom: 34px;
    }
}
澐染 回答
因?yàn)榘惭b包安裝時(shí)報(bào)錯(cuò),導(dǎo)致了相關(guān)指令執(zhí)行時(shí)報(bào)錯(cuò)

安裝的時(shí)候報(bào)了什么錯(cuò)?也貼一下圖

舊螢火 回答

那你進(jìn)來(lái)就要讓頁(yè)面調(diào)到講義頁(yè)面啊.
vue-router提供了redirect屬性

鐧簞噯 回答

Updates the element’s innerHTML. Note that the contents are inserted as plain HTML - they will not be compiled as Vue templates. If you find yourself trying to compose templates using v-html, try to rethink the solution by using components instead.

文檔

可能需要換個(gè)思路,比如默認(rèn)渲染好下面操作的幾個(gè)按鈕

莫小染 回答

提示都給你了,只是沒(méi)引入Option組件而已。。。

import {Message, Select, Option, Cascader} from 'element-ui';
萌面人 回答

用less

在vue文件中:
<style lang="less" scoped>
@import "~less-plugin-est/src/all.less";
</style>

需要的install 的第三方庫(kù):less, less-loader, extract-text-webpack-plugin

webpack.config.js文件的rules中加入:

  {
    test: /\.vue$/,
    loader: 'vue-loader',
    options: {
      loaders: {
        css: ExtractTextPlugin.extract({
          use: [
            {
              loader: 'css-loader',
              options: {
                minimize: process.env.NODE_ENV === 'production',
                sourceMap: process.env.NODE_ENV !== 'production',
              },
            }],
          fallback: {
            loader: 'vue-style-loader',
            options: {
              sourceMap: process.env.NODE_ENV !== 'production',
            },
          },
        }),
        less: ExtractTextPlugin.extract({
          use: [
            {
              loader: 'css-loader',
              options: {
                minimize: process.env.NODE_ENV === 'production',
                sourceMap: process.env.NODE_ENV !== 'production',
              },
            },
            {
              loader: 'less-loader',
              options: {
                sourceMap: process.env.NODE_ENV !== 'production',
                plugins: [],
              },
            }],
          fallback: {
            loader: 'vue-style-loader',
            options: {
              sourceMap: process.env.NODE_ENV !== 'production',
            },
          },
        }),
      },
    },
  },

青瓷 回答

1。為什么不能使用默認(rèn)id
2。如果自定義id,那么默認(rèn)id也會(huì)自動(dòng)生成
3。要使用自定義id查詢(xún),就用自定義的字段名稱(chēng)就好,默認(rèn)id當(dāng)然同樣是可以繼續(xù)使用的

小眼睛 回答

clipboard.png
后來(lái)把@符號(hào)換成bind就可以了

貓小柒 回答

https://github.com/huangshuwe...
這個(gè)里面可以編輯每一個(gè)cell,可以看一下

淺淺 回答

跟組件的update是同步的,vue里的更新也是以組件為單位的。