"Ext.applyIf"기능 및 이중 파이프에 대한 참조는이 기사를 참조하십시오.ExtJS 4 : ExtJS 코드에서 두 개의 파이프가 적용되는 것은 무엇입니까?
http://docs.sencha.com/core/manual/content/utility.html
http://homepage.ntlworld.com/kayseycarvey/controlflow4.html
누군가는이 논리에서는 ExtJS 프레임 워크에서 무엇을하고 있는지 설명 할 수 있습니까? 파이프 (특히)가있는 첫 번째 라인에서 제 해석이 정확한지 확인하고 싶습니다.
var params = Ext.applyIf(operation.params || {}, this.extraParams || {}), request;
params = Ext.applyIf(params, this.getParams(params, operation));
if (operation.id && !params.id) {
params.id = operation.id;
}
ASP.NET ASMX 사용자 지정 서버 프록시 클래스에서 촬영 :
Ext.define('Ext.ux.AspWebAjaxProxy', {
extend: 'Ext.data.proxy.Ajax',
require: 'Ext.data',
buildRequest: function (operation) {
var params = Ext.applyIf(operation.params || {}, this.extraParams || {}), request;
params = Ext.applyIf(params, this.getParams(params, operation));
if (operation.id && !params.id) {
params.id = operation.id;
}
params = Ext.JSON.encode(params);
request = Ext.create('Ext.data.Request', {
params: params,
action: operation.action,
records: operation.records,
operation: operation,
url: operation.url
});
request.url = this.buildUrl(request);
operation.request = request;
return request;
}
});