0
如果在浏览器中未检测到Flash,我试图隐藏元素。假设它看起来像这样。我在React中并使用JSX。如果在React JSX中未检测到闪存,我该如何隐藏元素
export default class MyComponent extends Component {
// Some code here
render() {
// some code here
return (
<div>
<div>
<span>I am going to show no matter if flash is detected or not</span>
</div>
<div>
<span>I am not going to show if flash has not been detected</span>
</div>
</div>
)
}
}
喂大卫,感谢。也许我应该在我的问题上更精确。我真的想知道如何知道是否支持Flash。看起来你在CDM中拥有它是有道理的。然而,什么是实际的代码或插件.. –
嗨,答案更新。 –
谢谢大卫! –