TypeError:$ .param.querystring不是Yii中的函数 [英] TypeError: $.param.querystring is not a function in Yii
本文介绍了TypeError:$ .param.querystring不是Yii中的函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用文本字段进行搜索
I am using textfield for search
<?php echo CHtml::textField('companysearch', '',
array("onkeyup" => "$.fn.yiiGridView.update('company-table', {type: 'GET',
data: {companyName: this.value}});",
"class" => "txt-srh", "placeholder" => "Search")); ?>
执行此操作时出现错误 TypeError:$ .param.querystring不是函数
While doing this I am getting error TypeError: $.param.querystring is not a function
我可以从中逃脱
推荐答案
检查是否在页面中多次包含了jquery.js.我遇到了同样的错误,原因是yii已经添加了jquery.js脚本,因此无需自己添加它.
check if you included jquery.js more than once in your page. I had the same error and the reason was that yii already added the jquery.js script so no needs to include it yourself.
这篇关于TypeError:$ .param.querystring不是Yii中的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文