让我说我有一条路:
/var/www/myside/
Run Code Online (Sandbox Code Playgroud)
该路径包含两个文件夹...让我们说
/static和/manage
我想配置nginx以访问:
/static文件夹/(例如http://example.org/)此文件夹包含一些.html文件.
/manage文件夹/manage(例如http://example.org/manage)在这种情况下,此文件夹包含Slim的PHP框架代码 - 这意味着index.php文件位于public子文件夹中(例如/ var/www/mysite/manage/public /的index.php)
我尝试了很多组合,比如
server {
listen 80;
server_name example.org;
error_log /usr/local/etc/nginx/logs/mysite/error.log;
access_log /usr/local/etc/nginx/logs/mysite/access.log;
root /var/www/mysite;
location /manage {
root $uri/manage/public;
try_files $uri /index.php$is_args$args;
}
location / {
root $uri/static/;
index index.html;
}
location ~ \.php {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
}
Run Code Online (Sandbox Code Playgroud)
}
该/ …
有没有办法使用React-Table手动触发onFetchData回调.
在文档中,我可以找到服务器端部分,说明在componentDidMount中调用onFetchData,并且在表中更改了分页,分页或过滤.
问题是:我可以手动触发onFetchData回调(它应该在其他独立道具更改时更新)吗?