Home >Web Front-end >JS Tutorial >Getting started with Vue.js + supplementing JavaScript

Getting started with Vue.js + supplementing JavaScript

坏嘻嘻
坏嘻嘻Original
2018-09-14 11:23:081382browse

I am very proficient in using yii thinkphp and other frameworks to do projects. Is it necessary to learn vue and reactjs to change the front-end development model? The answer is yes!

Arrow function

x => x * x


The above arrow function is equivalent to:

function (x) {
    return x * x;
}

var fun = x => x * x;

let

let is block scope, var is function and global scope, the new standard advocates using let to replace var.

Related recommendations:

javascript - How to share this vue component?

javascript - vue project, store cookies after logging in, can you use cookies as authorization encryption for ajax requests?

The above is the detailed content of Getting started with Vue.js + supplementing JavaScript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn