firstpage 2015/5/21
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="firstPage.aspx.cs" Inherits="HraWeb.firstPage" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css" media="screen">
.pricing_table
{
line-height: 65%;
font-size: 12px;
margin: 0 auto;
width: 80%;
max-width: 800px;
padding-top: 10px;
}
.price_block
{
text-align: center;
color: #fff;
float: left;
list-style-type: none;
transition: all 0.25s;
position: relative;
box-sizing: border-box;
margin-bottom: 10px;
border-bottom: 1px solid transparent;
}
/*Price heads*/
.pricing_table h5
{
text-transform: uppercase;
padding: 5px 0;
background: #333;
margin: -10px 0 1px 0;
}
/*Price tags*/
.price
{
display: table;
background: #444;
width: 100%;
height: 70px;
}
.price_figure
{
font-size: 24px;
text-transform: uppercase;
vertical-align: middle;
display: table-cell;
}
.price_number
{
font-weight: bold;
display: block;
}
.price_tenure
{
font-size: 11px;
}
/*Features*/
.features
{
background: #DEF0F4;
color: #000;
}
.features li
{
padding: 8px 15px;
border-bottom: 1px solid #ccc;
font-size: 11px;
list-style-type: none;
height: 100%;
}
.price_block
{
width: 25%;
}
.footer
{
padding: 15px;
background: #DEF0F4;
}
.price_block:hover
{
box-shadow: 0 0 0px 5px rgba(0, 0, 0, 0.5);
transform: scale(1.04) translateY(-5px);
z-index: 1;
border-bottom: 0 none;
}
.price_block:hover .price
{
background: linear-gradient(#DB7224, #F9B84A);
box-shadow: inset 0 0 45px 1px #DB7224;
}
.price_block:hover h5
{
background: #222;
}
.price_block:hover .action_button
{
background: linear-gradient(#F9B84A, #DB7224);
}
@media only screen and (min-width : 480px) and (max-width : 768px)
{
.price_block
{
width: 50%;
}
.price_block:nth-child(odd)
{
border-right: 1px solid transparent;
}
.price_block:nth-child(4)
{
clear: both;
}
.price_block:nth-child(odd):hover
{
border: 0 none;
}
}
@media only screen and (min-width : 768px)
{
.price_block
{
width: 25%;
}
.price_block
{
border-right: 1px solid transparent;
border-bottom: 0 none;
}
.price_block:last-child
{
border-right: 0 none;
}
.price_block:hover
{
border: 0 none;
}
}
#ReportEg
{
height: 50%;
margin-top: 30px;
}
#QuickIoc a:hover
{
font-weight: 900;
background: #c8c8c8;
}
#QuickIoc li
{
margin-left: 5%;
float: left;
}
#QuickIoc a
{
display: inline-block;
height: 100%;
border: 0px;
padding: 0px;
margin: 0px;
}
.information
{
margin-left: 5%;
}
.Menuinformation li
{
float: left;
}
</style>
<script type="text/javascript" src="./ReportEg/Visifire2.js"></script>
<link href="/IndexCeshi/CSS/index.css" rel="stylesheet" type="text/css" />
<link href="/IndexCeshi/CSS/link.css" rel="stylesheet" type="text/css" />
<link href="/IndexCeshi/CSS/indexCss.css" rel="stylesheet" type="text/css" />
<link href="menu/first.css" rel="stylesheet" type="text/css" />
<link href="CSS/liquidcarousel.css" rel="stylesheet" type="text/css" />
<link href="CSS/main.css" rel="stylesheet" type="text/css" />
<link href="CSS/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="CSS/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery.liquidcarousel.pack.js" type="text/javascript"></script>
<script src="/Scripts/tabs.js" type="text/javascript"></script>
<script src="Scripts/jquery.newsTicker.js" type="text/javascript"></script>
</head>
<body>
<form>
<div class="maincon">
<div class="box box1">
<div class="box_h2">
<ul>
<li class="on"><a href="#"><span>正在处理的任务</span></a></li>
</ul>
</div>
<div class="box_con">
<div class="green">
<div class="container">
<div class="scrollNews">
<ul id="nt-example1">
<li>市场历史数据已导入完毕.. <a href="#">详情</a></li>
<li>路透资讯数据已完成更新.. <a href="#">详情</a></li>
<li>交易合约盈亏最新更新.. <a href="#">详情</a></li>
<li>建设银行,厦门分行交易员KSBC002远期利率交易有50比数据等待你的审批,请尽快... <a href="#">详情</a></li>
</ul>
</div>
</div>
</div>
<div id="liquid" class="liquid" >
<span class="previous"></span>
<div class="wrapper" >
<ul>
<li><a href="#" title="image 05"><img src="data:images/D_data.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 1</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_manage.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 2</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_system.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 3</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_deploy.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 4</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_data.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 5</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_manage.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 6</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_system.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 7</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_deploy.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 8</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_data.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 9</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_manage.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 10</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_system.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 11</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_deploy.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 12</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_system.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 13</Lable></li>
<li><a href="#" title="image 05"><img src="data:images/D_deploy.png" width="88" height="100" alt="image 05" border="0" /></a><br/><Lable> 14</Lable></li>
</ul>
</div>
<span class="next"></span>
</div>
<span class="date"></span>
<p>
<a></a>
</p>
</div>
</div>
<div class="box box1">
<div class="box_h2 tmpbox">
<ul>
<li class="on" id='l1'><a href="javascript:void(0);" onclick="showDiv('xianc',3,'l1')">
<span>上海银行间同业拆借利率</span></a></li>
<li id='l2'><a onclick="showDiv('djs',9,'l2');" href="javascript:void(0)"><span>人民币汇率中间价</span></a></li>
</ul>
</div>
<div class="box_con tmptoatal" style="padding-left: 3%">
<ul id="infoTitleW">
<li style="margin-left: 70%; margin-top: 2px; font-size: 10px;">
<%=infoTitleW%>
09:30:00 </li>
</ul>
<div id="content">
<%=MKT%>
</div>
<ul class="ull02" style="display: none" id="djs">
<div style="width: 100%; min-width: 240px; overflow-x: hidden; overflow-y: hidden;">
<iframe id="RMBCentralParity" name="RMBCentralParity" scrolling="no" marginheight="0"
marginwidth="0" src="http://www.chinamoney.com.cn/static/html/column/frontpage/baseprice/rmbcentralparity/RMBCentralParity.html"
frameborder="0" height="200" width="290"></iframe>
</div>
</ul>
<ul class="ul02" style="display: none" id="zs">
</ul>
<p>
<a></a>
</p>
</div>
</div>
<div class="box box1">
<div class="box_h2">
<ul>
<li class="on"><a href="#"><span>受理统计</span></a></li>
</ul>
</div>
<div class="box_con" style="height: 100%;">
<div class="box box1">
<div id="VisifireChart1" style="margin-bottom:10px; margin-top:8px">
</div>
<script language="javascript" type="text/javascript">
var widthOfChart = window.screen.width*0.35;
var heightOfChart = 350;
var dataXml = "";
dataXml += "<vc:Chart xmlns:vc='clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts' Width='"+widthOfChart+"' Height='"+heightOfChart+"' Theme='Theme1' BorderThickness='0' View3D='False' Watermark='False' ScrollingEnabled='False'>";
dataXml += "<vc:Chart.Titles><vc:Title Text='分析图2'/></vc:Chart.Titles>";
dataXml += "<vc:Chart.AxesX><vc:Axis Title='直方图横坐标'><vc:Axis.AxisLabels> <vc:AxisLabels Enabled='false' Angle='45' /></vc:Axis.AxisLabels></vc:Axis></vc:Chart.AxesX>";
dataXml += "<vc:Chart.AxesY><vc:Axis Title='频数值' /></vc:Chart.AxesY>";
dataXml += "<vc:Chart.Series>";
dataXml += "<vc:DataSeries LegendText='' RenderAs='Column' LabelEnabled='true' LabelStyle='OutSide' Cursor='Hand'>";
dataXml += "<vc:DataSeries.DataPoints>";
<%foreach (DataRow row in vChartDataSet.Tables[0].Rows){%>
dataXml += "<vc:DataPoint AxisXLabel='" + <%=row["Tick_Value"].ToString()%> + "' YValue='" + <%=row["Frequency_Value"].ToString()%> + "'/>";
<% }%>
dataXml += "</vc:DataSeries.DataPoints>";
dataXml += "</vc:DataSeries>";
dataXml += "</vc:Chart.Series>";
dataXml += "</vc:Chart>";
dataXml += "";
var width = $("#json").width();
// alert(widthOfChart+","+heightOfChart);
//
if (typeof (dataXml) != "undefined") {
var vChart = new Visifire2('/SL.Visifire.Charts.xap', widthOfChart,heightOfChart);
vChart.setDataXml(dataXml);
vChart.render('VisifireChart1');
}
</script>
</div>
</div>
</div>
<div class="box box1">
<div class="box_h2">
<ul id="ReportUl">
<li id="r1" class="on"><a onclick="showReport('j1','r1','gridPager1');" href="javascript:void(0)"><span>交易单位风险值计算结果汇总</span></a></li>
<li id="r2" ><a onclick="showReport('j2','r2','gridPager2');" href="javascript:void(0)"><span>投资组合风险值计算结果汇总</span></a></li>
<li id="r3" ><a onclick="showReport('j3','r3','gridPager3');" href="javascript:void(0)"><span>金融工具风险值计算结果汇总</span></a></li>
<li id="r4" ><a onclick="showReport('j4','r4','gridPager4');" href="javascript:void(0)"><span>交易对手风险值计算结果汇总</span></a></li>
<a class="slider">
<img src="data:images/RightDirection.jpg" width="30" height="30" /></a>
</ul>
</div>
<div class="box_con" id="ReportEg">
<div class="rp" id="j1" >
<table id="jqYiel1">
</table>
</div>
<div class="rp" id="j2" >
<table id="jqYiel2">
</table>
</div>
<div class="rp" id="j3" >
<table id="jqYiel3">
</table>
</div>
<div class="rp" id="j4" >
<table id="jqYiel4">
</table>
</div>
<div id="gridPager1">
</div>
<div id="gridPager2">
</div>
<div id="gridPager3"></div>
<div id="gridPager4"></div>
<script language="javascript" type="text/javascript">
$("#jqYiel1").jqGrid({
url: "/ReportEg/RskBookAttriResultManage.aspx?_method=firstSearch",
datatype: "json",
width: "90%",
height: "50%",
autowidth: true,
colNames: ["法人代表", "风险值", "利率风险值", "汇率风险值", "增量风险值", "边际风险值","部件风险值"],
colModel: [
{ name: 'legal_entity_name', index: 'legal_entity_name',width:200, sortable:false},
{ name: 'valueatrisk', index: 'valueatrisk',width:200, frozen: true, sortable:false},
{ name: 'interest_rate_valueatrisk', index: 'interest_rate_valueatrisk', width:200 },
{ name: 'fx_rate_valueatrisk', index: 'fx_rate_valueatrisk', frozen: true,sortable:false },
{ name: 'incremental_valueatrisk', index: 'incremental_valueatrisk' },
{ name: 'marginal_valueatrisk', index: 'marginal_valueatrisk'},
{ name: 'component_valueatrisk', index: 'component_valueatrisk'}
],
sortname: 'legal_entity_name',
viewrecords: true,
rowNum: 13,
rowList: [5,10,15],
pager: "#gridPager1",
}).navGrid('#gridPager1', { edit: false, add: false, del: false })
$("#jqYiel2").jqGrid({
url: "/ReportEg/RskBookAttriResultManage.aspx?_method=secondSearch",
datatype: "json",
width: "90%",
height: "50%",
autowidth: true,
colNames: ["组合名称", "风险值", "利率风险值", "汇率风险值", "增量风险值", "边际风险值","部件风险值"],
colModel: [
{ name: 'portfolio_name', index: 'portfolio_name',width:200, sortable:false},
{ name: 'valueatrisk', index: 'valueatrisk',width:200, frozen: true, sortable:false},
{ name: 'interest_rate_valueatrisk', index: 'interest_rate_valueatrisk', width:200 },
{ name: 'fx_rate_valueatrisk', index: 'fx_rate_valueatrisk', frozen: true,sortable:false },
{ name: 'incremental_valueatrisk', index: 'incremental_valueatrisk' },
{ name: 'marginal_valueatrisk', index: 'marginal_valueatrisk'},
{ name: 'component_valueatrisk', index: 'component_valueatrisk'}
],
sortname: 'portfolio_name',
viewrecords: true,
rowNum: 13,
rowList: [5,10,15],
pager: "#gridPager2",
}).navGrid('#gridPager2', { edit: false, add: false, del: false })
$("#jqYiel3").jqGrid({
url: "/ReportEg/RskBookAttriResultManage.aspx?_method=thirdSearch",
datatype: "json",
width: "90%",
height: "50%",
autowidth: true,
colNames: ["金融工具名称", "风险值", "利率风险值", "汇率风险值", "增量风险值", "边际风险值","部件风险值"],
colModel: [
{ name: 'instrument_type_name', index: 'instrument_type_name',width:200, sortable:false},
{ name: 'valueatrisk', index: 'valueatrisk',width:200, frozen: true, sortable:false},
{ name: 'interest_rate_valueatrisk', index: 'interest_rate_valueatrisk', width:200 },
{ name: 'fx_rate_valueatrisk', index: 'fx_rate_valueatrisk', frozen: true,sortable:false },
{ name: 'incremental_valueatrisk', index: 'incremental_valueatrisk' },
{ name: 'marginal_valueatrisk', index: 'marginal_valueatrisk'},
{ name: 'component_valueatrisk', index: 'component_valueatrisk'}
],
sortname: 'instrument_type_name',
viewrecords: true,
rowNum: 13,
rowList: [5,10,15],
pager: "#gridPager3",
}).navGrid('#gridPager3', { edit: false, add: false, del: false })
$("#jqYiel4").jqGrid({
url: "/ReportEg/RskBookAttriResultManage.aspx?_method=fourSearch",
datatype: "json",
width: "90%",
height: "50%",
autowidth: true,
colNames: ["交易对手", "风险值", "利率风险值", "汇率风险值", "增量风险值", "边际风险值","部件风险值"],
colModel: [
{ name: 'counterparty_name', index: 'counterparty_name',width:200, sortable:false},
{ name: 'valueatrisk', index: 'valueatrisk',width:200, frozen: true, sortable:false},
{ name: 'interest_rate_valueatrisk', index: 'interest_rate_valueatrisk', width:200 },
{ name: 'fx_rate_valueatrisk', index: 'fx_rate_valueatrisk', frozen: true,sortable:false },
{ name: 'incremental_valueatrisk', index: 'incremental_valueatrisk' },
{ name: 'marginal_valueatrisk', index: 'marginal_valueatrisk'},
{ name: 'component_valueatrisk', index: 'component_valueatrisk'}
],
sortname: 'counterparty_name',
viewrecords: true,
rowNum: 13,
rowList: [5,10,15],
pager: "#gridPager4",
}).navGrid('#gridPager4', { edit: false, add: false, del: false })
</script>
</div>
</div>
<div class="clear">
</div>
</div>
<script>
//---------------------------------设置自动滚动新闻-----------------------------------------------------------
$('a[href*=#]').click(function (e) {
var href = $.attr(this, 'href');
if (href != "#") {
$('html, body').animate({
scrollTop: $(href).offset().top - 81
}, 500);
}
else {
$('html, body').animate({
scrollTop: 0
}, 500);
}
return false;
});
$(window).load(function () {
$('code.language-javascript').mCustomScrollbar();
});
var nt_example1 = $('#nt-example1').newsTicker({
row_height: 20,
max_rows: 3,
duration: 1500
});
function showReport(d, l, p) {
// alert("d=" + d + " l=" + l);
$(".rp").hide();
$("#" + d).show();
$("#ReportUl li").removeClass("on");
$("#" + l).addClass("on");
}
//--------------------------自动滚动新闻设置结束--------------------------------------------------------------------
function showDiv(id, status, l) {
$(".tmptoatal ul").hide();
$("#" + id).show();
if (id == "xianc") {
$(".features").show();
$("#infoTitleW").show();
}
$("#more").attr("href", "ToDoView.aspx?Status=" + status);
$(".tmpbox li").removeClass("on");
$("#" + l).addClass("on");
}
function showDetail(url) {
window.parent.PICKER.offset.max = true;
url = UTIL.getAppRoot() + url;
window.parent.PICKER.open(url, null, null, 800, 500);
}
//判断浏览器的Method
function getOs() {
var OsObject = "";
if (navigator.userAgent.indexOf("MSIE") > 0) {
return "MSIE"; //IE
}
if (isFirefox = navigator.userAgent.indexOf("Firefox") > 0) {
return "Firefox"; //Firefox
}
if (isSafari = navigator.userAgent.indexOf("Safari") > 0) {
return "Safari"; // google
}
if (isCamino = navigator.userAgent.indexOf("Camino") > 0) {
return "Camino";
}
if (isMozilla = navigator.userAgent.indexOf("Gecko/") > 0) {
return "Gecko";
}
}
function setIconStyle() {
var osType = getOs();
var iconImageList = document.getElementsByTagName("img");
if (iconImageList != null) {
for (i = 0; i < iconImageList.length; i++) {
if (iconImageList[i].name == 'iconImage') {
if ('Firefox' == osType || 'Safari' == osType) {
iconImageList[i].style.marginTop = "6px";
}
if ('MSIE' == osType) {
iconImageList[i].style.marginTop = "6px";
}
}
}
}
}
setIconStyle();
function Open(text, url, height) {
if (parent.$('#tabs').tabs('exists', text)) {
parent.$('#tabs').tabs('select', text);
} else {
parent.$('#tabs').tabs('add', {
title: text,
closable: true,
content: createTabContent(url),
url: url
});
}
}
//滑动报表
function ScrolReport() {
var $RP = $('#ReportUl');
$RP.find('li').show();
var $lineWidth=parseInt($RP.find('li:last').width())*2;
$RP.animate({ 'marginRight': -$lineWidth + 'px' }, 1, function () {
$RP.css({ margin: 0 }).find('li:first').appendTo($RP).end().find('li:eq(1)').appendTo($RP);
$("#ReportUl li").removeClass("on");
$RP.find('li:first').hide();
$RP.find('li:eq(1)').hide();
$RP.find("li:eq(2)").addClass("on");
});
}
//滚动新闻
function scrollNews() {
var $news = $('div.scrollNews>ul');
var $lineHeight = $news.find('li:first').height();
$news.animate({ 'marginTop': -$lineHeight + 'px' }, 600, function () {
$news.css({ margin: 0 }).find('li:first').appendTo($news);
});
}
$(function () {
$('#ReportUl').find('li:last').hide();
$('#ReportUl').find('li:eq(-2)').hide();
$(".slider").click(function () {
ScrolReport();
});
//页面刚加载的时候投资组合风险值结果汇总不显示
$(".rp").hide();
$("#j1").show();
var height = $('div.scrollNews>ul').find('li:first').height() * 3;
// alert(height);
$('.container').height(height);
var scrollTimer = null;
var delay = 1500;
//1.鼠标对新闻触发mouseout事件后每2s调用scrollNews()
//2.鼠标对新闻触发mouseover事件后停止调用scrollNews()
//3.初次加载页面触发鼠标对新闻的mouseout事件
$('div.scrollNews').hover(function () {
clearInterval(scrollTimer);
}, function () {
scrollTimer = setInterval(function () {
scrollNews();
}, delay);
}).triggerHandler('mouseout');
$("#relaod").click(function () {
var url = "firstPage.aspx?_method=getHtml";
$.post(url, function (data) {
$("#content").html(data);
});
})
$('#liquid').liquidcarousel({
height: 150, //the height of the list
duration: 100, //the duration of the animation
hidearrows: true //hide arrows if all of the list items are visible
});
$(".wrapper").width($(".wrapper").width() - 1);
$(".wrapper ul li").width($(".wrapper ul li").width() - 1);
$(".wrapper ul li a img").click(function () {
var height = ComputGridHeight(100);
parent.$('#tabs').height(height);
parent.$('#tabs').width(height);
var url = $(this).attr("src").split('/')[1];
switch (url) {
case "D_data.png": Open("ABC1", "/BAS/BasGlobalTimeZoneManage.aspx", height);
break;
case "D_deploy.png": Open("ABC2", "/BAS/BasBusinessRegionManage.aspx", height);
break;
case "D_manage.png": Open("ABC3", "/BAS/BasContractTypeManage.aspx", height);
break;
case "D_system.png": Open("ABC4", "/BAS/BasSceneTypeManage.aspx", height);
break;
}
});
});
</script>
</form>
</body>
</html>
firstpage 2015/5/21的更多相关文章
- 2015.12.21~2015.12.24真题回顾!-- HTML5学堂
2015.12.21~2015.12.24真题回顾!-- HTML5学堂 山不在高,有仙则名!水不在深,有龙则灵!千里冰封,非一日之寒!IT之路,须厚积薄发!一日一小练,功成不是梦!小小技巧,尽在HT ...
- 【我的书】Unity Shader的书 — 文件夹(2015.12.21更新)
写在前面 感谢全部点进来看的朋友.没错.我眼下打算写一本关于Unity Shader的书. 出书的目的有以下几个: 总结我接触Unity Shader以来的历程,给其它人一个借鉴.我非常明确学Shad ...
- Murano Weekly Meeting 2015.07.21
会议时间: 2015.07.21 主持人: Kirill Zaitsev, core from Mirantis 会议摘要: 1.murano client和murano dashboard升级到y ...
- Clover KextsToPatch 使用方法 2015.10.21
Clover KextsToPatch 使用方法 2015.10.21 前些天,因为 Thinkpad X230 BIOS 白名单限制,给她换了一块 ar9285 无线网卡,只是因为这块网卡正好可 ...
- ant常用的内置 task转自https://www.cnblogs.com/baicj/archive/2015/12/21/5063608.html
ant 例如: <target name="callProjectB"> <echo message="In projectA calling proj ...
- Daily Scrum (2015/10/21)
今天可以说是项目正式开始的第一天,由于大家缺乏做团队项目的经验,对TFS的使用都还不太熟悉,所以今天大家的主要工作是熟悉TFS的使用和对代码进行初步的理解.我们预计需要2-3天时间来理解透彻源代码.以 ...
- 2015.4.21 实现一般免登陆,微博QQ分享,字体自适应等
1.实现一般的登录验证和免登陆: 解决方法:node方法代码,nodeJS实现的session模块,不完整,但能用,仅供参考. 语言无所谓,session的机制都是一样的,实现不一样而已,: 2. ...
- 新花生壳内网版2.3 + Tomcat7 搭建自己的网站(2015.01.21)
网上很多资料,问题主要是出在 tomcat 的访问上而已: 如下总结一下: 首先在 花生壳 官网(http://hsk.oray.com/)注册一个帐号,每个帐号可以领取一个免费域名 然后下载安装新版 ...
- 编写可维护的javascript代码--- 2015.11.21(基本格式化)
1.1 每行的编码需要控制在80字符. 1.2 改用:的地方必须用上. 1.3 缩进用2个制表符,不过4个也可以. 1.4 当代码一行显示不全需要折行显示,这里我暂且假定缩进为4个字符. 1.5 如果 ...
随机推荐
- 使用 Windows 10 中的加速度计(Accelerometer,重力传感器)
在做 UWP 应用开发的时候还有什么理由可以用到加速度计呢?场景很多啦,比如做游戏,做类似 Surface Hub 那种一边旋转,一边所有内容跟着一起转的效果. Windows 10 UWP 中的加速 ...
- 每天进步一点点——Linux中的线程局部存储(一)
转载请说明出处:http://blog.csdn.net/cywosp/article/details/26469435 在Linux系统中使用C/C++进行多线程编程时,我们遇到最多的就是对同 ...
- 输入和输出(read,recv,recvmsg...和write,writev,writemsg)
每一个TCP套接口有一个发送缓冲区,可以用SO_SNDBUF套接口选项来改变这个缓冲区的大小. 应用进程调用 write时,内核从应用进程的缓冲区中拷贝所有数据到套接口的发送缓冲区.如果套接口的发送缓 ...
- Android UiAutomator环境搭建及使用(QQ交流群:490451176)
Android自动化框架常用的有很多,本身也提供了很多自动化测试框架,每个都有其优势和不足 .当然对于我们做UI自动化测试来说,简单易用即可. UiAutomator也是Android提供的自动化测试 ...
- python实现判断一个字符串是否是合法IP地址
#!usr/bin/env python #encoding:utf-8 ''''' __Author__:沂水寒城 功能:判断一个字符串是否是合法IP地址 ''' import re def jud ...
- Jenkins 基础入门
原文地址:Jenkins 基础入门 博客地址:http://www.extlight.com 一.前言 Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作, ...
- 【monkeyrunner】monkeyrunner脚本录制和回放
脚本录制 1.连接你已经打开调试模式的ANDROID设备或模拟器,输入adb devices 2.运行录制脚本.在cmd窗口输入 monkeyrunner recorder.py #recorder. ...
- VMware vSphere Client下增加虚拟机磁盘空间的方法
随着系统运维时间的增长,磁盘就日益的损耗,如果遇到虚拟机报磁盘空间不足怎么办?还好,我们可以通过磁盘阵列增加磁盘空间,然后扩容到虚拟机中去. 对于linux虚拟机磁盘扩容的方案有两种,一种就是原有的实 ...
- Introduction to Spring Data MongoDB
Introduction to Spring Data MongoDB I just announced the new Spring 5 modules in REST With Spring: & ...
- requests and BeautifulSoup
requests Python标准库中提供了:urllib.urllib2.httplib等模块以供Http请求,但是,它的 API 太渣了.它是为另一个时代.另一个互联网所创建的.它需要巨量的工作, ...