主题 : 页面提示$(...).validate is not a function |
级别: 会元
![]() |
1# 发表于:2015-12-04 17:34:12 IP:219.36.*.*
|
||||
---|---|---|---|---|---|
级别: 会元
![]() |
3# 发表于:2015-12-04 17:37:24 IP:219.36.*.*
![]() |
||
---|---|---|---|
级别: 会元
![]() |
4# 发表于:2015-12-04 17:37:56 IP:219.36.*.*
回复第2楼json不能获取,返回的是文本
|
||
---|---|---|---|
级别: 会元
![]() |
6# 发表于:2015-12-04 17:39:00 IP:219.36.*.*
回复第5楼<!-- <script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script> --> <!-- 评论提交公共页面 --> <div class="pl"> <h3 class="clearfix"><span class="plL">相关评论</span><a class="plR" href="${base}/comment.jspx?contentId=${content.id}">查看评论列表</a></h3> <form id="commentForm" action="${base}/comment.jspx" method="post"> <textarea rows="5" cols="100%" name="text" placeholder="请在此处输入评论..."></textarea> <div class="tj clearfix"> <div class="yzm"> 验证码:<input name="captcha" type="text" id="captcha" vld="{required:true}" class="plcode"/> </div> <span class="tu"> <img width="82" height="30" id="commentCaptcha" src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()"/> </span> <input type="hidden" name="contentId" value="${content.id}"/> <a class="btn" href="javascript:commentSubmit();">提交评论</a> </div> </form> <script type="text/javascript"> function commentSubmit(){ $("#commentForm").submit(); } $(function() { Cms.comment(function(data) { if(data.status==0) { alert("评论成功"); location.href=location.href; } else if(data.status==1) { alert("验证码错误"); $("#commentCaptcha").click(); } else if(data.status==2) { alert("内容不存在"); $("#commentCaptcha").click(); } else if(data.status==3) { alert("评论关闭"); $("#commentCaptcha").click(); } else if(data.status==4) { alert("需要登录评论"); $("#commentCaptcha").click(); }else if(data.status==5) { alert("已经评论过,不能重复评论"); $("#commentCaptcha").click(); } else if(data.status==100) { alert("内容不存在"); $("#commentCaptcha").click(); } else if(data.status==101) { alert("评论不能为空"); $("#commentCaptcha").click(); } else { alert("评论失败"); $("#commentCaptcha").click(); } }); }); </script> </div> |
||
---|---|---|---|
级别: 会元
![]() |
8# 发表于:2015-12-04 17:48:46 IP:219.36.*.*
回复第7楼区别就是我的form是通过$("#commentForm").submit()提交的,而模版的是submit类型的input按钮
|
||
---|---|---|---|
1
共1页