logo
  • 教程列表
  • SO官方文档
  • Polyfill webpack 模板
    • 函数用于 polyfill(ex find)
  1. StackOverflow 文档
  2. Vue.js 教程
  3. Polyfill webpack 模板
  4. 函数用于 polyfill(ex find)

函数用于 polyfill(ex find)

Created: November-22, 2018

<template>
  <div class="hello">
    <p>{{ filtered() }}</p>
  </div>
</template>

<script>
export default {
  name: 'hello',
  data () {
    return {
      list: ['toto', 'titi', 'tata', 'tete']
    }
  },
  methods: {
    filtered () {
      return this.list.find((el) => el === 'tata')
    }
  }
}
</script> 
  • Polyfill webpack 模板

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明