我們顯示的結果數空結果顯示基於「從&最新」搜索,我們所面臨的問題,當有空的結果,比其顯示「-1」的結果但我們要顯示爲 「0」顯示計數爲-1,而不是0
HTML代碼
<div class="delete_grid" >
<form name="frmSearch" method="post" action="">
<input type="text" id="post_at" name="post_at" />
<input type="text" id="post_at_to_date" value=""name="post_at_to_date" />
<input type="submit" name="search" value="search" id="searchButton">
</form>
</div>
JavaScript代碼是
var gridOption={
container : 'myGrid',
};
var mygrid=new Sigma.Grid(gridOption);
Sigma.Util.onLoad(Sigma.Grid.render(mygrid));
$(".delete_grid").append("Number of Designs Sold : "+mygrid.dataset.getSize());
我們使用六西格瑪插件:http://pastebin.com/ftfL6qnU
我沒有使用sigma,但是indexOf()是一個普通的函數,當它沒有找到任何東西時返回-1。 'indexOf()'通常用於查找或計算事物。嘗試在您的代碼或您正在使用的庫函數中搜索這些事件。 –
是的,我們在插件中有indexof代碼,你可以在這裏檢查插件代碼:http://pastebin.com/ftfL6qnU – rqwerty
我發現了4個事件,我現在需要做的事情...... – rqwerty