JavaScript 与 Vue 对比:30项指标

JavaScript 对比 Vue

JavaScript

JavaScript 是一种Object-Oriented, Functional, Procedural编程语言,首次出现于 1995 年,由 Brendan Eich 设计。主要应用场景:Web Development, Automation, Scripting。

Vue

Vue 是一种Declarative, Component-Based, Functional编程语言,首次出现于 2014 年,由 Evan You 设计。主要应用场景:Web Frontend, Single Page Applications, UI Development。

30项指标

指标 JavaScript Vue
GitHub Stars 60588 55435
Stack Overflow Tags 845644 819266
TIOBE Rank 8 27
RedMonk Rank 2 31
PYPL Rank 7 33
Average Salary (USD) 136053 125708
Job Postings 41561 39773
Benchmarks Score 0.82 0.82
Learning Curve Hard Hard
Community Size Very Large Very Large
Documentation Quality 9 8
Ecosystem Maturity 10 10
Industry Adoption 10 8
Type System Complexity 9 9
Concurrency Support 8 7
Performance - Execution Speed 10 9
Performance - Memory Usage 10 10
Performance - Startup Time 10 8
Tooling Quality 9 7
Package Manager Quality 9 10
IDE Support 9 7
Debugging Experience 8 6
GitHub Stars Rank 16 24
Stack Overflow Tags Rank 9 16
Average Salary Rank 2 18
Job Postings Rank 10 18
Benchmarks Rank 27 30
Learning Curve Score 3 3
Community Size Score 9 9
AHP Score 8.34 7.62

AHP综合评分

  • JavaScript: 8.34 (#6)
  • Vue: 7.62 (#24)
JavaScript      | ######## 8.34
Vue             | ######## 7.62

何时选择JavaScript

Web Development, Automation, Scripting, General Programming. JavaScript 是一种Object-Oriented, Functional, Procedural编程语言,首次出现于 1995 年,由 Brendan Eich 设计。主要应用场景:Web Development, Automation, Scripting。

何时选择Vue

Web Frontend, Single Page Applications, UI Development. Vue 是一种Declarative, Component-Based, Functional编程语言,首次出现于 2014 年,由 Evan You 设计。主要应用场景:Web Frontend, Single Page Applications, UI Development。

Hello World 示例

JavaScript:

console.log('Hello, World!');

Vue:

<template><h1>Hello, World!</h1></template>

Other languages