所以,我正在创建一个Chrome应用(我以前从未做过),我正在尝试使用此html创建一个关闭按钮
self.atLeastOneFilled = ko.computed(function(){
// note: number will need a different validation if zero is allowed (null check, for example)
return self.acc() || self.Id() || self.Name() || self.Number();
});
和这个jQuery
<html>
<head>
<link rel="stylesheet" type="text/css" href="assets/css/index.css">
<script src="assets/thirdParty/jquery-1.11.3.js"></script>
<script src="assets/js/script.js"></script>
</head>
<body>
<div id="topBar">
<a href="#"><img id="close" src="assets/img/close.png" height="35"></a>
</div>
</body>
</html>
但由于某种原因,它只是赢了工作。任何人都可以帮助我吗?