SOURCE

console 命令行工具 X clear

                    
>
console
linfui.use(['method'], function () {
    Vue.prototype.$m = linfui.method;
    new Vue({
      el: '#app',
      data: {
      	result:'',
        result2:'',
        result3:'',
        result4:''
      },
      created(){
      	let a=['a','b','c','d']
        this.result=a.splice(0,2)
        this.result2=a
        
        this.result3=['a','b','c','d']
        this.result3.splice(this.result3.length-1,1)
        
        let str='c'
        this.result4=['a','b','c','d']
        let index=this.result4.indexOf(str)
        this.result4.splice(index,1)
      }
    })
  });
<script src="//unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/linf-ui@latest/dist/linfui.js"></script>
<div id="app">
结果一:{{result}}<br>
结果二:{{result2}}<br>
结果三:{{result3}}<br>
结果四:{{result4}}<br>
</div>
body{
  background:#f3f5f6;
}