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

鍍金池/ 問答/ HTML問答
入她眼 回答

swiper4做了組件化的深化,可能是把a(bǔ)utoplayDisableOnInteraction放到了autoplay里面了,你可以試試:

mySwiper4 = new Swiper('.slotMachinesinfo .swiper-container', {
    direction: 'vertical',
    loop: true,
    autoplay: true,
    speed: 800,
    autoplay: {
        disableOnInteraction: false
    }
});

Math.floor是向下取整用Math.ceil()向上取整就可以了

心癌 回答

你的數(shù)據(jù)是定義在根組件的,需要定義在子組件中才行

安淺陌 回答

首先說(shuō)下這不是加不加flex-basis的問題,至于原因,看我的說(shuō)明。

我按照你說(shuō)的寫了個(gè)不加flex-basis的版本,為了便于查看,加了背景色和字

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>關(guān)于flex的問題</title>
</head>
<style>
    span {
        background: #e94258;
    }

    .box {

        display: flex;
        justify-content: space-between;
    }
    .column {
        background: #000;

        display: flex;
        justify-content: space-between;
    }
</style>
<body>
<div class="box">

    <span class="item">c</span>
    <span class="item">c</span>
</div>
<div class="box">

    <div class="column">
        <span class="item">c</span>
        <span class="item">c</span>
    </div>
</div>
</body>
</html>

顯示的結(jié)果:image-20180605125635079

如你所說(shuō),挨在一起,但是你有沒有發(fā)現(xiàn)一個(gè)問題,我明明給column寫了個(gè)黑色的背景色,怎么第二行沒有背景色?問題就是出在這。

按理說(shuō)column是個(gè)div,應(yīng)該占滿一行的,但是由于box設(shè)置成了flex,所以column不再是塊元素,他的寬度只隨內(nèi)容變化,而column的內(nèi)容只有兩個(gè)span,所以column的寬度就變成了兩個(gè)span的寬度之和。

實(shí)際上這時(shí)第二行兩個(gè)span依舊是和上面一行的兩個(gè)span一樣,都是排列在column的兩邊,但是由于column的寬度就等于這兩個(gè)span的寬度之和,所以看起來(lái)就像是這兩個(gè)span變成了從左到右排列,而沒有排列在兩邊。

結(jié)論是要解決這個(gè)問題,只要想辦法讓column的寬度變成和第一行的box一樣,那第二行的兩個(gè)span的排列就會(huì)看起來(lái)和第一行的一樣了。你的flex-basis:100%就是達(dá)到了這個(gè)效果。還有別的方法可以解決的,這個(gè)你自己摸索吧。原理才是最重要的。

孤星 回答

你可以監(jiān)聽shift

然后select的時(shí)候進(jìn)行循環(huán)勾選

情皺 回答

可能是瀏覽器仿真的問題吧。。。在虛擬機(jī)上安裝IE8就可以了。。。

獨(dú)白 回答

你是剛剛接觸PHP的么?

挽青絲 回答

前端導(dǎo)出Excel比較難操作,一般是讓后端操作
前端操作可以參考https://segmentfault.com/a/11...

落殤 回答

有時(shí)候tab展開補(bǔ)全 你把最后一個(gè)字符刪掉 重新輸入然后馬上按下tab就會(huì)展開啦

clipboard.png

孤慣 回答

應(yīng)該跟vue沒關(guān)系,這么一個(gè)代碼一樣不會(huì)無(wú)限循環(huán),不過把延遲注釋打開就不一樣了。

<div id="wrapper">
  wrapper
  <div id="inner">
    inner
  </div>
</div>
var domInner = document.querySelector('#inner')
var domWrapper = document.querySelector('#wrapper')
domInner.onclick = () => {
  console.log('inner')
}
domWrapper.onclick = () => {
  // setTimeout(() => {
    console.log('wrapper')
    domInner.click()
  // }, 1000)
}
domInner.click()
小眼睛 回答

不能,react已經(jīng)給你jsx語(yǔ)法了,不要再用原生思想去理解

情皺 回答

用ng-options啊

https://docs.angularjs.org/ap...

<select ng-options="item as item.label for item in items track by item.id" ng-model="selected"></select>
夢(mèng)囈 回答

使用 Audio 對(duì)象播放音頻:https://developer.mozilla.org...

document.querySelector('a').onclick = () => new Audio('音頻URL').play()
萢萢糖 回答

clipboard.png這是我實(shí)現(xiàn)一個(gè)input輸入框的

還吻 回答

已經(jīng)解決了

https://blog.csdn.net/heatdea...

https://blog.csdn.net/weixin_...

上代碼:

vue:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <title>hello world</title>

</head>
<body>
<div id="app">
    <h1>hello world</h1>
    用戶名: <input type="text" v-model="username">
    <button @click="submit">提交</button>
</div>
</body>

<script src="../static/js/vue.js"></script>
<script src="../static/js/axios.min.js"></script>
<script>
    axios.defaults.baseURL = 'http://localhost:8066'
    axios.defaults.withCredentials=true;
    new Vue({
        el: "#app",
        data() {
            return {
                username: ''
            }
        },
        methods: {
            submit() {
                axios.post('login', {
                    username: this.username
                }).then(function (response) {
                    console.log(response);
                }).catch(function (error) {
                    console.log(error);
                });
            }
        }
    })
</script>
</html>

后臺(tái)java:

跨域配置:

@Configuration
public class CrossConfig implements WebMvcConfigurer {
    @Override
    public void addCorsMappings(CorsRegistry registry) {
        //設(shè)置允許跨域的路徑
        registry.addMapping("/**")
                //設(shè)置允許跨域請(qǐng)求的域名
                .allowedOrigins("*")
                //是否允許證書 不再默認(rèn)開啟
                .allowCredentials(true)
                //設(shè)置允許的方法
                .allowedMethods("*")
                //跨域允許時(shí)間
                .maxAge(3600);
    }
}

cookieutil:

    
    public class CookieUtils {
    public static String getCookie(HttpServletRequest request, String cookieName) {

        Cookie[] cookies = request.getCookies();
        if (cookies != null) {
            for (Cookie cookie : cookies) {
                if (cookie.getName().equals(cookieName)) {
                    return cookie.getValue();
                }
            }
        }
        return null;
    }

    public static void writeCookie(HttpServletResponse response, String cookieName, String value) {
        Cookie cookie = new Cookie(cookieName, value);
        cookie.setPath("/");
        cookie.setMaxAge(5 * 60);
        response.addCookie(cookie);
    }
}

controller:

@RestController
public class LoginController {
    final String TOKENX = "1234";

    @PostMapping("login")
    public String queryPoolList(@RequestBody User user, HttpServletResponse response,
                                @CookieValue(value = "token", required = false) String token) {
        if (token == null) {
            CookieUtils.writeCookie(response, "token", TOKENX);
        } else {
            System.out.println(token);
        }
        //返回前臺(tái)
        return "成功";
    }
}


好難瘦 回答

不知道你的webpack的config文件是怎么寫的。
你需要在webpack的plugins中使用webpack.DefinePlugin定義全局變量,比如:

// 定義全局常量
    new webpack.DefinePlugin({
      'development': {
        NODE_ENV: 'production'
      }
    }),
耍太極 回答

看版本的話在package.json里看吧,添路由難免要改些東西,emmmm...還是得自己斟酌啊