jquery ui 1.9.2+ 引起连接target失效问题

在使用jquery ui 1.9.2以上版本时,a标签的target失效了,不能让新连接页面到指定的iframe中,非常头疼。

经过1.9.1 与 1.10.2两版本比较,发现多了以下代码

e("<a>").data("a-b", "a").removeData("a-b").data("a-b")
			&& (e.fn.removeData = function(t) {
				return function(i) {
					return arguments.length ? t.call(this, e.camelCase(i)) : t
							.call(this)
				}
			}(e.fn.removeData)), e.ui.ie = !!/msie [\w.]+/
			.exec(navigator.userAgent.toLowerCase()), e.support.selectstart = "onselectstart" in document
			.createElement("div"), e.fn.extend({
				disableSelection : function() {
					return this.bind((e.support.selectstart
									? "selectstart"
									: "mousedown")
									+ ".ui-disableSelection", function(e) {
								e.preventDefault()
							})
				},
				enableSelection : function() {
					return this.unbind(".ui-disableSelection")
				}
			}),

于是果断删掉,结果就没事了。

但是比较蛋疼的是,看不懂这段代码是什么意思。。。。。。。(js真心灵活啊)

反正现在是没事了,先这么用着吧,不知哪位大牛若能指导下,万分感激!!!



转载于:https://my.oschina.net/fangshaowei/blog/192231

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值