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

鍍金池/ 問(wèn)答/ HTML問(wèn)答
乞許 回答

我寫(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>
墨染殤 回答

是在這里更改的,1就是1分錢(qián)的意思

浪婳 回答

供參考,沒(méi)有實(shí)現(xiàn)字符串功能,反正也不推薦使用。

function setInterval2 (cb, delay, ...args) {
  // 記錄所有正在運(yùn)行的 interval 用于撤銷(xiāo)
  let pool = window[Symbol.for('IntervalPool')]
  if (!pool) {
    pool = {}
    window[Symbol.for('IntervalPool')] = pool
  }

  // interval 最低 10ms,雖然每 frame 至少得 16ms
  delay = delay >= 10 ? delay : 10
  // interval id
  let ticket = Date.now()
  // 每次 interval 開(kāi)始時(shí)間
  let startTime = ticket
  pool[ticket] = true
  loop()
  return ticket

  function loop () {
    if (!pool[ticket]) { return }
    const now = Date.now()
    if (now - startTime >= delay) {
      startTime = now
      cb(...args)
    }
    requestAnimationFrame(loop)
  }
}

function clearInterval2 (ticket) {
  let pool = window[Symbol.for('IntervalPool')]
  if (pool && pool[ticket]) {
    delete pool[ticket]
  }
}
淺淺 回答

路由Path好像有問(wèn)題
瀏覽器截圖里路由的path是/layout/userList
看起來(lái)userList應(yīng)該是layout的子路由
如果userList是一個(gè)子路由的話,不應(yīng)該用/開(kāi)頭

柒喵 回答

我知道內(nèi)聯(lián)語(yǔ)句,這樣說(shuō)的話也就是say(),這算一個(gè)內(nèi)聯(lián)處理器。say('hi')這也是一個(gè)內(nèi)聯(lián)處理器。但是say不算。

艷骨 回答

two.js:

yeild put({type: 'one-namespace/reducerFunction', payload});
舊顏 回答

官網(wǎng)有說(shuō)過(guò)
import { Loading } from 'vux'
該組件支持以plugin形式調(diào)用:

import { LoadingPlugin } from 'vux'
Vue.use(LoadingPlugin)
Vue.use(vuxLoadingPlugin)

需要在app.js 入口文件中加入上面代碼,然后在子頁(yè)面引入loading,
因此與oast,Popup,XDialog 調(diào)用方式是不一樣的,其他的事在子頁(yè)面直接調(diào)用。

空白格 回答

var p ={phone: that.phone,

                    userpwd: that.password
                };
                var qs = JSON.stringify(p);
                
                data:{"data":qs},
不歸路 回答

不可以的,這樣不符合邏輯。如果你想實(shí)現(xiàn)的話只能自己去寫(xiě)一個(gè)。

澐染 回答

驗(yàn)証完後調(diào)用 document.activeElement.blur();

巴扎嘿 回答

document.getElementById這里出問(wèn)題了,你的input標(biāo)簽都沒(méi)有設(shè)置id屬性

忘了我 回答

你的對(duì)象字符串里有逗號(hào)
JSON.parse("{'domainname': 'ht.com'}") 這樣才是可以的。
或者這樣
JSON.parse("{'domainname': 'ht.com', 'domainname': 'ht.com', 'domainname': 'ht.com' }")

赱丅呿 回答

function Person(){

getAge = function(){
    console.log(10);
}
console.log(this)
return this;

}

Person().getAge(); // 10
Person函數(shù)中定義了全局函數(shù)getAge,調(diào)用Person(),返回的是window,調(diào)用window.getAge結(jié)果自然是10
new Person().getAge(); // 30
new Person()創(chuàng)建了實(shí)例,console.log(this)打印出來(lái)的是這個(gè)實(shí)例,實(shí)例沒(méi)有g(shù)etAge構(gòu)造方法,但有g(shù)etAge原型方法

愿如初 回答

你登錄成功會(huì)把用戶(hù)id保存到session里面吧。直接在控制器輸出不就行了?

艷骨 回答

用setTimeInterval每隔100ms請(qǐng)求一次,返回響應(yīng)

溫衫 回答

換了入口路由的順序就能正常渲染出來(lái)了


入口

      <Router>
        <div>
          <Link to="/login">login</Link> <br/>
          <Link to="/">index</Link> <br/>
          <Link to="/home2">home2</Link>
          <Switch>
            <Route exact path="/login" component={Login}/>
            <Route exact path="/home2" component={Home}/>
            <Route path="/" component={App}/>
          </Switch>
        </div>
      </Router>

APP

      <div className="App">
        <NavBar/>

        <SideBar/>

        <div className="app-content" style={contentStyle}>
          <h1>app-content</h1>
          <Link to="/home">home</Link><br/>
          <Link to="/">工作臺(tái)</Link>
          <Switch>
            <Route exact path="/" component={Dashboard}/>
            <Route exact path="/home" component={Home}/>
          </Switch>
        </div>
      </div>

圖片描述


毀憶 回答

你路由配置里面的meta keepAlive怎么配置的 把不需要緩存的keepAlive改成false

北城荒 回答

估計(jì)只能用shape了

html
<div class="shape">
  <p class="text">html頁(yè)面文字梯形排版怎么實(shí)現(xiàn)?</p>
  <p class="text">html頁(yè)面文字梯形排版怎么實(shí)現(xiàn)?</p>
  <p class="text">html頁(yè)面文字梯形排版怎么實(shí)現(xiàn)?</p>
  <p class="text">html頁(yè)面文字梯形排版怎么實(shí)現(xiàn)?</p>
  <p class="text">html頁(yè)面文字梯形排版怎么實(shí)現(xiàn)?</p>
</div>
css
.shape {
  width: 300px;
}
.shape:before {
  content: '';
  float: left;
  width: 100px;
  height: 150px;
  shape-outside: polygon(0 0, 100px 0, 0 150px, 0 0);
}

詳見(jiàn)這里

風(fēng)畔 回答

CSRF的請(qǐng)求是在另外一個(gè)域中發(fā)出的,自然無(wú)法訪問(wèn)正確域的cookie