我在使用IE 9时遇到以下错误(Chrome和FireFox效果很好):
SCRIPT438:对象不支持属性或方法'removeExpression'jquery.simplemodal.1.4.2.min.js,第16行字符133
在Iframe中调用简单模态.jQuery.min(1.7.1)包含在Iframe中的SimpleModal(1.4.2)之前.
负责显示模态对话框的代码:
function OpenContextByClass(cssClass, posY, posX) {
var winHeight = $(window).height();
var winWidth = $(window).width();
$('.' + cssClass).modal({
overlayClose: true,
position: [posY, posX],
appendTo: 'form',
onOpen: function (dialog) { dialog.overlay.fadeIn('fast', function () { dialog.container.slideDown('fast', function () { dialog.data.fadeIn('fast'); }); }); },
onShow: function (d) {
var self = this;
self.container = d.container[0];
var title = $('.' + cssClass, self.container);
title.show();
$('.' + cssClass, self.container).show();
setTimeout(function () {
var currentPositionX = posX;
var currentPositionY = posY;
var currentWidth …Run Code Online (Sandbox Code Playgroud)