UNPKG

tbom

Version:

Taobao Open Platform Modules

33 lines (28 loc) 784 B
import {createElement, Component} from 'rax'; import View from 'tboc-view'; import Text from 'tboc-text'; import styles from '../common/style.css'; import { env } from '../../../src/index'; function doFunc() { let _E = ""; Object.keys(env).map(api => { let _type = typeof(env[api]); if ( _type== "function" && api == "version") { } else if (_type == "object") { _E += api + ":" + JSON.stringify(env[api]) + "\n"; } else if (_type == "boolean") { _E += api + ":" + env[api] + "\n"; } }) console.log(_E); } class ENV extends Component { render() { return ( <View style={styles.app}> <View clickable={true}onPress={doFunc} style={{fontSize: 50}}>点击我查看效果</View> </View> ); } } export default ENV;