js的传参问题
define(["/bi/medicare/javascript/Echarts/config.js"], function() {
"use strict";
function D_DayPicker()
{
};
D_DayPicker.prototype.draw = function( oControlHost )
{
var el = oControlHost.container;
var sHtml = '<div class="f-right"><span class="t-write02 t-12 f-left t-right10 t-lineheight36">选择日期</span><div class="box-radius-search t-right10"><input class="form-control date_picker" id="date-selcet-date" data-position="left top" data-language="zh" data-range="false" data-date-format="yyyy-mm-dd" value="2017-01-01" style="height:25px;"></div></div>';
el.innerHTML = sHtml;
this.oControlHost =oControlHost;
$(document).ready(function(){
$("#date-selcet-date").datepicker({onselect:function(ss){
}});
});
};
D_DayPicker.prototype.pickedFunc = function(ss){
//todo
//...
var fullDateA=this.cmpFullDateStr(ss);
this.oControlTxt_a.setValues( [{"use":fullDateA,"display":fullDateA}] );
this.oControlHost.finish();
};
return D_DayPicker;
});
想把SS这个参数传入传入下面的function中,怎么改呢?现在传不进去。