收到错误 TypeError: Undefined is not an object(evaluating 'this.props.track[this.state.selectedTrack]')尝试为 iOS 运行我的模拟器时。我正在构建播放器。我在启动时收到的错误如下。并且代码将在播放器的正下方任何指导将不胜感激。import React, { Component } from 'react';import {Player as PodCast} from './PodcastLayers/Player';export const TRACKS = [{title: 'Stressed Out',artist: 'Twenty One Pilots',albumArtUrl: "http://36.media.tumblr.com/14e9a12cd4dca7a3c3c4fe178b607d27/tumblr_nlott6SmIh1ta3rfmo1_1280.jpg",audioUrl: "http://russprince.com/hobbies/files/13%20Beethoven%20-%20Fur%20Elise.mp3",},];export default class PodCastScreen extends React.Component {render() {return <PodCast tracks={TRACKS}/>}}
添加回答
举报
0/150
提交
取消