我想得到一个api,然后再打电话给另一个.在javascript中明智地使用这样的代码吗?
fetch(url, {
method: 'get',
}).then(function(response) {
response.json().then(function(data) {
fetch(anotherUrl).then(function(response) {
return response.json();
}).catch(function() {
console.log("Booo");
});
});
})
.catch(function(error) {
console.log('Request failed', error)
});
Run Code Online (Sandbox Code Playgroud) 我正在拼写检查我用 android studio 开发的项目。我有多个文件要检查拼写。我的意思是多个字符串资源文件和一些布局(我知道直接在布局中使用字符串是一种不好的做法,但有一点用法并且以前开发过)。
有没有办法只找到拼错的单词?(就像我们在整个项目中找到一个词一样 )。我搜索了很多,没有找到任何解决方案。
提前致谢
注意:我的项目仅针对英语开发。我不使用任何其他语言
Textview
我正在尝试为我的正常not添加色调AppCompatTextView
。我可以在 xml 中添加 backgroundTint 来使用app:backgroundTint
它。有没有办法以编程方式为Textview
自己做同样的事情。(我的目标是Kitkat支持)
注:我还有更多Textview
。所以改变所有这些都会很费力
setSupportButtonTintList
仅适用于AppCompat
控件。在KitkatsetBackgroundTintList
中没有显示任何结果
java android android-appcompat android-layout android-design-library