请问react 怎么清除当前的历史记录?

react 怎么清除当前的历史记录


呼如林
浏览 1590回答 3
3回答

慕盖茨4494581

import React from 'react'import { render } from 'react-dom'const About = React.createClass({/*...*/})const Inbox = React.createClass({/*...*/})const Home = React.createClass({/*...*/})const App = React.createClass({getInitialState() { return {   route: window.location.hash.substr(1) }},componentDidMount() { window.addEventListener('hashchange', () => {   this.setState({     route: window.location.hash.substr(1)   }) })},render() { let Child switch (this.state.route) {   case '/about': Child = About; break;   case '/inbox': Child = Inbox; break;   default:      Child = Home; } return (        App            About       Inbox              )}})render(, document.body)

白猪掌柜的

有两种办法可以删除表中的所有数据: 1、TRUNCATE TABLE 删除表中的所有行,而不记录单个行删除操作。 语法 TRUNCATE TABLE name 参数 name 是要截断的表的名称或要删除其全部行的表的名称。 2、Delete from tablename where 1=1
打开App,查看更多内容
随时随地看视频慕课网APP