Home >Web Front-end >JS Tutorial >Getting started with Vue.js + supplementing JavaScript
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!
x => x * x
The above arrow function is equivalent to:
function (x) { return x * x; }
var fun = x => x * x;
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?
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!