In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the basic types of vue what related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that after reading this basic types of vue what articles will be harvested, let's take a look at it.
The basic types of vue are: 1. String (Sring) type, which is a paragraph of text wrapped in single quotation marks or double quotation marks;2. Boolean (Boolean) type, which has only two values of true and false;3. Number (Number) type, which is used to define numerical values, regardless of integers and decimals.
This tutorial operating environment: Windows 7 system, vue2.9.6 version, DELL G3 computer.
In VUE, there are two types of data: primitive types and non-primitive types (reference types).
Primitive types are also called value types, and string, Boolean, and Number are primitive types.
String type is a piece of text enclosed in single quotes '' or double quotes ''
Numeric (Number) type is used to define numerical values, regardless of the distinction between integers and decimals (floating point numbers), unified use of Number type representation
Boolean type has only two values, true (true) or false (false), which is used more when making conditional judgments. In addition to directly using true or false to define variables of Boolean type, you can also obtain Boolean type values through some expressions.
Non-primitive types can also be understood as reference types. Array and Object belong to reference types.
difference
basic types
Variables of primitive type/value type store data directly.
reference type
Reference types store values that refer to data, not the data itself.
That's why there's this in the official VUE documentation.
Don't use non-primitive values like objects and arrays as v-for keys. Use string or numeric values instead.
Do not use non-primitive values such as objects or arrays as v-for keys. Please use a string or numeric value.
The reason for this statement.
Screenshot of https://vuejs.org/v2/guide/list.html#Maintaining-State
About "what are the basic types of vue" the content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of "what are the basic types of vue" knowledge. If you still want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.