<li class="resultsTitle left"><span>Total Results </span><span id="totalResults" class="bold">@totals.TotalResults.ToString("N0")</span></li>
<li class="resultsTitle left"><span>Company Results </span><span id="companyResults" class="bold">@totals.CompanyCount.ToString("N0")</span></li>
$(document).ready(function () {
$("#companyResults").click(function () {
alert( hello world );
});
$("#totalResults").click(function () {
alert( hello world );
});
});
我们尝试了几件事来捕捉点击事件。 我们做错了什么吗?