Home  >  Article  >  Web Front-end  >  This.$get in vue can receive several attributes

This.$get in vue can receive several attributes

下次还敢
下次还敢Original
2024-05-02 22:31:07671browse

The this.$get method in Vue.js has two properties: path: required property path (string or array). defaultValue: optional, the default value returned if the attribute does not exist.

This.$get in vue can receive several attributes

The attributes accepted by this.$get method in vue

this.$get is in Vue.js A method used to obtain the value of a specific property from a reactive data object. It accepts the following two attributes:

1. path (required)

  • Type: String or Array
  • Description: To Get the attribute path of the value. A path can be a dot-delimited string or array that represents a hierarchy of nested properties in the data object.

2. defaultValue (optional)

  • Type: any type
  • Description: If the attribute is in the data object If not present, the default value is returned.

The above is the detailed content of This.$get in vue can receive several attributes. 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