SOURCE

console 命令行工具 X clear

                    
>
console
linfui.use(['method'], function () {
    Vue.prototype.$m = linfui.method;
    new Vue({
      el: '#app',
      data: {
      	result:'',
        result2:'',
        result3:''
      },
      created(){
      	let a='abcdef'
        this.result=a.indexOf('c')
        let b=['a','b','c','d']
        this.result2=b.indexOf('d')
        this.result3=b.indexOf('e')
      }
    })
  });
<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>
</div>
body{
  background:#f3f5f6;
}