本机页面转换 + phonegap + cordova

Native Page Transitions + phonegap + cordova

我正在使用原生页面转换做简单的 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

根据代码文件,没有默认的 cordova.js 设置,我认为因此这个插件不适合你。

我的演示项目运行良好。

所以请添加

 <script src="cordova.js"></script>

让我知道它是否有效。