We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
微信小程序
小程序基础库: 2.12.2 使用框架: React
import React, { Component } from 'react' import { View } from '@tarojs/components' class Index extends Component { componentDidMount(): void { console.log(this.$scope); // undefined } render() { return ( <View/> ) } } export default Index
输出页面或者组件小程序原生作用域
undefined
Taro CLI 3.0.6 environment info: System: OS: Windows 10 Binaries: Node: 10.16.3 - C:\Program Files\nodejs\node.EXE Yarn: 1.17.3 - C:\Users\fen\AppData\Roaming\npm\yarn.CMD npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
要用getCurrentInstance().page
迁移指南里有说明 http://taro-docs.jd.com/taro/docs/migration
Sorry, something went wrong.
http://taro-docs.jd.com/taro/docs/migration 404了
https://taro-docs.jd.com/docs/migration
No branches or pull requests
相关平台
微信小程序
小程序基础库: 2.12.2
使用框架: React
复现步骤
期望结果
输出页面或者组件小程序原生作用域
实际结果
undefined
环境信息
The text was updated successfully, but these errors were encountered: