如何使它工作?请帮助.
function first() {
setTimeout((function() {
$('#q').append('first <br>');
}), 1000);
}
function second() {
$('#q').append('second <br>');
}
function third() {
$('#q').append('third <br>');
}
$.when(first()).done(second()).done(third());
Run Code Online (Sandbox Code Playgroud)
first()作为最后一个函数运行,我首先需要
在这里小提琴:JSFIDDLE
请帮助我,我正在使用最新版本的xampp工作Laravel并且不知道我的问题的原因是什么.
这条路线工作正常:
Route::get('/', function () {
return 'aa';
});
Run Code Online (Sandbox Code Playgroud)
此路由给出错误"找不到对象!":
Route::get('about', function () {
return 'aaa';
});
Run Code Online (Sandbox Code Playgroud)
httpd.vhosts:
<VirtualHost test.loc:80>
DocumentRoot "C:/xampp/apps/test.loc/public"
ServerName test.loc
<Directory "C:/xampp/apps/test.loc/public">
#AllowOverride All - when I use this, I get a "Access forbidden!" for all routes
Require all granted - this works for the main route, other routes give "errors".
</Directory>
Run Code Online (Sandbox Code Playgroud)
/public/.htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 …Run Code Online (Sandbox Code Playgroud)