iT邦幫忙

2017 iT 邦幫忙鐵人賽
DAY 12
2
Modern Web

Vue.JS且戰且飛系列 第 12

Vue.JS且戰且飛(十二)

過濾器-插件

找不到filter.js的網路連結
所以請到https://github.com/wy-ei/vue-filter 下載測試


<html>
<head>
    <meta charset="UTF-8">
    <title>過濾器-插件</title>
</head>
<body>
<div id="show">
    <a href="https://github.com/wy-ei/vue-filter">插件GitHub</a>
    <div>Vue.JS 2.0版本後就沒有內建過濾器,所以過濾器可以自己寫,也可以使用插件.</div>
    <input v-model="message">
    {{ message | reverse }}
</div>
</body>
<script src="vue.js"></script>
<script src="filter.js"></script>
<script>
    new Vue({
        el: '#show',
        data: {
            message: 'eagle'
        }
    });
</script>
</html>

上一篇
Vue.JS且戰且飛(十一)
下一篇
Vue.JS且戰且飛(十三)
系列文
Vue.JS且戰且飛30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言