【发布时间】:2017-01-11 07:41:29
【问题描述】:
我正在使用本机页面转换做简单的 html 和 javascript.. 我已经添加了插件:cordova plugin add https://github.com/Telerik-Verified-Plugins/NativePageTransitions .. 我按照博客中的所有步骤进行操作..但是我的转换页面不起作用..这是我的代码..对不起,我还是新手..
我的代码:
<html>
<head>
<title>2PAGE</title>
<script type="text/javascript">
function slide(href) {
window.plugins.nativepagetransitions.slide({
"href" : "3page.html"
});
}
</script>
</head>
<body>
<button onclick="slide('right', '#3page')">Press Me</button>
</body>
</html>
这段代码正确吗?请帮帮我..我遵循以下指令:http://www.telerik.com/blogs/native-performance-in-a-hybrid-app-with-native-page-transitions
【问题讨论】:
标签: javascript html cordova telerik phonegap-plugins