与jquerymobile jalert无法正常工作 [英] jalert with jquerymobile not working

查看:109
本文介绍了与jquerymobile jalert无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的jquery移动项目中使用jAlert.

I want to use jAlert in my jquery mobile project.

下面是我的代码.目录结构非常好.

Below is my code. Directory structure is perfectly fine.

 <link rel="stylesheet" href="libs/jquery.mobile-1.3.2.min.css" />
 <script src="libs/jquery-1.9.1.min.js"></script>
 <script src="libs/jquery-ui.min.js"></script>
    <!-- Core files -->
 <script src="libs/jquery.alerts/jquery.alerts.js" type="text/javascript"></script>
 <link href="libs/jquery.alerts/jquery.alerts.css" rel="stylesheet" type="text/css"            media="screen" />

 <script src="libs/jquery.mobile-1.3.2.min.js"></script>

我遇到以下错误.

未捕获的TypeError:无法读取未定义的属性'msie'

"Uncaught TypeError: Cannot read property 'msie' of undefined "

我想念什么吗?

如何在jQueryMobile中使用jAlert的任何示例?

How to use jAlert with jQueryMobile any example?

推荐答案

根据 $.browser API $.browser.msie不适用于 jQuery 1.9或更高版本,除非 包含jQuery迁移插件 .

According to $.browser API, $.browser.msie will not work with jQuery 1.9 or later, unless jQuery Migrate Plugin is included.

演示

Demo

您需要的是在<head>中添加以下内容.

All you need is adding the below in <head>.

<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

这篇关于与jquerymobile jalert无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆