Get an object's property by name. This method will panic with an *Exception if a JavaScript exception is thrown in the process. Use Runtime.Try to catch these.
(name string)
| 804 | // Get an object's property by name. |
| 805 | // This method will panic with an *Exception if a JavaScript exception is thrown in the process. Use Runtime.Try to catch these. |
| 806 | func (o *Object) Get(name string) Value { |
| 807 | return o.self.getStr(unistring.NewFromString(name), nil) |
| 808 | } |
| 809 | |
| 810 | // GetSymbol returns the value of a symbol property. Use one of the Sym* values for well-known |
| 811 | // symbols (such as SymIterator, SymToStringTag, etc...). |