是否有Chrome插件可将导航窗口调整为智能手机或平板电脑窗口大小(iPhone,iPad,Blackberry,...)?
提前致谢.
首先,我使用Yeoman发电机角度发生器搭建了一个角度项目.
$ mkdir project && cd project
$ yo angular --coffee
...
[?] Would you like to use Sass (with Compass)? Yes
[?] Would you like to include Twitter Bootstrap? Yes
[?] Would you like to use the Sass version of Twitter Bootstrap? Yes
[?] Which modules would you like to include? angular-resource.js, angular-route.js
...
Run Code Online (Sandbox Code Playgroud)
Karma测试grunt test 不能立即使用,因此您需要手动安装一些额外的依赖项:
$ npm install karma-jasmine --save-dev
$ npm install karma-chrome-launcher --save-dev
Run Code Online (Sandbox Code Playgroud)
在此之后,测试仍然失败.从错误看,好像coffeescript文件被解释为JavaScript.
$ grunt test
Running "karma:unit" (karma) task
INFO [karma]: …Run Code Online (Sandbox Code Playgroud) 我有 PHP Fatal error: Class 'sendwithus\sendwithus_php\lib\API' not found
composer.json:
{
"repositories": {
"sendwithus_php": {
"type": "package",
"package": {
"name": "sendwithus/sendwithus_php",
"version": "1.0.3",
"source": {
"url": "https://github.com/sendwithus/sendwithus_php",
"type": "git",
"reference": "0dfed56"
}
}
}
},
"require": {
"sendwithus/sendwithus_php": ">=1.0.3"
}, "autoload": {
"psr-0": {
"Foo\\": "src/",
"sendwithus\\": "vendor/sendwithus/sendwithus_php/lib"
}
}, "minimum-stability" : "dev"
}
Run Code Online (Sandbox Code Playgroud)
test.php的:
use sendwithus\sendwithus_php\lib\API;
require_once 'vendor/autoload.php';
$api = new API('KEY');
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
angularjs ×1
coffeescript ×1
composer-php ×1
javascript ×1
php ×1
plugins ×1
psr-0 ×1
sendwithus ×1
size ×1
smartphone ×1