我正在做一个svelte应用程序,在那里我创建了一个商店,我正在更新某些事件。我已经用不同的目录在另一个组件中导入了存储。我已经订阅了商店,所以每当在一个地方对商店进行任何更改时,它都应该反映订阅组件中的更改,但不幸的是,它对我不起作用。
The Store
//Both with initial state as an empty array
export const current_embeds = writable([])
export const current_deletes = writable([])
我正在更新商店的脚本
btn.onclick = e =>
我在动作栏上有两个按钮,它们都应该打开弹出窗口,一个不同的弹出窗口-
第一家店。
秒-暂停菜单。
下面是按钮代码:
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu items for use in the action bar
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_activity_actions, menu);
return super.onCrea
例如,在一个项目中,有许多example*.html(example*.blade.php)
common.js
var common = {
movingTest : function(){
document.getElementById("test").addEventListener('click',
function(){
//something to move Test
}
);
}
}
case 1.调用每个文件.
(例如,example1、exa