• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

!声明文档类型

html lang='en '

meta charset='UTF-8 '

meta name=' viewport ' content=' width=device-width,initial-scale=1.0 '

meta http-equiv=' X-UA-Compatible ' content=' ie=edge '

标题文档/标题

/头

身体

div id='应用程序'

按钮@click='更改'点我/按钮

h3 id='h3 '我是{{life}}生物/h3

/div

脚本src='./vue。js '/脚本

脚本

新Vue({

el: '#app ',

data() {

返回{

生活: '单细胞,

}

},

方法: {

更改(){

this.life='多细胞'

}

},

创建之前(){

警惕(本.生活)

},

已创建(){

警惕(本.生活)

},

beforeMount(){

设h3=document.getElementById('h3 ').内部文本

警报(h3)

},

已安装(){

设h3=document.getElementById('h3 ').内部文本

警报(h3)

},

更新之前(){

设h3=document.getElementById('h3 ').内部文本

警报(h3)

},

已更新(){

设h3=document.getElementById('h3 ').内部文本

警报(h3)

}

})

/脚本

/body

/html

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now