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

鍍金池/ 問答/ HTML問答
涼薄 回答

因為是二次開發(fā),不排除登錄時讀取的是其他數(shù)據(jù)庫。

嫑吢丕 回答
哪一步是把key(h,e,l...這些字母)放進obj里面的
是不是在 if(obj[str1[i]]) 這步里面判斷假如沒有就放進去

兩個問題可以一起回答:

    if(obj[str1[i]]){ //如果 obj 里已經(jīng)記錄了這個字符,這個字符的計數(shù)+1
        obj[str1[i]]++;
    }
    else{ //如果 obj 里沒有這個字符,那么給 obj 添加這個字符屬性,這個字符屬性的計數(shù)=1
        obj[str1[i]]=1;
    }
囍槑 回答

有一個思路可以嘗試一下,push一個數(shù)組,一開始數(shù)組為空,之后數(shù)據(jù)變化向數(shù)組push數(shù)據(jù),超過十天的再把前面的數(shù)據(jù)去掉,應(yīng)該能夠?qū)崿F(xiàn)

久不遇 回答

stable最新版是66吧,我用66版看官方文檔中的MessageBox并沒有問題
beta/dev版有bug很正常的,一般來說正常用戶不會用這種版本

胭脂淚 回答

瀏覽器里壓縮視頻現(xiàn)在還做不到吧。。圖片什么的壓縮已經(jīng)很勉強了(通過canvas.getImageData計算rgba屬性值)
目測只能上傳到server再進行壓縮了

P.S. flash可能有解。

別傷我 回答

1、Form 組件的getFieldDecorator高階方法中,第二階中只能是一個組件。不要出現(xiàn)div之類的組件。
2、提問問題的時候,不要將代碼以圖片的形式貼出來。該編輯器支持program code.

互擼娃 回答

bundle是所有頁面的通用js代碼,不能不加載的,比如react.js庫,你寫的App class都是打包到bundle.js中的。按需加載,指的是按需加載不同route對應(yīng)的代碼,但bundle.js在任何一個route下都是需要的,當然是會被加載的。

我不懂 回答

其實,普通設(shè)置成
const history = require('connect-history-api-fallback');
//這句代碼需要在express.static上面
app.use(history());
app.use(express.static(path.join(__dirname, '../client/dist')));
這樣就可以了,但是我這里不行,需要配置成下面這樣:
app.use(history(

{
    htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']
}

));
主要是要理解connect-history-api-fallback是要做什么以及是什么意思,參考一下這篇博文
https://blog.csdn.net/zzl1243...

憶當年 回答

As what @felix said in comments: this is BinarySearchTree const * in template <typename T> bool BinarySearchTree<T>::contains(const T& x) const whereas it is BinarySearchTree* in bool contains(const T& x, BinaryNode<T>* rt);

Apparently, it is not allowed to pass BinarySearchTree const* to BinarySearchTree*(this is a implicit parameter in member function), so you can nerve call non-const-qualifier member function from const-qualifier member function.

solution 1:

template <typename T>
bool BinarySearchTree<T>::contains(const T& x) const {
    return const_cast<BinarySearchTree *>(this)->contains(x, root);
}

But this solution will cause undefined behaviour, so another solution is here

This answer may also help you

傻丟丟 回答

定義一個json,然后分層次查詢將結(jié)果插入json就好了

伴謊 回答

語法校驗格式。比如你寫的 java 就是按照java 的語法格式來校驗。

鹿惑 回答

你需要把你的static文件加入到route中
比如

g := gin.Default()
g.Static("/static", "static/js")
g.Run(":8002")

如果你的文件目錄是這樣的

clipboard.png

此時 在模板文件中,你使用js的路徑應(yīng)該是/static/js/aaa.js
在訪問模板時候,js 就會load

怣人 回答

建議組件中定義一個變量 isloading

props:{
    isLoading :{
          type:Boolean,
        required:true
    }
},
watch : {
    isLoading:{
          handler(curVal,oldVal){
              this.isloading = curVal
          }
  }
}

舊顏 回答

clipboard.png

clipboard.png
這是為什么呀,我整懵逼了

心上人 回答

圖片的路徑寫成data-src=require('xxx.jpg')

礙你眼 回答

在你原來的基礎(chǔ)上改了一點點

<form>
  請選擇你愛好:
  <br>
  <input type="checkbox" name="hobby" id="hobby1"> 音樂
  <input type="checkbox" name="hobby" id="hobby2"> 登山
  <input type="checkbox" name="hobby" id="hobby3"> 游泳
  <input type="checkbox" name="hobby" id="hobby4"> 閱讀
  <input type="checkbox" name="hobby" id="hobby5"> 打球
  <input type="checkbox" name="hobby" id="hobby6"> 跑步
  <br>
  <input type="button" value="全選" onclick="checkall();">
  <input type="button" value="全不選" onclick="clearall();">
  <p>請輸入您要選擇愛好的序號,序號為1-6:</p>
  <input id="wb" name="wb" type="text">
  <input name="ok" type="button" value="確定" onclick="checkone();">
</form>
<script type="text/javascript">
  function checkall() {
    //全選
    var hobby = document.getElementsByTagName("input");
    for (var i = 0; i < hobby.length; i++) {
      if (hobby[i].type == "checkbox") {
        hobby[i].checked = true;
      }
    }
  }

  function clearall() {
    // 全不選
    var hobby = document.getElementsByName("hobby");
    for (var i = 0; i < hobby.length; i++) {
      if (hobby[i].checked == true) {
        hobby[i].checked = false;
      }
    }

  }

  function checkone() {
    //選一個   
    var j = document.getElementById("wb").value;
    var hobby = document.getElementsByName('hobby');
    if (j <= 0 || j > 6) {
      alert("請輸入正確的數(shù)字!");
    } else
    if (autoCheck("hobby", 3, 'checkone')) {

      hobby[j - 1].checked = true;
    }

  }
  // 輸入時 限制單個選中的最大個數(shù)
  function autoCheck(name, limit, type) {
    var hobby = document.getElementsByName(name);
    if (type == 'checkone') {
      var num = 1;
    } else {
      var num = 0;
    }

    for (var i = 0; i < hobby.length; i++) {
      if (hobby[i].checked) {
        num++
      }
    }
    console.log(num)
    if (num <= limit) {
      return true;
    } else {
      alert('超限了親')
      return false;
    }
  }
  //  直接選擇時限制單個選中的最大個數(shù)
  function sigleCheck() {
    var hobby = document.getElementsByName('hobby');
    if (autoCheck("hobby", 3)) {
      for (var i = 0; i < hobby.length; i++) {
        hobby[i].onclick = function (e) {

          if (autoCheck("hobby", 3, 'sigleCheck')) {

            e.target.checked = true;
          } else {
            e.target.checked = false;
          }


        }


      }

    }
  }
  sigleCheck()

</script>
</body>
落殤 回答

你可以試試阿里云的OSS服務(wù),我一般都是把大資源扔到OSS上這樣自己的服務(wù)器壓力會減小不少

命于你 回答

找到解決方法如下:
import React from 'react'
import { Editor } from 'react-draft-wysiwyg'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
import styles from './Editor.less'

const DraftEditor = (props) => {
return (<Editor

        localization={{ locale: 'zh' }} 
        toolbarClassName={styles.toolbar} 
        wrapperClassName={styles.wrapper} 
        editorClassName={styles.editor} 
        toolbar={{
          fontFamily: { options: ['宋體', '黑體', '楷體', '微軟雅黑','Arial',  'Georgia', 'Impact', 'Tahoma', 'Times New Roman', 'Verdana',]}
        }}
        {...props} 
        />)

}

export default DraftEditor