DataTables: 不对第1列默认排序

DataTables默认情况下会多管闲事,渲染时会自动按第1列排序。 想禁止它,需要设置一下order选项:



	$( document ).ready(function() {
		//正式初始化table
		table =	$('#myTable').DataTable({
			
				"order": [],  
                ... 
                });
         }); 

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.