Home > front end >  Project of external interface problem!
Project of external interface problem!

Time:12-13

Gave me an example of this:
Var urlPrefix='https://rms.3jyun.com/szdx3d/';
Var device={location: [113.924967, 22.523762], deviceId: '5 dcb84d0b6cf417bbb2c7'};
Var imageOptions=[
{
LNG: device. The location [0],
Lat: device. The location [1],
Height: 100,
LabelName: device. DeviceId,
ImageName: urlPrefix + 'static/img/3 d/H388N. PNG',
CallbackFunction: 'window. AC. LabelClickCallbackFunction. FHSJAddCall'
}
];
The console. The debug (imageOptions);
//add ICONS callback
External. ParentWindow. Window. AC. LabelClickCallbackFunction [' FHSJAddCall]=function () {
//external. ParentWindow. Window. AC. LocatTo (7, [device. DeviceId], true);
External. ParentWindow. Window. AC. LocatToByWGS84Coord (device. The location [0], device. The location [1], 100);
External. ParentWindow. Window. AC. ShowWindow (4, urlPrefix + 'index. Html#/other/hs3d - alarm? DeviceId=1 ");
};
External. ParentWindow. Window. AC. CreateImageLabelsByWGS84Coord (imageOptions);
I'm a little don't understand, have the person willing to unlock it!

CodePudding user response:

Looks like JS calls the client program interface

The original poster is your problem?
  •  Tags:  
  • Ajax
  • Related