在网络浏览器中,可以清除历史记录。
如何使用R命令在firefox
RSelenium
浏览器中清除历史记录?
答案 0 :(得分:1)
请参阅Possible to disable firefox and chrome default caching?
在export default class DayView extends Component {
constructor(props) {
super(props);
this.state = {
value: ''
};
// Bind `this`
this.handleKeyPress = this.handleKeyPress.bind(this);
}
handleKeyPress(e) {
// Get input value
var value = e.target.value;
// User has already typed a #
var hasSymbol = !!value.substring(0, value.length - 1).match(/\#/);
// Check if last character is a #
if (value[value.length - 2] === '#') {
alert('There is a # symbol');
}
// Check if this last character is a #
// and the value already has one
if (hasSymbol && value[value.length - 1] === '#') {
alert('There is an other # symbol');
}
// Set state
this.setState({ value });
}
render() {
return (
<input onChange={this.handleKeyPress} value={this.state.value}>
)
}
}
和firefox中,您可以按如下方式传递:
RSelenium