我想使用 jScrollPane 程序设置 div 的样式,但问题是 div 位于一个信息框中,在设置 div 的样式之前首先需要对其进行初始化。我怎样才能做到这一点?
var infoBox1Settings = {
content: boxText
,disableAutoPan: false
,alignBottom: true
,maxWidth: 0
,pixelOffset: new google.maps.Size(-142, -28)
,zIndex: null
,closeBoxMargin: ''
,closeBoxURL: ''
,infoBoxClearance: new google.maps.Size(1, 1)
,isHidden: false
,pane: 'floatPane'
,enableEventPropagation: false
};
infowindowVenue = new InfoBox(infoBox1Settings);
infowindowVenue.open(map, markersHash['markerVenue'+data.id]);
var searchElement = $(".venue-prof").jScrollPane({showArrows: true});
searchApi = searchElement.data('jsp');