我正在使用谷歌图片搜索API.直到昨天它正在运行,但今天早上它说"此API不再可用"
是正式关闭,还是我身边的任何错误
请求
https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&q=cute+kittens
响应
{"responseData": null, "responseDetails": "This API is no longer available.", "responseStatus": 403}
Run Code Online (Sandbox Code Playgroud) let {
getTableProps,
getTableBodyProps,
headerGroups,
prepareRow,
page,
canPreviousPage,
canNextPage,
nextPage,
previousPage,
state: { pageIndex, sortBy }
} = useTable(
{
columns,
data,
sortable: {dsiabledSort}
manualPagination: true,
manualSortBy: true
},
useSortBy,
usePagination
);
Run Code Online (Sandbox Code Playgroud)
dsiabledSort 是变量,它可以是 false 或 true,它设置为 true,但表仍然有排序...我也尝试过简单
sortable:false
Run Code Online (Sandbox Code Playgroud)
但还是不行
任何帮助谢谢
我有3个收藏:
现在我需要获取用户详细信息的用户详细信息
我的代码是:
return this.dbCollectionService.userOrganizationCollection.snapshotChanges()
.pipe(map(res => {
return res.map(data => {
var userData = data.payload.doc.data()
let userDetails : any;
if (userData.userDetails) {
this.angularFirestore.doc(userData.userDetails).valueChanges().subscribe(res => {
userDetails = res;
console.log(userDetails);
});
return { id, ...userDetails }
}).filter( f => f.organizationId != undefined && f.organizationId == orgId)
}));
Run Code Online (Sandbox Code Playgroud)
这能够正确地控制结果,但不能返回数据.
可以从数据引用获取数据花费时间并且返回语句执行得更早.
我想实现一个jQuery动画回调方法进度或步骤,
但在任何一种情况下,我都收到以下错误:
NS_ERROR_IN_PROGRESS: Component returned failure code: 0x804b000f (NS_ERROR_IN_PROGRESS) [nsICacheEntry.dataSize]
Run Code Online (Sandbox Code Playgroud)
我搜索了很多,但无法在上下文中找到任何内容,我有点卡在这里,请建议什么可能导致此错误?
在小提琴我尝试了步骤和进展,它在那里工作,但不能让它在我的代码中工作,我只是看,有一个人在jquery动画中遇到这样的错误?
示例代码是:
this.taskHandle.find('img').stop(true, true).animate({
//todo//
top: vtop, // this.taskHandle.outerHeight(),
//'top': 0 - $('.target.upper').height(),
width: 0,
opacity: 0
}, {
duration: 2000,
step: function(){
console.log('I am called');
}
},
$.proxy(function() {
// some css clearing method
}, {
// some further actions after animation completes
})
);
Run Code Online (Sandbox Code Playgroud) 是否可以取消HttpClient GET web request in Windows 8.我正在寻找一个解决方案来取消我的网页请求,如果用户从页面按回键.在我的应用程序中,我使用的static class是创建Web请求.
Alos我正在使用MVVM Light,并static viewmodels在应用程序内.
在当前情况下,即使用户按下后退按钮,vm保持活动和回叫也会到达并执行VM.
所以我正在寻找一个解决方案来取消背面的请求.
我有以下代码
export class FormComponent implements OnInit {
name: string;
empoloyeeID : number;
empList: Array<{name: string, empoloyeeID: number}> = [];
constructor() {
}
ngOnInit() {
}
onEmpCreate(){
console.log(this.name,this.empoloyeeID);
this.empList.push.apply(this.name,this.empoloyeeID);
this.name ="";
this.empoloyeeID = 0;
}
}
Run Code Online (Sandbox Code Playgroud)
但这个投掷错误
CreateListFromArrayLike在非对象上调用
还有什么方法可以创建自定义类和使用的对象列表,而不是在这里定义数组.
谢谢
我有两种形式。
。dialogForm 中有一个标签。当我单击 MainForm 中的按钮时,dialogForm 将打开。但dialogForm中的标签是空白的。实际上没有时间加载。我想检查dialogForm是否已完全加载,然后进程可以在MainForm中继续。例如:
dialogForm tempFrm = new dialogForm();
tempFrm.Show(); // I want to wait till the dialogForm is fully loaded. Then continue to "while" loop.
while(..)
{
...
}
Run Code Online (Sandbox Code Playgroud) 我有以下代码库
Audiosource.onloadeddata = function () {
$("#txtAudioDuration").val(Math.round(Audiosource.duration));
};
Run Code Online (Sandbox Code Playgroud)
当我使用.mp3,.mp4,.ogg,.wav音频持续时间被正确填充,但是当我使用mpg或mpeg音频文件时,没有加载持续时间.
我试过转换mpg和mpeg音频文件,我没有原始的mpg或mpeg音频文件.是否有任何链接下载这些文件.
任何建议都将受到高度赞赏.
谢谢
我有两个锚标签
<ul class="switchNav">
<li [ngClass]="!hidePanel2 ? 'active' : ''">
<a href="javascript:void(0)" (click) ="hideShowPanel(1)">panel 1</a>
</li>
<li [ngClass]="!hidePanel1? 'active' : ''">
<a href="javascript:void(0)" (click) ="hideShowPanel(2)">panel 2</a>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)
.ts
hidePanel2: boolean = true;
hidePanel1: boolean = false;
hideShowPanel(check: number) {
if (check == 1) {
this.hidePanel2 = true;
this.hidePanel1 = false;
}
else {
this.hidePanel1 = false;
this.hidePanel2 = true;
}
}
Run Code Online (Sandbox Code Playgroud)
当我单击锚标记时,它将引发错误
ExpressionChangedAfterItHasBeenCheckedError
它正在运行,但是由于团队成员更新了任何模块,因此它停止了工作,
我在Google上搜索了很多,但无法正常运行
请帮忙
谢谢
我有以下查询
selectedUser$: AngularFirestoreDocument<any>;
this.selectedUser$ = this.userCollection.ref.where('uid', '==', key)
Run Code Online (Sandbox Code Playgroud)
投掷错误
类型“查询”不可分配给类型“AngularFirestoreDocument”。“查询”类型中缺少属性“ref”。
我试过
this.selectedUser$ = this.userCollection.ref.where('uid', '==', key).get()
Run Code Online (Sandbox Code Playgroud)
没有成功
基本上,我希望查询返回 firestore 文档
angular ×4
angularfire2 ×2
javascript ×2
jquery ×2
.net ×1
c# ×1
c#-5.0 ×1
css ×1
file-upload ×1
google-api ×1
html5 ×1
html5-audio ×1
react-table ×1
reactjs ×1
typescript ×1
windows-8 ×1
winforms ×1