HTML code
<! DOCTYPE Style Public"-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD">"Viewport"Content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, User-scalable=no"><title>222</title><link rel="stylesheet"Type="Text/css"href="Css/style.css"/> <link rel="stylesheet"Type="Text/css"href="Css/swiper.min.css"/> <script type="Text/javascript"Src="Js/jquery-1.11.1.min.js"></script><script type="Text/javascript"Src="Js/swiper.min.js"></script><script type="Text/javascript"Src="Http://192.168.1.107/h5/AppAjax.js"></script><script type="Text/javascript">$ (document). Ready (function () {//ajax_html (' #con ');});</script>class="Swiper-container"Id="page"> <divclass="Swiper-wrapper swiper-no-swiping"> <!--first screen-<divclass="Swiper-slide"> <div id="Con"style="height:300px; width:300px; margin:0 auto; background: #09F"></div> <input name="1111"Type="Button"Value="Request Ajax"onclick="Ajax ()"/> </div> <!--second screen--<divclass="Swiper-slide">222</div> <!--third screen--<divclass="Swiper-slide">3333</div> <!--end--> </div></div><script type="Text/javascript">varpage =NewSwiper ('#page', { //autoplay:1000//Noswiping:true,});</script></body>
Ajaxapp.js This JS file to be placed on the server
function Ajax () {
Alert (' 666 ');
}
Android for cross-domain