<html>
<head>
<title>Insert title here</title>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/vue.min.js"></script>
<style type="text/css">
.class1{
  width:200px;
  height:200px;
  background : yellow;
}
</style>
</head>
<body>
  <div >
  var mymodeltest = new Vue({
  el:'#mymodel',
  data: {
    uname : 'zhangsan',
    age : 20,
    imgUrl : '${pageContext.request.contextPath}/img/1.jpg'

}
});

  //修改HTML样式
  new Vue({
    el: '#app',
    data:{
      class1: false
    }
  });

</script>

相关文章:

  • 2021-08-16
  • 2021-10-30
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2021-10-15
  • 2021-07-17
  • 2022-01-02
  • 2021-04-20
  • 2021-12-12
相关资源
相似解决方案