在添加了 jquery 包的干净流星应用程序中,我正在尝试使用基本的 jquery css 选择器。我究竟做错了什么?非工作示例可以在这里找到:http: //jquery-test.meteor.com/
JavaScript 直接放在生成的template.hello.events
方法下方。
JS:
$("#foo").click( function() {
console.log("clicked!");
});
HTML:
<button id="foo" style="border: 10px">This is a test div</button>