Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b7745b

Browse files
committed
【 fix 】参数 type array 类型改为大写首字母;review by xiongjj
1 parent4eda031 commit3b7745b

File tree

101 files changed

+277
-278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+277
-278
lines changed

‎src/classic/resource/Android/phonegap/bin/templates/project/assets/www/spec/lib/jasmine-1.2.0/jasmine.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ jasmine.isSpy = function(putativeSpy) {
427427
* large in one call.
428428
*
429429
*@param {string} baseName name of spy class
430-
*@param {array} methodNames array of names of methods to make spies
430+
*@param {Array.<string>} methodNames array of names of methods to make spies
431431
*/
432432
jasmine.createSpyObj=function(baseName,methodNames){
433433
if(!jasmine.isArray_(methodNames)||methodNames.length===0){

‎src/classic/resource/Android/phonegap/cordova-2.7.0.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6265,7 +6265,7 @@ module.exports = {
62656265
*@param {string} message Message to print in the body of the alert
62666266
*@param {function} resultCallback The callback that is called when user clicks on a button.
62676267
*@param {string} title Title of the alert dialog (default: Confirm)
6268-
*@param {array} buttonLabels Array of the labels of the buttons (default: ['OK', 'Cancel'])
6268+
*@param {Array.<string>} buttonLabels Array of the labels of the buttons (default: ['OK', 'Cancel'])
62696269
*/
62706270
confirm:function(message,resultCallback,title,buttonLabels){
62716271
var_title=(title||"Confirm");
@@ -6302,7 +6302,7 @@ module.exports = {
63026302
*@param {string} message Dialog message to display (default: "Prompt message")
63036303
*@param {function} resultCallback The callback that is called when user clicks on a button.
63046304
*@param {string} title Title of the dialog (default: "Prompt")
6305-
*@param {array} buttonLabels Array of strings for the button labels (default: ["OK","Cancel"])
6305+
*@param {Array.<string>} buttonLabels Array of strings for the button labels (default: ["OK","Cancel"])
63066306
*/
63076307
prompt:function(message,resultCallback,title,buttonLabels){
63086308
var_message=(message||"Prompt message");

‎src/common/commontypes/BaseTypes.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export var StringExt = {
164164
* (end)
165165
*@param {string} template - 带标记的字符串将要被替换。参数 template 格式为"${token}",此处的 token 标记会替换为 context["token"] 属性的值。
166166
*@param {Object} [context=window] - 带有属性的可选对象的属性用于匹配格式化字符串中的标记。如果该参数为空,将使用 window 对象。
167-
*@param {array} [args] - 可选参数传递给在 context 对象上找到的函数。
167+
*@param {Array.<number>} [args] - 可选参数传递给在 context 对象上找到的函数。
168168
*@returns {string} 从 context 对象属性中替换字符串标记位的字符串。
169169
*/
170170
format:function(template,context,args){
@@ -436,12 +436,12 @@ export var ArrayExt = {
436436
/**
437437
*@function ArrayExt.filter
438438
*@description 过滤数组,提供了 ECMA-262 标准中 Array.prototype.filter 函数的扩展。详见:{@link http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/filter}
439-
*@param {array} array - 要过滤的数组。
439+
*@param {Array} array - 要过滤的数组。
440440
*@param {function} callback - 数组中的每一个元素调用该函数。</br>
441441
* 如果函数的返回值为 true,该元素将包含在返回的数组中。该函数有三个参数: 数组中的元素,元素的索引,数组自身。</br>
442442
* 如果设置了可选参数 caller,在调用 callback 时,使用可选参数 caller 设置为 callback 的参数。</br>
443443
*@param {Object} [caller] - 在调用 callback 时,使用参数 caller 设置为 callback 的参数。
444-
*@returns {array} callback 函数返回 true 时的元素将作为返回数组中的元素。
444+
*@returns {Array} callback 函数返回 true 时的元素将作为返回数组中的元素。
445445
*/
446446
filter:function(array,callback,caller){
447447
varselected=[];

‎src/common/commontypes/Geometry.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class Geometry {
137137
*@function Geometry.prototype.getVertices
138138
*@description 返回几何图形的所有顶点的列表(需要在子类中实现此方法)。
139139
*@param {boolean} [nodes] - 如果是 true,线则只返回线的末端点,如果 false,仅仅返回顶点,如果没有设置,则返回顶点。
140-
*@returns {array} 几何图形的顶点列表。
140+
*@returns {Array} 几何图形的顶点列表。
141141
*/
142142
getVertices(nodes){// eslint-disable-line no-unused-vars
143143
}

‎src/common/commontypes/Util.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ const Util = {
243243
/**
244244
*@memberOf CommonUtil
245245
*@description 从数组中删除某一项。
246-
*@param {array} array - 数组。
246+
*@param {Array} array - 数组。
247247
*@param {Object} item - 数组中要删除的一项。
248-
*@returns {array} 执行删除操作后的数组。
248+
*@returns {Array} 执行删除操作后的数组。
249249
*/
250250
removeItem:function(array,item){
251251
for(vari=array.length-1;i>=0;i--){
@@ -260,7 +260,7 @@ const Util = {
260260
/**
261261
*@memberOf CommonUtil
262262
*@description 获取某对象在数组中的索引值。
263-
*@param {array} array - 数组。
263+
*@param {Array.<Object>} array - 数组。
264264
*@param {Object} obj - 对象。
265265
*@returns {number} 某对象在数组中的索引值。
266266
*/

‎src/common/commontypes/geometry/Collection.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class Collection extends Geometry {
230230
*@function GeometryCollection.prototype.getVertices
231231
*@description 返回几何对象的所有结点的列表。
232232
*@param {boolean} [nodes] - 对于线来说,仅仅返回作为端点的顶点,如果设为 false,则返回非端点的顶点如果没有设置此参数,则返回所有顶点。
233-
*@returns {array} 几何对象的顶点列表。
233+
*@returns {Array} 几何对象的顶点列表。
234234
*/
235235
getVertices(nodes){
236236
varvertices=[];

‎src/common/commontypes/geometry/LineString.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class LineString extends Curve {
4646
/**
4747
*@function GeometryLineString.prototype.getSortedSegments
4848
*@description 获取升序排列的点坐标对象数组。
49-
*@returns {array} 升序排列的点坐标对象数组。
49+
*@returns {Array} 升序排列的点坐标对象数组。
5050
*/
5151
getSortedSegments(){
5252
varnumSeg=this.components.length-1;
@@ -83,7 +83,7 @@ export class LineString extends Curve {
8383
*@function GeometryLineString.prototype.getVertices
8484
*@description 返回几何图形的所有顶点的列表。
8585
*@param {boolean} [nodes] - 对于线来说,仅仅返回作为端点的顶点,如果设为 false,则返回非端点的顶点。如果没有设置此参数,则返回所有顶点。
86-
*@returns {array} 几何图形的顶点列表。
86+
*@returns {Array} 几何图形的顶点列表。
8787
*/
8888
getVertices(nodes){
8989
varvertices;

‎src/common/commontypes/geometry/LinearRing.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class LinearRing extends LineString {
108108
*@function GeometryLinearRing.prototype.getVertices
109109
*@description 返回几何图形的所有点的列表。
110110
*@param {boolean} [nodes] - 对于线来说,仅仅返回作为端点的顶点,如果设为 false ,则返回非端点的顶点,如果没有设置此参数,则返回所有顶点。
111-
*@returns {array} 几何对象所有点的列表。
111+
*@returns {Array} 几何对象所有点的列表。
112112
*/
113113
getVertices(nodes){
114114
return(nodes===true) ?[] :this.components.slice(0,this.components.length-1);

‎src/common/commontypes/geometry/Point.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class Point extends Geometry {
132132
/**
133133
*@function GeometryPoint.prototype.getVertices
134134
*@description 获取几何图形所有顶点的列表。
135-
*@returns {array} 几何图形的顶点列表。
135+
*@returns {Array} 几何图形的顶点列表。
136136
*/
137137
getVertices(){
138138
return[this];

‎src/common/components/chart/ChartModel.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ export class ChartModel {
245245
*@param {string} serviceType 服务类型
246246
*@param {string} address 地址
247247
*@param {Callbacks} success - 成功回调函数。
248-
*@return{array} [数据源名:数据集名]
249-
*@return{string} 图层名
248+
*@return {Array.<string>} ["数据源名:数据集名"]
249+
*@return{string} 图层名
250250
*/
251251
getDatafromRest(serviceType,address,success){
252252
letme=this,
@@ -506,7 +506,7 @@ export class ChartModel {
506506
*@function ChartModel.prototype._excelData2Feature
507507
*@param content 文件内容
508508
*@param layerInfo 图层信息
509-
*@returns {array} feature的数组集合
509+
*@returns {Array} feature的数组集合
510510
*/
511511
_excelData2Feature(dataContent){
512512
letfieldCaptions=dataContent.colTitles;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp