Skip to content

Zhengy1995/personVue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

personVue

一个模仿vue实现mvvm框架的简单轮子

使用方法说明

示例代码

#HTML部分
<div id='index'>
    <span p-bind='example'></span> <button p-click='changeText'>点击切换文字</button>
</div>

#js部分
import PersonVue from './personVue'
new PersonVue({
    el: '#index',
    data: {
        data: {
            example: '这是一个示例'
        },
        method: {
            changeText() {
                this.example = '你点击了button标签,触发了该事件'
            }
        }
    }
})

About

一个模仿vue实现mvvm框架的简单轮子

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published