HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script type="text/javascript" src="../script/api.js"></script>
</head>
<body>
///创建button
<button type="button" onclick="dy()">open</button>
</body>
<script>
function dy(){
///module.json 里面的name/////zxlImage
var zxlImage = api.require("zxlImage");
var param={
totalCount:9,
smallSizeH:125,
smallSizeW:125,
};
zxlImage && zxlImage.open(param, function(ret,err){
if( ret ){ alert( JSON.stringify( ret ) );
}else{
alert( JSON.stringify( err ) ); }
});
}
</script>
</html>