我有关于jquery中的咆哮通知的问题.我在IE中有这个错误(我知道不是测试你的代码的最佳选择,而只是你在javascript中的错误)"对象不支持这个属性或方法".
notifyBidding.js
$(document).ready(function(){
addNotice();
setTimeout(function(){
addNotice();
},4000);
$('#growl')
.find('.close')
.live('click', function(){
$(this)
.closest('.notice')
.animate({
border: 'none',
height: 0,
marginBottom: 0,
marginTop: '-6px',
opacity: 0,
paddingBottom:0,
paddingTop:0,
queue:false
},1000, function(){
$(this).remove();
});
});
});
function addNotice(){
$('#growl')
.append($('<div id="bidTo"></div>').html($('<img id="bg2" src="notification.png" width="250" height="75"></img><p id="tag2">This item is about to end</p><img id="dp2" src="temporary.jpg"/><p id="bidTime" style="font-family:arial narrow; font-size:12; color:rgb(171,14,21); text-transform:uppercase; position:absolute; top:25px; left:85px"><b>about to end</b></p>')))
.hide()
.appendTo("#growl")
.fadeIn(1000)
.fadeOut(3000)
$('#bidTo').contents().unwrap();
}
Run Code Online (Sandbox Code Playgroud)
的welcome.php
<html>
<head>
<link rel="stylesheet" type="text/css" href="design2.css"/>
<script type="text/javascript" src='script.js'></script>
</head>
<script type="text/javascript" …Run Code Online (Sandbox Code Playgroud) 如何在javascript中传递url中的数组?
我试过这个:
http://codeigniter/index.php/AssistanceMonitoringModule/assistanceMonitoring/getReport?remarks="+stat+"&sortBy="+sortBy+"&fromDate="+fromDate+"&toDate="+toDate+"&area="+area;
其中的备注是PHP中作为数组捕获的stat那个,并且是在...中提供的javascript数组remarks.那有什么解决方案吗?
每当一个时间捕获remarks我使用的PHP $this->input->get_post('remarks')(因为我使用codeigniter)我得到一个错误'为foreach()提供的无效参数
有你的帮助.:)