下面的代码只是一个示例,该代码来自 jQuery DataTable。 我只是想知道oTable中的“o”,bServerSide中的“b”等的含义是什么。它们有某种意义吗?
var oTable = $('#unis').dataTable({
//"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "index.php?...&<?php echo JSession::getFormToken() . '=1' ?>",
"sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'l><'span6'p>>",
"sPaginationType": "bootstrap",
"aoColumns":[
{"bSortable": false},
{"bSortable": false},
{"bSortable": true},
{"bSortable": true},
{"bSortable": false},
],
"oTableTools": {
"aButtons": [ "delete selected", "export" ]
}
});
最佳答案
看起来像Systems Hungarian notation :
In Systems Hungarian notation, the prefix encodes the actual data type of the variable.
bServerSide -> b -> bool
sAjaxSource -> s -> string
oTableTools -> o -> object
aButtons -> a -> array
关于javascript - javascript变量/函数的首字母是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24263604/