javascript - javascript变量/函数的首字母是什么意思

标签 javascript function datatable tabletools

下面的代码只是一个示例,该代码来自 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/

相关文章:

c# - 在 SqlDataAdapter.Update() 中获取错误消息

javascript - 在 javascript 中使用 webkit-playsinline

javascript - 使用 orderBy 进行 Angularjs 排序对我来说不起作用

javascript - 将 Node.js 请求包装到 Promise 和管道中

javascript - Rails 从一个变量中减去另一个变量

php - JavaScript 在函数之间传递变量并处理它们

java - 当您使用 Jquery 按下按钮时,我试图让页面滚动速度变慢?

带有回调函数的jquery

javascript - 通过在 JavaScript 中传递自定义参数来查询数据表

C# 参数计数不匹配将列表转换为数据表