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

鍍金池/ 問(wèn)答/ HTML問(wèn)答
囍槑 回答

你這個(gè)問(wèn)題感覺(jué)都搞一星期了...

為什么要遍歷,輸入框里的默認(rèn)值應(yīng)該是從tabledata里取的,你修改輸入框的值,會(huì)作用到tabledata的,然后你handleSelectionChange 函數(shù)的時(shí)候不是把行數(shù)據(jù)傳進(jìn)去了嗎,直接用就可以了

你表格里的值都是根據(jù)tabledata來(lái)的,如果修改值tabledata沒(méi)更新,那就是你vue沒(méi)檢測(cè)到狀態(tài)改變

離魂曲 回答

你確定這個(gè)路徑是支持POST 請(qǐng)求的嗎? 對(duì)于很多框架REST請(qǐng)求是需要在路由下面設(shè)置的。你的程序有路由設(shè)定嗎?還有一些需要傳入JWT Token才能執(zhí)行POST請(qǐng)求。 我建議你把相關(guān)路徑通過(guò)console.log()打印出來(lái),然后放到postman下面測(cè)試。這樣就能比較直接的的發(fā)現(xiàn)問(wèn)題。

Postman使用教程

瞄小懶 回答

不需要用refs獲取dom,給答對(duì)了和打錯(cuò)了設(shè)置不同的類(lèi),在渲染的時(shí)候判斷是答對(duì)還是打錯(cuò),來(lái)設(shè)置不同的類(lèi),也可以直接在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>
互擼娃 回答

錯(cuò)誤日志顯示缺少模塊

冷溫柔 回答

CDN 一般都是用在靜態(tài)資源上,通常都會(huì)使用子域名。

比如 Server 端域名是:www.xxx.com, 那么 CDN 通常會(huì)用 cdn.xxx.com 這樣的子域名來(lái)接入到第三方 CDN 服務(wù)商(阿里云,七牛云,又拍云等),你直接用 Server 服務(wù)器用的域名去接入到 CDN 肯定會(huì)有問(wèn)題的。

情未了 回答

從后臺(tái)發(fā)過(guò)來(lái)一個(gè)json,和你本地保存一個(gè)json的區(qū)別:
1、前者有網(wǎng)絡(luò)傳輸消耗,當(dāng)然比后者慢一點(diǎn)
2、將來(lái)城市地名更新,前者只需修改后臺(tái)程序,后者需要重新打包前端程序。

綜上所述,我認(rèn)為的最佳方式是調(diào)用后臺(tái)接口獲取后,緩存在前端,前端程序退出的時(shí)候清空緩存

如果你直接寫(xiě)在js里,可以省去解析json的時(shí)間(可以忽略不計(jì))

乞許 回答

我寫(xiě)了一個(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>
柚稚 回答

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

枕頭人 回答

理論上只要支持ES5的瀏覽器就能完整的使用redux,ie8的話可能需要使用ES5的shim來(lái)達(dá)到支持。

但是作者在去年說(shuō)過(guò)新版本將會(huì)逐漸丟棄對(duì)ie的支持,所以最新版本對(duì)ie的支持程度很難確定。

rxjs的話是ie9+

幼梔 回答

function fn(data,type){
let hash=[],arr=[];
data.map((item)=>{

if(hash[item[type]]){
   arr.push(item)
}

})
return arr;
}
console.log(fn(data,'year'))

我不懂 回答

jQuery.post默認(rèn)的Content-Type是application/x-www-form-urlencoded,而你的是application/json

還是不行的話請(qǐng)查看 http://blog.csdn.net/hemingwa...

厭惡我 回答

看看這樣行嗎

<!DOCTYPE html >
<html lang="en" ng-app="app">

<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    .cc {
      border: 1px solid #ccc;
      border-collapse: collapse;
    }

    .cc td {
      text-align: center;
      padding: 6px 6px;
      border: 1px solid #ccc;
      height: 20px;
    }
  </style>


</head>

<body ng-controller="siteCtrl">
  <table border="1" cellpadding="0" cellspacing="0" class="cc">
    <tr>
      <td>組</td>
      <td>組下項(xiàng)</td>
    </tr>

    <tr ng-repeat="item1 in dataList">
      <td>
        <input type="checkbox" ng-model="item1.ProState" ng-change="selectItem(item1)"> {{item1.ProList}}
      </td>
      <td>
        <table border="0" cellpadding="0" cellspacing="0">
          <tr ng-repeat="item in item1.data">
            <td>
              <input type="checkbox" ng-model="item.state" name="" ng-checked="item.state" ng-change="change(item1)">
            </td>
            <td>{{item.Name}}</td>
            <td>{{item.Url}}</td>
            <td>{{item.Email}}</td>
            <td>
              <button ng-click="add(item, item1.data)">增加</button>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
  <!-- <script type="text/javascript" src="js/angular.min.js"></script> -->
  <script>
    var app = angular.module('app', []);
    app.controller('siteCtrl', function ($scope, $http) {

      $scope.dataList = [
        {
          "ProList": "a1",
          "ProName": "g1",
          "ProState": false,
          "data": [
            {
              "Name": "john1",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": true,
              "ProName": "g1"
            },
            {
              "Name": "john1",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g1"
            },
            {
              "Name": "john1",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g1"
            }
          ]
        },
        {
          "ProList": "a2",
          "ProName": "g2",
          "ProState": false,
          "data": [
            {
              "Name": "john2",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g2"
            },
            {
              "Name": "john2",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g2"
            },
            {
              "Name": "john2",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g2"
            }
          ]
        },
        {
          "ProList": "a3",
          "ProName": "g3",
          "ProState": false,
          "data": [
            {
              "Name": "john3",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g3"
            },
            {
              "Name": "john3",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g3"
            },
            {
              "Name": "john3",
              "Url": "ImJohn.cn",
              "Email": "go",
              "state": false,
              "ProName": "g3"
            }
          ]
        }
      ]
      $scope.change = function(pro) {
        console.log(pro);
        pro.ProState = pro.data.every( person => person.state)
      }
      $scope.selectItem = function (item) {
          item.data.forEach(function(person) {
            person.state = item.ProState;
          })
      };
      $scope.add = function (item, datas) {
        var newItem = angular.extend({}, item);
        datas.push(newItem);

      }

    })

  </script>
</body>

</html>
法克魷 回答

不需要寫(xiě)click事件,在touchstart和touchend中控制,類(lèi)似下面一個(gè)例子,click就是touchstart和touchend事件只不過(guò)沒(méi)有touchmove。如果你想要在touchmove中控制可以單獨(dú)寫(xiě)一個(gè)方法
element.addEventListener('touchstart', (event) => {

    if (this.prevent) {
      event.preventDefault();
   
    }
     this.dragging = true;
    this.doOnTouchStart(event);
  });

element.addEventListener('touchmove', (event) => {

    if (!this.dragging) return;
    this.doOnTouchMove(event);
  });
  element.addEventListener('touchend', (event) => {
    if (this.userScrolling) {
      this.dragging = false;
      this.dragState = {};
      return;
    }
    if (!this.dragging) return;
    this.doOnTouchEnd(event);
    this.dragging = false;
  });
  
毀與悔 回答

大容器定高 里面包含表頭和表內(nèi)容,記得是分開(kāi)寫(xiě)
表頭使用fixed定位,top:0
表內(nèi)容高度固定,padding-top:表頭高度 overflow-y:auto;overflow-x:hidden;

恩對(duì)我沒(méi)做過(guò)這個(gè)功能,以上都是我的理想狀態(tài)想象的.

涼汐 回答

click事件寫(xiě)在swiper-slide上試試

click.native="select(index)"

兮顏 回答

可以微信開(kāi)發(fā)者工具中查看獲得權(quán)限,是否真的配置是有效的

clipboard.png

骨殘心 回答

Axios 是一個(gè)基于 promise 的 HTTP 庫(kù),可以看看 : https://github.com/axios/axios

例子:

// Make a request for a user with a given ID
axios.get('/user?ID=12345')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

// Make a postrequest
axios.post('/user', {
    firstName: 'Fred',
    lastName: 'Flintstone'
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });
別硬撐 回答
"時(shí)間${time}姓名${name}年齡${age}".match(/\${[^}]*}/g);