为了账号安全,请及时绑定邮箱和手机立即绑定

乱码问题以及点击发送无反应

http://img1.sycdn.imooc.com//594dbca000013a9a04650524.jpg

顶端都没有乱码   

js文件里的乱码

<%@ page contentType="text/html; charset=UTF-8" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>微信公众号</title>
	<!--讨论区滚动条begin-->
	<link rel="stylesheet" type="text/css" href="<%= basePath %>resources/css/jscrollpane1.css" />
	<script src="<%= basePath %>resources/js/common/jquery-1.8.0.min.js" type="text/javascript"></script>
	<!-- the mousewheel plugin -->
	<script type="text/javascript" src="<%= basePath %>resources/js/common/jquery.mousewheel.js"></script>
	<!-- the jScrollPane script -->
	<script type="text/javascript" src="<%= basePath %>resources/js/common/jquery.jscrollpane.min.js"></script>
	<script type="text/javascript" src="<%= basePath %>resources/js/common/scroll-startstop.events.jquery.js"></script>
	<!--讨论区滚动条end-->
	<script type="text/javascript" src="<%= basePath %>resources/js/front/talk.js" charset="utf-8"></script>
	</head>
	<body>
		<input type="hidden" value="<%= basePath %>" id="basePath"/>
		<br/>
		<div class="talk">
			<div class="talk_title"><span>正在与公众号对话</span></div>
			<div class="talk_record">
				<div id="jp-container" class="jp-container">
					
				</div>
			</div>
			
			<div class="talk_word">
				&nbsp;
				<input class="add_face" id="facial" type="button" title="添加表情" value="" />
				<input id="content" class="messages emotion"   />
				<input class="talk_send" onclick="send();" type="button" title="发送" value="发送" />
			</div>
		</div>
		<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';"></div>
	</body>
</html>

而且点击发送没有反应,

正在回答

2 回答

同  点击发送没有反映

0 回复 有任何疑惑可以回复我~

乱码已解决  但是如果不输入任何内容点击发送会弹出提示对话框  但是如果输入内容点击发送没反应

0 回复 有任何疑惑可以回复我~
#1

Heykeepgoing

乱码问题怎么解决的呢
2017-07-07 回复 有任何疑惑可以回复我~
#2

丶子非鱼 提问者 回复 Heykeepgoing

<script type="text/javascript" src="<%= basePath %>resources/js/front/talk.js" charset="utf-8"></script>在导入JS文件路劲 加charset="utf-8" 在html页面加 <%@ page contentType="text/html; charset=UTF-8" %>
2017-07-07 回复 有任何疑惑可以回复我~
#3

Heykeepgoing 回复 丶子非鱼 提问者

谢谢你的分享?
2017-07-13 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

乱码问题以及点击发送无反应

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号