SP.List.fields Property
SharePoint 2010
Gets a value that specifies the collection of all fields in the list.
var value = SP.List.get_fields();
Gets a value that specifies the collection of all fields in the list.
var value = SP.List.get_fields();