나는 검도 UI 모바일에서 내 미래의 프로젝트를 위해 데모 앱을 만들려고하고있다. 현재, 나는 http://khambuzz.cu.cc/kendoui/test.html에서 찾을 수있는 테스트 응용 프로그램에 대한 검도 UI 모바일의 평가판을 사용하고 있습니다. 여기 내 코드가 있습니다. kendo ui mobile에서 jquery delegate가 작동하지 않습니다!?
<!DOCTYPE html><!--HTML5 doctype-->
<html>
<head>
<title>Mialisto</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" href="assets/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="assets/css/kendo/kendo.mobile.all.min.css" />
<!-- the line below is required for access to the appMobi JS library -->
<script type="text/javascript" src="assets/js/lib/jquery.min.js"></script>
<script src="assets/js/lib/console.js"></script>
<script type="text/javascript" src="assets/js/lib/kendo.mobile.min.js"></script>
<style>
li{
cursor: pointer;
}
</style>
</head>
<body>
<!-- basket template -->
<div data-role="view" data-layout="default" id="autobox">
</div>
<section data-role="layout" data-id="default">
<header data-role="header">
<div data-role="navbar">MIALISTO</div>
</header>
<!--View content will render here-->
<footer data-role="footer">
</footer>
</section>
<script>
$(document).ready(function(){
$('#autobox').append('<div class="mini-autobox"></div>');
$('.mini-autobox').append("<ul ><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li><li>hello</li></ul>");
$('ul').kendoMobileListView();
window.g = $('.mini-autobox').delegate('li', 'click', function(){
alert("say hello to everyone!!!");
});
});
</script>
<script>
/* This sample function records an event ID, as well as an optional
set of name/value pairs as a query string to the statMobi Analytics
logs.*/
function addAnalyticsDataPoint(eventID,queryString)
{
try
{
if (queryString==null) { queryString = ""; }
AppMobi.analytics.logPageEvent("/application/" + eventID +
".event", queryString, "", "", 0, "index.html");
}
catch(e) {}
}
/* Drop this javascript function into the <head> element of your
application's index.html page and call it everywhere you want to
record an analytics event. It takes two parameters. The first is an
event identifier string and the second is an optional key/value query
string parameter. */
</script>
<script type="text/javascript">
var app = new kendo.mobile.Application($(document.body),
{
transition:'slide'
});
</script>
</body>
</html>
이제 문제는 내가 데스크탑 브라우저에서 잘 작동이 테스트에서 JQuery와 대리자를 사용했습니다하지만 모바일 기기 나 태블릿에서 작동하지 않는다는 것입니다. 나는 틀린 것이 확실하지 않다. 데스크톱 브라우저 콘솔에는 오류가 없습니다. 그러나 여전히 모바일 장치에서는 작동하지 않습니다. kendoUI 스크립트가 제거 된 경우에만 데스크탑과 모바일에서 모두 작동합니다. 재판 및 유료 버전과 관련된 것이거나 제 코드에 실수가있는 것입니까? 문제가있는 데스크톱과 모바일 브라우저에서 위의 링크를 살펴보십시오.
감사합니다.
나는 똑같은 문제가있어 잠시 나를 실망 시켰습니다. 내가 무엇이든 찾으면 알려줄거야. – zillaofthegods