我已经安装了角度6与基础,但我得到一个错误与JQuery.
未捕获的语法错误:意外标识符ReferenceError:$未定义
在我的组件中,我有
declare var $:any
onNgInit () {
$(document).foundation()
}
Run Code Online (Sandbox Code Playgroud)
我在angular.json中有所有导入
scripts : [
"node_modules/jquery/dist/jquery.js"
]
Run Code Online (Sandbox Code Playgroud)
我已经尝试了我在互联网上找到的所有内容,但仍面临同样的错误.当我使用Angular 4时,还要添加这个用于工作
我发布了一个请求,我想收到一个'成功'字符串作为响应.我收到一个HttpResponseError,下面的图片中显示了以下信息.
PurchaseOrderService
postPurchaseOrderCustom(purchaseOrderCustom: PurchaseOrderSaveCustom) {
const url = `${this.localUrl}purchaseOrderCustom`;
return this.http.post<String>(url, purchaseOrderCustom, {headers: this.header})
.pipe(
catchError(this.handleError('postPurchaseOrderCustom', 'I am an error'))
);
}
Run Code Online (Sandbox Code Playgroud)
PurchaseOrderComponent
this.purchaseOrderService.postPurchaseOrderCustom(purchaseOrderCustom).subscribe( response => {
console.log("Testing", response);
},
error => {
console.error('errorMsg',error );
}
Run Code Online (Sandbox Code Playgroud)
我这样做的方式与文档中的完成方式相同.请指出我做错了什么.
我的 Mac book pro 上安装了 android studio。我正在运行广告设备。但它只是不工作。我收到错误
Enochs-MBP:platform-tools enochfernandez$ adb devices
-bash: adb: command not found
Run Code Online (Sandbox Code Playgroud)
我已经在我的路径中安装了平台工具,但仍然没有成功。
这是我得到的 echo PATH
Last login: Wed Jan 3 11:00:40 on ttys000
Enochs-MBP:~ enochfernandez$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Enochs-MBP:~ enochfernandez$
Run Code Online (Sandbox Code Playgroud)