我在测试我的应用时遇到问题.我有2个项目,用户可以购买.几天前我不知道我应该消费购买.今天我每次尝试买一件物品时都会收到代码7(物品已经拥有),因为我没有消耗它.我可以做些什么来消费旧的购买?
ADDED:开发人员控制台上的两个项目都没有"管理"
我在项目中有如下代码
type ActionT = 'add' | 'put' | 'get'
function _dbRequest(action: ActionT) {
...
const store: IDBObjectStore = _getStore(...)
const request = store[action](...) // <- Error here
...
}
Run Code Online (Sandbox Code Playgroud)
它工作正常,但是当我开始用流类型覆盖它时,我遇到了一个错误:
IDBObjectStore
[1].Flow(InferError) indexeddb.js(54, 30): [1] 中 缺少声明预期键/值类型的索引签名IDBObjectStore
请注意IDBObjectStore是一种嵌入式类型,如果可能的话,我不想覆盖它。除了 cast to 之外,还有什么方法可以处理它any
吗?
是否可以知道硬件设置按钮的位置?我想为我的程序编写一个介绍,并向用户展示如何使用它的功能.
我的应用程序中有一些可关闭的视图,标题中有一个关闭按钮。我想让这个按钮无边框和小。
编码:
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?android:attr/borderlessButtonStyle"
android:layout_margin="0dp"
android:padding="0dp"
android:src="@android:drawable/ic_menu_close_clear_cancel"/>
Run Code Online (Sandbox Code Playgroud)