JSP模板
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ include file="/common/includeResource.jsp"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <meta content="yes" name="apple-mobile-web-app-capable"/>
- <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
- <meta content="telephone=no" name="format-detection"/>
- <meta http-equiv="Content-Language" content="zh-CN"/>
- <meta name="Keywords" content="微恋网,免费交友, 免费交友网, 免费征婚交友, 免费征婚, 免费征婚网, 免费征婚交友网, 免费交友中心, 免费婚恋交友">
- <meta name="Description" content="微恋网—完全免费的手机婚恋交友平台!">
- <title>Insert title here</title>
- <link type="text/css" rel="stylesheet" href="<%=ossPath%>/marriage/css/voteCss.css">
- <script type="text/javascript" src="<%=ossPath%>/marriage/web/js/jquery-1.8.3.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- //取标签值转int型
- var i = new Number($("#piao").text());
- $("#confirm").click(function() {
- //GET请求
- $.ajax({
- url : "${common_basePath}/vote/cede.do?userId=${user.id}",
- type : "GET",
- cache : false,
- success : function(data) {
- alert(data);
- }
- });
- //POST请求
- $.ajax({
- url : "${common_basePath}/vote/phone.do",
- type : "POST",
- data : {
- phone : phone,
- userId : "${user.id}"
- },
- cache : false,
- success : function(data) {
- alert(data);
- }
- });
- return false;
- });
- //跳转
- $("#index").click(function() {
- window.location.href=\'${common_basePath}/vote/introduction.do\';
- });
- });
- </script>
- <style>
- </style>
- </head>
- <body>
- <div style="display: none;">
- <img src="<%=ossPath%>/marriage/images/share_vote.jpg"/>
- </div>
- </body>
- </html>
版权声明:本文为king-原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。