Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript协议与jquery冲突_Javascript_Jquery_Html_Ajax_Grails - Fatal编程技术网

Javascript协议与jquery冲突

Javascript协议与jquery冲突,javascript,jquery,html,ajax,grails,Javascript,Jquery,Html,Ajax,Grails,运行Grails应用程序,允许用户通过PDF或Excel显示html表格输出。 javascript原型库与jquery成对调用时的冲突问题 要执行PDF功能,需要原型库: <g:javascript library="prototype" /> } }jQuery的1.4.2版本已经有七年的历史了。为什么它们不能一起使用?因为prototype也使用$作为变量名?显示了什么错误? <script src="https://ajax.googleapis.com/ajax/l

运行Grails应用程序,允许用户通过PDF或Excel显示html表格输出。 javascript原型库与jquery成对调用时的冲突问题

要执行PDF功能,需要原型库:

<g:javascript library="prototype" />
}


}

jQuery的1.4.2版本已经有七年的历史了。为什么它们不能一起使用?因为prototype也使用$作为变量名?显示了什么错误?
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<g:javascript src="jquery/jquery.table2excel.js"/>
function submitPdf() {
var formValues =
    'compCode='+$('cmpCode').value+
    ...
    ...
    ...
    '&pdf=true'+
    '&userEmail='+'${user.email}'
formValues = escape(formValues);
var url = '/${meta(name:'app.name')}/pdf/show?url=/salesAnalysis/analyze?'+formValues+'&pdf=true';
window.location=url;
function displayAsCsv() {
$('.salesAnalysis').table2excel({
   exclude: ".noExl",
   name: "Sales Analysis",
   filename: "SalesAnalysis"
});