17模块-nativeObj【管理系统原生对象】

用于创建 原生的轮播图 input 按钮 线条 图片等


 原生对象用的最多的也就只有  轮播图了,其他 均使用  html写

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title>心得</title>
<script type="text/javascript">
document.addEventListener("plusready",one);
function one(){
var view = new plus.nativeObj.ImageSlider('xhrs',
{top:'100px',left:'0px',height:'120px',width:'100%',
images:[
{src:'http://kindeditor.net/images/logo.png'},
{src:'http://kindeditor.net/images/logo.png'}
]});
view.show();
}
</script>
</head>
<style>
</style>
<body>创建原生轮播图对象
</body>
</html>

猜你喜欢

转载自www.cnblogs.com/xhrs/p/9328272.html