小编Har*_*han的帖子

phpmyadmin错误:缺少mysqli扩展名.请检查您的PHP配置

我转到Apache24> conf> httpd并将index.html更改为index.php.之后我在服务中刷新Apache http://localhost/phpmyadmin/并收到以下错误:

phpMyAdmin-错误

缺少mysqli扩展名.请检查您的PHP配置.

 <a href="Documentation.html#faqmysql" target="documentation"><img class="icon" src="./themes/pmahomme/img/b_help.png" width="11" height="11" alt="Documentation" title="Documentation" /></a>
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮我理解这个错误吗?

phpmyadmin

7
推荐指数
1
解决办法
3万
查看次数

在 React 中对类属性使用箭头函数。不清楚

我发现箭头函数功能被用作 React 组件中的 Class 属性。在网上查看,我发现它使代码更具可读性,并且由于箭头函数功能,我们不必在构造函数内绑定handlEvents函数。

即使在对类属性使用箭头函数时,我仍然必须使用绑定方法,如下面的代码所示。当我删除构造函数中的绑定时,它在控制台中显示错误Warning: A component is changing an uncontrolled input of type text to be controlled.,并且表单错误也不会显示

class Contact extends Component {
    constructor(props) {
        super(props);

        this.handleBlur = this.handleBlur(this);
    }

    handleBlur = evt => field => {
        this.setState({
        touched: { ...this.state.touched, [field]: true }
    });

   render() {
       return(
          <Form onSubmit={this.handleSubmit}>
            <FormGroup row>
              <Label htmlFor="firstname" md={2}>
                First Name
              </Label>
              <Col md={10}>
                <Input
                  type="text"
                  id="firstname"
                  name="firstname"
                  placeholder="First Name"
                  valid={errors.firstname === ""}
                  invalid={errors.firstname !== ""}
                  value={this.state.firstname}
                  onBlur={event => {
                    this.handleBlur("firstname"); …
Run Code Online (Sandbox Code Playgroud)

this reactjs class-properties arrow-functions

5
推荐指数
1
解决办法
2006
查看次数