#vue-py
<script src='path/to/vue.js'></script>
<script src='path/to/vue-py.js'></script>
<body>
<div id='app'>
<p v-py='name'></p> <!--渲染成 <p>zhong guo</p>-->
</div>
<script>
var vm = new Vue({
el: '#app',
data: {
name: '**'
}
})
</script>
</body>
-
capitalize
<div id='app'> <p v-py.capitalize='name'></p> <!--渲染成 <p>ZHONG GUO</p>--> </div> <script> var vm = new Vue({ el: '#app', data: { name: '**' } }) </script>
-
upperfirst
<div id='#app'> <p v-py.upperfirst='name'></p> <!--渲染成 <p>Zhong Guo</p>--> </div> <script> var vm = new Vue({ el: 'app', data: { name: '**' } }) </script>