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

鍍金池/ 問答
維她命 回答

v3版本中 節(jié)點的數(shù)據(jù)用 d.fixed = true;固定節(jié)點 node= [source:12,target:13,fixed:true];

v4版本中 如果節(jié)點數(shù)據(jù)(d) 有fx fy兩個值不為null,那么就是固定節(jié)點,unfix固定節(jié)點的方法就是 設(shè)置fx fy=null。

毀與悔 回答

你是不是沒有引入這個校驗的實現(xiàn)類?這個在spring mvc里只是一個接口具體實現(xiàn)還需要引入jar包,例如下面的:

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator</artifactId>
<version>4.2.0.CR1</version>
</dependency>
獨特范 回答
<a th:href="'/month/' + ${year}" th:each="year : ${years}" th:text="${year}+'年'"class="list-group-item"></a>

示例:
clipboard.png

賤人曾 回答

看下machine的version:docker-machine --version
如果不是0.6.0,那就換成Machine 0.6.0試試

笑忘初 回答

引用文字dasdasd
asdasdasd


淚染裳 回答
  1. between and 索引失效

2、like也可以用索引,like "字段%" 該字段加了索引且是后% explain type =range
3、全文索引 考慮使用第三方 coreseek 對中文支持也好
4、考慮分區(qū) 根據(jù)range 分區(qū)

歆久 回答

H5的頁面video標(biāo)簽在移動端播放時 如果點擊全屏播放 這時會有手機(jī)系統(tǒng)本身的播放器接管視頻播放功能,此時視頻的播放進(jìn)度等一系列狀態(tài)都有手機(jī)本身去管理,就完全脫離了H5的控制 直到退出全屏?xí)rH5的video標(biāo)簽重新接管視頻播放功能;

菊外人 回答

connect,用戶連接上之后就去數(shù)據(jù)庫查詢好友相關(guān)的信息返回給用戶

局外人 回答

mysql查詢是在磁盤上面進(jìn)行IO操作,php循環(huán)是在內(nèi)存中進(jìn)行,你的第一個方法的循環(huán)查詢會慢一些。 如果數(shù)據(jù)庫中數(shù)據(jù)量過大,內(nèi)存占用過大,建議分片讀取處理

逗婦惱 回答

跨域請求保護(hù),如果用戶是本地上傳的圖片到你們的服務(wù)器,就不會存在這個問題,但是假如用戶使用的是網(wǎng)絡(luò)上的資源,就會有這種問題出現(xiàn),比如阿里云、騰訊云、微信頭像等等CDN圖片,這種問題純客戶端JS是沒辦法的,需要把圖片地址發(fā)給服務(wù)端,讓服務(wù)端將圖片轉(zhuǎn)成base64格式發(fā)給前端才能解決。

簡單附錄PHP獲取圖片轉(zhuǎn)成base64代碼(個人學(xué)習(xí)時使用):

function imgcurl($ul){
  $header = array(
    'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0',
    'Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3',
    'Accept-Encoding: gzip, deflate',
  );
  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, $ul);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($curl, CURLOPT_ENCODING, 'gzip');
  curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
  $data = curl_exec($curl);
  $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
  curl_close($curl);

  if ($code == 200) {
      $imgBase64Code = "data:image/jpeg;base64," . base64_encode($data);
  };
  return $imgBase64Code;
}
乖乖瀦 回答

這個不是python一種語言就能搞定的,你還得了解前端語言。前端語言用于編寫在網(wǎng)頁上顯示的內(nèi)容,比如某一題目的序號,問題,答案選項。然后編寫一個確定選項的按鈕。把用戶所有選擇的答案都保存下來,最后再編輯一個交卷按鈕,提交答案。后臺要看你是用什么搭建的了,如果是python的django或者tornado,你就要自己接收交卷的信息,包括答題人的信息,形成一條記錄,保存到數(shù)據(jù)庫里,或者你格式化地寫到文本文件里,方便自己查看也可以。如果要在線就評分的話,在接收到交卷信息的時候,你就得與自己在后臺預(yù)存的答案進(jìn)行比對,得出結(jié)果,返回給前端。再在前端顯示最終分?jǐn)?shù),同時不能忘記保存到數(shù)據(jù)庫或者文本文件里。

有你在 回答

在state 中放置一個動作,不知道是樓主的業(yè)務(wù)需求還是樓主杜撰出來的這個想法

vuex用于全局狀態(tài)更新以及組件之間的通信,你要是使用toLink這個狀態(tài),應(yīng)該在你的業(yè)務(wù)組件中computed中拿到這個toLink,然后在你動作發(fā)生的時候,組件內(nèi)部通過this.toLink的方式獲取到。感覺這樣才是一個正常的業(yè)務(wù)邏輯。

eg:

  ...
  computed: {
    toLink() {
      // if your 'toLink' state is in your main state module
      return this.store.state.toLink;
    }
  },
  methods: {
    // hanle your interaction
    navigate() {
      app.go(this.toLink);
    },
  },
  ...
萢萢糖 回答

找到了,toFixed()會自動四舍五入...

心沉 回答

React Native里面可以用createElement這個方法,如果字符串比較短是可以用這個來處理
不過如果字符串較長的話,你需要個解析的庫

毀與悔 回答
<template>
  <div>
     <div class = "food">
      <div class="fooList">
        <ul v-for="(item,index) in goods">
        <li v-for="food in item.foods" v-show="name==item.name">
          <span>{{index}}{{food.name}}</span>
        </li>
          </ul>
      </div>
    </div>
  <div class="navMenu">
    <ul>
       <li v-for="(item,index) in goods" :class="isSelected == index?'navMenu-selected':'nav'" @click = 'menuClick(item.name,index)'>
          <span class="text">
            
            {{item.name}}
          </span>
        </li>
    </ul>
    
  </div>
 
 </div>
</template>

<script>
import axios from 'axios'
import Vue from 'vue'
export default {
  name: 'navMenu',
   created() {
    axios.get('static/data.json').then((res) => {
      console.log(res.data.goods)
      this.goods = res.data.goods
      
    });
  },
  data() {
    return {
      goods: [],
      isSelected:0,
      selectedFood: '',
      name:"food"
    }
  },
  computed:{
    // selectFoods() {
    //   let foods = []
    //   this.goods.forEach((good) => {
    //     good.foods.forEach((food) => {
    //       if (food.count) {
    //         foods.push(food)
    //       }
    //     })
    //   })
    //   return foods
    // }
  },

  methods:{
    menuClick (name,index) {
 this.isSelected = index 
this.name=name
    }
  }
}
</script>
妖妖 回答

獲取 2D 圖紙構(gòu)件包圍框的方法跟 3D 模型的不太一樣,下面是樣例(從 Viewer3D.js 里頭截取來的):

function find2DBounds( fragList, fragId, dbId, bc ) {
    const mesh = fragList.getVizmesh( fragId );
    const vbr = new Autodesk.Viewing.Private.VertexBufferReader( mesh.geometry );
    vbr.enumGeomsForObject( dbId, bc );
}

function get2DBounds( dbId, model ) {
    const it = model.getData().instanceTree;
    const fragList = model.getFragmentList();

    let bounds = new THREE.Box3();
    let bc = new Autodesk.Viewing.Private.BoundsCallback( bounds );
    const dbId2fragId = model.getData().fragments.dbId2fragId;
    const fragIds = dbId2fragId[dbId];

    if( Array.isArray( fragIds ) ) {
        for( let i = 0; i < fragIds.length; i++ ) {
            find2DBounds( fragList, fragIds[i], dbId, bc );
        }
    } else if( typeof fragIds === 'number' ) {
        find2DBounds( fragList, fragIds, dbId, bc );
    }

    return bc.bounds;
}

// 包圍匡
cosnt bondingBox = get2DBounds( dbId, viewer.model );
淚染裳 回答

comment組件未渲染完成。
你可以把

QC.Login({
   btnId:"qqLoginBtn"    //插入按鈕的節(jié)點id
});

放到comment組件里去用

維她命 回答

emmmmm……感覺問的有點廣——建議配合百度食用
簡單來說的話、jsonp是屬于一種跨域的數(shù)據(jù)獲取方式。
原理本質(zhì)上利用了<script>引用可跨域的形式。把連接當(dāng)成一個js或者css之類的引用,丟進(jìn)script再通過返回值來讀取。
而jsonpCallback是指你自己回調(diào)方法的方法名。因為jsonp需要服務(wù)器端做配合。比如你訪問了一個接口。他返回的內(nèi)容實際是一串js代碼比如:

do("xxxxxxxx")

而這個do就是你的jsonpCallback。你需要自己另外再寫一個function do($str);在里面對數(shù)據(jù)進(jìn)行解析。

其實后來其實大部分都由服務(wù)器直接可以解決跨域問題了所以感覺jsonp就很少見了……