加上一段JS后 后面的JS都调用不了jquery 调用不了
加上的JS$(document).ready(function(){/*Search*/$('.sea_btn').bind('click',function(){url...
加上的JS
$(document).ready(function() {
/* Search */
$('.sea_btn').bind('click', function() {
url = 'index.php?route=product/search';
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}
location = url;
});
$('input[name=\'filter_name\']').focus().keydown(function(e) {
if (e.keyCode == 13) {
url = 'index.php?route=product/search';
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}
location = url;
}
}); 展开
$(document).ready(function() {
/* Search */
$('.sea_btn').bind('click', function() {
url = 'index.php?route=product/search';
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}
location = url;
});
$('input[name=\'filter_name\']').focus().keydown(function(e) {
if (e.keyCode == 13) {
url = 'index.php?route=product/search';
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}
location = url;
}
}); 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询