zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    20162309《程序设计与设计结构》第一周学习总结
    20162309《程序设计与数据结构》课程总结
    网络编程与安全实验报告
    四则运算挑战出题
    Android实验报告
    四则运算第二周实验报告
    XP实验报告
    20162319 2017-2018-1 《程序设计与数据结构》第3周学习总结
    20162319 2017-2018-1 《程序设计与数据结构》第1周学习总结
    结对编程-马尔克夫链
  • 原文地址:https://www.cnblogs.com/king-/p/4887005.html
Copyright © 2011-2022 走看看