原创 vue 多個input type = radio單擊事件

因爲vue有綁定事件,v-mode,所以只需要給每個input設置value初值,並綁定同一個data,便可以實現單擊按鈕切換顯示不同內容。 <!DOCTYPE html> <html lang="en"> <head> <me

原创 Jenkins 出現error: The following untracked working tree files would be overwritten by checkout

網上的方法: 出現error: The following untracked working tree files would be overwritten by checkout $ git clean -d -fx "" 然

原创 vue使用component遇到的問題

- Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if

原创 如何寫出高效可維護並且規範的js代碼

  原文地址:如何寫出高效可維護並且規範的js代碼 - wbliu的專欄 - 博客頻道 - CSDN.NET  http://blog.csdn.net/liuwenbiao1203/article/details 標籤: js

原创 vue-router第一個小demo

坑! 1、在src/components下新建一個Demo.vue文件 <template> <div> <h2>{{ msg }}</h2> </div> </template> <script>

原创 redis安裝,啓動

安裝:npm install redis  開服務:redis-server 連接redis: redis-cli      -h     127.0.0.1  -p  6379 client.js var redis

原创 vue-ant components antd.Vbutton

搭建好vue框架並且安裝vue-ant vue-antd  http://okoala.github.io/vue-antd/#!/docs/download 1.引用組件 2.組件傳值 3.頁面渲染結果

原创 swiper 手機移動端頁面循環

mySwiper.slideTo(index, speed, runCallbacks)_Swiper中文網  http://www.swiper.com.cn/api/function/2014/1218/109.html 先說下要實

原创 checkbox jQuery實現的全選、反選和不選功能

參考文章:http://www.runoob.com/try/try.php?filename=tryjquery_html_prop_attr       http://www.runoob.com/jquery/html-pro

原创 新建一個vue項目

1.$: cnpm install -g vue-cli 2.vue-cli初始化項目 $:  vue init webpack my-project  3.進到目錄 $: cd my-project 4.安裝依賴 $:

原创 vue防止閃爍

[v-cloak] {     display: none;  }  <div class="content zlb_content" id="ap

原创 less中使用calc

寫法: div{ @val: 0.20rem; width: calc(~"100% - @{val}"); } 編譯成: div { width: calc(100% - 0.2rem); }

原创 viewer.js銷燬

1.創建viewer視圖 $(document).on('mousedown','.credentialsImg',function () { if($(this).attr('src')){ $(this).

原创 v-on:click獲取當前事件對象元素

dom元素這樣寫: <i @click="iconToogle($event)" class="iconfont icon-xuanzhong1"></i> vue實例中的methods的寫法: function (event

原创 artTemplate if else 簡潔語法

artTemplate if else 簡潔語法 2014-09-25 20:08:39來源:CSDN作者:lanyizhilian19905196人點擊 菜鳥使用artTemplate,用的簡潔語法 只會寫