Vuejs technology Stack-problems encountered

Source: Internet
Author: User

When the data is rendered, the three-layer expression, such as A.B.C, needs to think about whether undefined will appear. Property issues

Workaround: V-if

In case the original object has no attributes, you need to

Vue.set (object, property name, property value) so that it is automatically bound

By adding a meta attribute to a route

Meta: {showfooter:true}<footerguide v-show= "$route. Meta.showfooter"/> can show some components of different routers hide an array into two-dimensional arrays, a 8 upper limit
= []  this. List.foreach (item, index)= = Math.floor (index/8)  if (!  = []} pages[page].push (item)})  return  pages}}

Picture Lazy Loading: vue-lazyload

Download NPM Install--save Vue-loader

Use

Import vuelazyload from ' Vue-lazyload'./common/img/loading.gif 'vue.use (vuelazyload, {loading}) v-lazy= "Food.image" >

Package Visualization: NPM Run Build--report

Animated <transition name= "ABC" >...</transition>

Abc-enter-active,abc-leave-active{transition all. 3s}

Abc-enter,abc-leave-to{transform ...}

Better-scroll

Troubleshooting the scrollbar Problem Postman test interface

Vuejs technology Stack-problems encountered

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.