SOURCE

console 命令行工具 X clear

                    
>
console
// jquery
$('.jquery .name').text('小明') 
$('.jquery .positon').text('php工程师') 
$('.jquery .num').text('10')

// Vue 
var app = new Vue({
  el: '#app',
  data: {
    name: 'xxx',
    position: 'xxx',
    num: '0'
  }
})

app.name = '小明'
app.position = 'php工程师'
app.num = '10'
<!-- jquery js文件引入 -->
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<div class="jquery">
  <h1>jQuery</h1>
  <p>当前用户:<span class="name">xxx</span></p>
  <p>工作岗位:<span class="positon">xxx</span></p>
  <p>未读消息:<span class="num">0</span></p>
</div>
<!-- vue js文件引入 -->
<script src="https://cdn.bootcss.com/vue/2.5.16/vue.min.js"></script>
<div class="vue" id="app">
  <h1>Vue</h1>
  <p>当前用户:<span class="name">{{name}}</span></p>
  <p>工作岗位:<span class="positon">{{position}}</span></p>
  <p>未读消息:
body {
  font-size: 14px;
  line-height: 1.5;
}

h1 {
  font-size: 32px;
  font-weight: normal;
  border-left: 3px solid #2795EE;
  padding-left: 15px;
}

h2 {
  font-size: 18px;
  font-weight: normal;
  border-left: 3px solid #2795EE;
  margin: 0;
  padding-left: 15px;
  margin-left: 15px;
}

p {
  margin: 10px 0;
}

.panel {
  margin: 20px 0;
}

.panel-content{
  padding: 5px 20px 25px;
  
  border-bottom: 1px dashed #2795EE;
}


.tips {
  border: 1px solid #2795EE;
  color: #2795EE;
  padding: 5px 20px;
  text-align: center;
  margin: 20px;
  border-radius: 10px;
}


.line {
  margin: 20px;
  border-top: 1px dashed #2795EE;
}


本项目引用的自定义外部资源