Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在这个 实用教程中,出现了这一行:
colWidths: [55, 80, 80, 80, 80, 80, 80], //can also be a number or a function
有谁知道(并有一个例子)colWidths在传递一个函数时使用该选项?
colWidths
这是一个构造函数选项。如果一个函数是可能的,那么:
colWidths: function(){ return [55, 80, 80, 80, 80, 80, 80]; },