-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title></title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="Content/bootstrap.min.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row" style="padding:20px;"> | ||
<div class="col-md-12"> | ||
<input type="button" id="test" class="btn btn-info" value="确定" /> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="Scripts/jquery-3.2.1.min.js"></script> | ||
<script src="Scripts/bootstrap.min.js"></script> | ||
<script> | ||
$("#test").click(function () { | ||
|
||
|
||
}) | ||
|
||
function getstudent() { | ||
$.ajax({ | ||
type: "get", | ||
url: "https://172.18.1.75:8243/student/v1/Students", | ||
dataType: "json", | ||
headers: { | ||
"Authorization": "Bearer 183d014c-61c1-3657-9ab3-d7aff9431966", | ||
"Accept": "application/json" | ||
}, | ||
success: function (data) { | ||
// var ret = data.StudentCollection.Student[0]; | ||
var arr = []; | ||
var list = { | ||
"_poststudent_batch_req": { | ||
"_poststudent": arr | ||
} | ||
} | ||
$.each(data.StudentCollection.Student, function (i, item) { | ||
var temp = { | ||
"Name": "" + item.Name + "", | ||
"Age": parseInt(item.Age), | ||
"Sex": parseInt(item.Sex), | ||
"Chinese": parseFloat(item.Chinese), | ||
"Math": parseFloat(item.Math), | ||
"English": parseFloat(item.English) | ||
} | ||
arr.push(temp); | ||
}) | ||
addstudent(list); | ||
}, | ||
error: function (xhr, ajaxOptions, thrownError) { | ||
if (xhr.status == 200) { | ||
|
||
alert(ajaxOptions); | ||
} | ||
else { | ||
alert(xhr.status); | ||
alert(thrownError); | ||
} | ||
} | ||
}) | ||
} | ||
|
||
function addstudent(temp) { | ||
temp = JSON.stringify(temp);//json字符串 | ||
alert(temp); | ||
$.ajax({ | ||
type: "POST", | ||
url: "https://172.18.1.75:8243/203student/v1/Student_batch_req", | ||
dataType: "json", | ||
data: temp, | ||
headers: { | ||
"Content-Type": "application/json",//必须的 | ||
"Authorization": "Bearer 183d014c-61c1-3657-9ab3-d7aff9431966", | ||
"Accept": "application/json" | ||
}, | ||
success: function (data) { | ||
alert(JSON.stringify(data)); | ||
}, | ||
error: function (xhr, ajaxOptions, thrownError) { | ||
if (xhr.status == 200) { | ||
alert(ajaxOptions); | ||
} | ||
else { | ||
alert(xhr.status); | ||
alert(thrownError); | ||
} | ||
} | ||
}) | ||
} | ||
|
||
function test() { | ||
$.ajax({ | ||
type: "get", | ||
url: "http://link.y11t.appnxt.com/v1/trigger/odoo", | ||
dataType: "jsonp", | ||
headers: { | ||
"Accept": "application/json" | ||
}, | ||
data: { | ||
'link': 'c8b51d10ff3e11e7bf9e02420b6a1625', | ||
'action': 'article_list', | ||
'type': '公司新闻' | ||
}, | ||
jsonp: "successCallback", | ||
jsonpCallback: 'successCallback', | ||
username: "", | ||
password: "", | ||
success: function (data) { | ||
alert(JSON.stringify(data)); | ||
}, | ||
error: function (xhr, ajaxOptions, thrownError) { | ||
if (xhr.status == 200) { | ||
|
||
alert(ajaxOptions); | ||
} | ||
else { | ||
alert(xhr.status); | ||
alert(thrownError); | ||
} | ||
} | ||
}) | ||
} | ||
|
||
function successCallback(data) { | ||
alert(JSON.stringify(data)); | ||
} | ||
|
||
function domainTest() { | ||
//document.domain; | ||
var domain = "http://172.18.1.152:8091/YJDD/Index?mark=VXNlck5hbWU9QWRtaW58RGVwYXJ0bWVudD3luILmjpLmsLTlpIR8VXNlcklEPTEzMTEwNjE1MTYzNTYzODk2MjE1NjlkZjNlMjRlfERlcGFydG1lbnRUeXBlPeW4gueuoeWNleS9jXxUcnVlTmFtZT3ns7vnu5/nrqHnkIblkZg"; | ||
var paramIndex = domain.indexOf("?"); | ||
domain = domain.substring(7, paramIndex); | ||
var index = domain.indexOf("/"); | ||
var index2 = domain.lastIndexOf("/"); | ||
if (index2 - index > 5) { | ||
domain = domain.substring(index, index + 5); | ||
} else { | ||
domain = ""; | ||
} | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title></title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="Content/bootstrap.min.css" rel="stylesheet" /> | ||
<style> | ||
.trans { | ||
margin: 0 auto; | ||
border: 1px solid green; | ||
width: 100px; | ||
height: 100px; | ||
-webkit-transition: all ease 0.5s; | ||
-moz-transition: all ease 0.5s; | ||
-o-transition: all ease 0.5s; | ||
transition: all ease 0.5s; | ||
} | ||
|
||
.trans:hover { | ||
transform: scale(1.1,1.1); | ||
box-shadow: 0 0 10px #498deb; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12" style="padding:100px 0;"> | ||
<div class="trans"> | ||
hover效果 | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="Scripts/jquery-3.2.1.min.js"></script> | ||
<script src="Scripts/bootstrap.min.js"></script> | ||
<script> | ||
|
||
$(function () { | ||
|
||
}) | ||
</script> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title></title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="Content/bootstrap.min.css" rel="stylesheet" /> | ||
<style> | ||
.trans { | ||
border: 1px solid green; | ||
height: 100px; | ||
-webkit-transition: background-color linear 0.5s; | ||
-moz-transition: background-color linear 0.5s; | ||
-o-transition: background-color linear 0.5s; | ||
transition: background-color linear 0.5s; | ||
} | ||
.trans:hover { | ||
background-color:green; | ||
color:red; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12 trans"> | ||
<button class="btn btn-info ">测试</button> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="Scripts/jquery-3.2.1.min.js"></script> | ||
<script src="Scripts/bootstrap.min.js"></script> | ||
<script> | ||
|
||
$(function () { | ||
|
||
}) | ||
</script> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 --> | ||
|
||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<!-- | ||
在下例中,“SetAttributes”转换将更改 | ||
“connectionString”的值,以仅在“Match”定位器 | ||
找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。 | ||
<connectionStrings> | ||
<add name="MyDB" | ||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" | ||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> | ||
</connectionStrings> | ||
--> | ||
<system.web> | ||
<compilation xdt:Transform="RemoveAttributes(debug)" /> | ||
<!-- | ||
在下例中,“Replace”转换将替换 | ||
web.config 文件的整个 <customErrors> 节。 | ||
请注意,由于 | ||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。 | ||
<customErrors defaultRedirect="GenericError.htm" | ||
mode="RemoteOnly" xdt:Transform="Replace"> | ||
<error statusCode="500" redirect="InternalError.htm"/> | ||
</customErrors> | ||
--> | ||
</system.web> | ||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
有关如何配置 ASP.NET 应用程序的详细信息,请访问 | ||
http://go.microsoft.com/fwlink/?LinkId=169433 | ||
--> | ||
|
||
<configuration> | ||
|
||
<system.web> | ||
<compilation debug="true" targetFramework="4.5" /> | ||
<httpRuntime targetFramework="4.5" /> | ||
</system.web> | ||
|
||
</configuration> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title></title> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="Content/bootstrap.min.css" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/animate.min.css"> | ||
<style> | ||
.box { | ||
width:100px; | ||
height:100px; | ||
border:1px solid green; | ||
margin:0 auto; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12 text-center" style="padding:100px 0;"> | ||
<div class="box"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="Scripts/jquery-3.2.1.min.js"></script> | ||
<script src="Scripts/bootstrap.min.js"></script> | ||
<script> | ||
|
||
$(function () { | ||
|
||
}) | ||
|
||
$(".box").hover(function () { | ||
$(".box").addClass("animated infinite bounceOutLeft"); | ||
}) | ||
</script> | ||
</body> | ||
</html> |