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

鍍金池/ 問答/ HTML問答
心沉 回答

try_files $uri $uri/ /index.html;寫到server塊就行
比如

try_files $uri $uri/ /index.html;

location / {
  try_files $uri $uri/ /index.html;
}

location ~ (index.html|service-worker.js)$ {
  # ...
  add_header Last-Modified $date_gmt;
  add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
  if_modified_since off;
  expires off;
  etag off;
}
久不遇 回答

你先試試直接訪問主頁看看能不能訪問,比如:a.com,
如果可以訪問,而類似a.com/#/login這種帶路由的頁面404,那就是后臺沒配置路由的頁面,或者把vue-router的mode改為默認(rèn)值hash。
如果都不能訪問,那就是后臺沒配置好反向代理,后臺的問題。

使勁操 回答

一般沒有這種做法,請在服務(wù)器上反代80(8000代理至80)

安于心 回答

Hotmail signup guide, register for Hotmail for everyone.
http://hotmailentrarlogin.org

安淺陌 回答

`
const root = function(createAPI){

return function (...args){
    const result = createAPI(...args);
    return {
        ...result,
        url: `${ROOT}${result.url}`;
    }
}

}

`
root 接受一個函數(shù)A,返回另一個函數(shù)B,
函數(shù)B的返回結(jié)果是一個對象,其中組合了函數(shù)A的返回結(jié)果
auth 同理。

最終參數(shù)是傳到projects然后將返回的對象進(jìn)行組合

陌南塵 回答
經(jīng)過我?guī)讉€小時的嘗試,使用自定義指令實現(xiàn)了該需求,沒有使用任何原生的DOM操作和插件,直接使用了vue提供的方法實現(xiàn)的。

具體代碼(直接復(fù)制粘貼便可看到效果,重要地方都做了注釋):

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<div id="app">
    <ul>
      <li v-for="(item,index) in inputs">
        <input type="text" v-model="item.val" v-focus="focusIndex === index"  @keyup.enter="nextFocus(index)">
      </li>
    </ul>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
  // 注冊一個全局自定義指令 `v-focus`
  Vue.directive('focus', {
    // 當(dāng)被綁定的元素插入到 DOM 中時……
    inserted: function (el,obj) {  //這是需要頁面剛加載就能進(jìn)行聚焦操作使用的鉤子函數(shù),可以省略的,視具體需求而定
      //console.log(obj);
      if(obj.value) { //對值進(jìn)行判斷
        // 聚焦元素
        el.focus()        
      }
    },
    // 當(dāng)指令所在組件的 VNode 及其子 VNode 全部更新后調(diào)用
    componentUpdated: function(el,obj) {  //這是每當(dāng)綁定的值發(fā)生改變時觸發(fā)的鉤子函數(shù)
      //console.log(obj);  //可以打印看一下
      if(obj.value) {
        el.focus()        
      }
    }
  })
  new Vue({
      el: "#app",
      data() {
        return {
          focusIndex: 0, //用來存放下一個應(yīng)該聚焦的index值
          inputs: [{
            val: 1
          },{
            val: 2
          },{
            val: 3
          },{
            val: 4
          }]
        }
      },
      methods: {
        nextFocus(index) {
          return this.focusIndex = index + 1;
        }
      }
  });
</script>
</body>
</html>

希望我的回答對你有所幫助!^_^^_^ 不足之處,歡迎批評指正!
薔薇花 回答

&& 這個符號,前面語句為 false 時候 后面的就不會執(zhí)行。
當(dāng) callback 為 null undefined 之類的時候,callback.call()就不會執(zhí)行了,當(dāng) callback 有值的時候才執(zhí)行后面的語句。

背叛者 回答
<style type="text/css">
@media print {
  body {-webkit-print-color-adjust: exact;}
}
</style>
離觴 回答

可以用1樓說的element的事件@blur
也可以用原生的方法加native

原生的組件系統(tǒng)非常難用,功能劃分很困難.
而vue的組件系統(tǒng)個人認(rèn)為是最成功,完成度最高的.非常值得借chao鑒xi

呆萌傻 回答

寫幾個移動端頁面那就用web使用方式,采用webpack+react+react-router+antd方式,當(dāng)然也可以不使用webpack,直接在HTML中引入。

北城荒 回答

你這是把圖片的base64編碼存到數(shù)據(jù)庫里面,當(dāng)然大了;
還是把圖片存成文件,數(shù)據(jù)庫里面保存路徑吧

夢若殤 回答
import React from 'react';

class Test extends React.Component{
  constructor() {
    super(...arguments);
    this.state = {text: 1};
  }

  render() {
    const {text} = this.state;
    const {dataChinaTelecom, dataChinaUnicom} = this.props;
    return(
      <div>
        <button onClick={() => this.setState({text: 1})}>改變一</button>
        <button onClick={() => this.setState({text: 2})}>改變二</button>
        <div>{text === 1 && dataChinaTelecom}</div>
        <div>{text === 2 && dataChinaUnicom}</div>
      </div>
    );
  }
}
故林 回答

可能是在那個面位置上有多個重疊的面,這樣在遠(yuǎn)視角下會發(fā)生閃爍,可以設(shè)置Mesh的Material屬性depthTest: false

var materialA = new THREE.MeshBasicMaterial({map:textureLoader.load(img1),side:THREE.DoubleSide,transparent:true,depthTest: false}  
她愚我 回答

var chart = echarts.init(dom, 'light'); // 在表格初始化的時候,這里是切換為light主題

其實你看文檔就可以知道怎么做了。

clipboard.png

http://echarts.baidu.com/tuto...

貓小柒 回答

import _ from 'lodash'
Vue.prototype._ = _
然后在你的項目中 可以使用 this._來使用

櫻花霓 回答

400是后端返回的,可能是后端對上傳的數(shù)據(jù)處理有問題

墨沫 回答

onclick事件里面的字符串參數(shù),改成''。結(jié)構(gòu),樣式,行為相分離,你這個全寫在html中,乍一看沒啥問題,編輯器中就能看出錯誤了。


圖片描述