为啥vue模板内的style标签样式无效呢?我在template写了一个style样式改变h1的样式,但是却不起作用,请问怎么办?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="app">
<h1>{{message}}</h1>
<div>
{{score|handleData}}
</div>
<style >h1{
background: black;
color: white;
}</style>
<div><button @click="add">点击累加测试</button></div>
</div>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.2.2.min.js"></script>
<script>
new Vue({
el: '#app',
data: function() {
return {
message:"hello world!",
score:59,
}
},
filters: {
handleData: function (value) {
if(value>=60) return '及格'
else return '不及格'
}
},
methods:{
add:function(){
this.score++;
}
},
})
</script>
</body>
</html>如何让ai帮我自动在小红书或抖音上自动根据需求截流与潜在客户聊天拉客?
如果用go编写一个在virtualbox中启动的简单操作系统?
go如何搭建一个零信任网络?
如何用python实现一个公网代理访问软件?
如何用go实现一个公网代理访问软件?
如何用python实现一个内网穿透打洞程序,实现内网的80端口暴露到公网上可以访问?
如何用go实现一个内网穿透打洞程序,实现内网的80端口暴露到公网上可以访问?
何为Shadowsocks 代理?
python如何实现类似php的opendir目录相互隔离的fastcgi多租户虚拟空间?
nodejs如何实现类似php的opendir目录相互隔离的fastcgi多租户虚拟空间?


