js 练习

时间:2022-12-29 17:41:39
 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="req_form.aspx.cs" Inherits="req_form" %>
<%@ Assembly Name="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="CodeArt.SharePoint.CamlQuery, Version=1.0.0.0, Culture=neutral, PublicKeyToken=43536cfde91ea799" %>
<%@ Assembly Name="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" %>
<asp:content id="ContentHead" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<link href="../css/commom_shenergy_form.css" rel="stylesheet" />
<link href="../css/jquery-ui.css" rel="stylesheet" />
<link href="../themes/default/easyui.css" rel="stylesheet" />
<link href="../css/alert.css" rel="stylesheet" />
<link href="../css/Huploadify.css" rel="stylesheet" />
<script src="../js/jquery-1.11.3.min.js"></script>
<script src="../js/jquery-ui-1.10.4.custom.min.js"></script>
<script src="../js/jquery.easyui.min.js"></script>
<script src="../js/jquery-ui-timepicker-addon.js"></script>
<script src="../js/jquery.ui.datepicker-zh-CN.js"></script>
<script src="../js/jquery-ui-timepicker-zh-CN.js"></script>
<script src="../js/jquery-ui-timepicker-addon.js"></script>
<script src="../js/jquery.Huploadify.js"></script>
<script src="../js/jquery.form.js"></script>
<script src="../js/jquery.alert.js"></script>
<script src="../js/commom_shenergy.js"></script>
<link href="../css/king-table.css" rel="stylesheet" />
<style>
.right .tableDiv span
{
display: inline-block;
width: 85px;
font-family: 'Microsoft YaHei';
} </style>
<script type="text/javascript">
$(function ()
{
$('.left>ul>li').click(function (event){$(this).toggleClass("leftblock").next('ul').slideToggle(300).siblings("ul").slideUp(300); });
$('.check>.currentdefault').click(function (event) { $(this).toggleClass('tianjia').siblings(); });
$('.HYGM button').click(function (event) { $(this).toggleClass('current').siblings().removeClass('current');});
$('.cspan1 button').click(function (event) { $(this).toggleClass('current').siblings().removeClass('current'); });
$('.textBottom button').click(function (event) { $(this).toggleClass('current').siblings().removeClass('current');});
$(".currentdefault").click(function (event) { $(this).toggleClass("current").siblings().removeClass("current")});
$(".check>.currentdefault").click(function (event) { $(this).toggleClass("current").siblings(); });
$("#hide").click(function () {
$(".c_div_showhidenotify").hide();
}); $("#show").click(function () {
$(".c_div_showhidenotify").show();
});
$("input[name='act_start_time'],input[name='act_stop_time']").datetimepicker();//datetimepicker
meetroomQuery();
function meetroomQuery() { var urlajax = "../Handler/HandlerComMeetRoomsList.ashx?MeetRoomsFlag=All"
$.ajax(
{
url: urlajax,//submit to HandlerMeetRoomApplyForm.ashx page
type: "post",
async: false,
dataType: "json",
data: { method: "Add" },
success: function (arr) {
var en = {}; for (var i = 0; i < arr.length; i++) {
$('.cselect2').append("<option value='" + arr[i].MeetRoomsId + "'>" + arr[i].MeetRoomsName + "</option>");
}
//$(".cselect2").prepend("<option value='0' selected='selected'>--请选择--</option>"); },
error: function (XMLHttpRequest, textStatus, errorThrown) { console.log("新增失败=>" + textStatus); alert('新增失败!'); }
});
}
});
</script>
</asp:content>
<asp:content id="Content1" contentplaceholderid="PlaceHolderMain" runat="Server">
<div class="wrap">
<div class="contentDiv">
<div class="inCon">
<div class="right">
<div class="InRight"></div>
<div class="tableDiv" style="height:200%">
<span class="spanhead c_margintop">会议室名称:</span>
<select class="cselect2"></select><br>
<span class="spanhead c_margintop">会议时间:</span>
<input name="act_start_time" type="text"id="meetingStartTime" class="text-box"
value="2016/12/28 16:08" placeholder="开始时间≥当前时间" title="开始时间≥当前时间" readonly="readonly" style="cursor:pointer;"/>
<input name="act_stop_time" type="text" id="meetingStopTime" class="text-box"
value="2016/12/30 16:08" placeholder="结束时间>开始时间" title="结束时间>开始时间" readonly="readonly" style="cursor:pointer;"/><br>
<span class="spanhead c_margintop">会议要求:</span>
<textarea id="textid1" placeholder="会议安排要求">会议要求</textarea>
<br>
<span class="spanhead c_margintop">会议备注:</span>
<textarea id="textid2" placeholder="会议备注">会议备注</textarea> <br>
<span class="spanhead c_margintop">会议人员:</span><br />
<div style="width:1200px;height:300px;margin-left: 80px;">
<div style="margin:10px 0">
<a href="#" class="easyui-linkbutton" onclick="insert()">添加内部人员</a>
<a href="#" class="easyui-linkbutton" onclick="insert2()"style="margin-left: 320px;">添加外部人员</a>
</div>
<div class="aa" style="width: 450px; float: left;">
<table id="tt" ></table>
</div>
<div class="aa" style="width: 550px;float: left">
<table id="tt2" ></table>
</div>
</div>
<div class="c_div_IssendNotify" id="id_div_IssendNotify">
<span class="c_span_IssendNotifyTitle">会议通知:</span>
<span class="currentdefault current" id="show">是</span>
<span class="currentdefault" id="hide">否</span>
<div class="c_div_showhidenotify" style="margin-left: 80px;">
<textarea class="c_txtr_title" placeholder="通知标题">通知标题</textarea><br />
<textarea class="c_txtr_content" placeholder="通知内容">通知内容</textarea><br />
</div>
</div>
<div> </div> <div id="id_div_upload"class="c_div_upload" >上传材料:</div> <%--<div class="mybtn" id="btnUpdate">更新会议室</div>--%>
<div class="c_div_save_submit_return" style="text-align:center;line-height:18px">
<div class="c_div_save diyi"" id="id_div_save" >保存会议申请</div>
<div class="c_div_submit dier" id="id_div_submit">提交会议申请</div>
<div class="c_div_return disan" id="id_div_return"onclick="javascript:history.go(-1);">返回</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script> var url = window.location.href;
var entity = {};
function GetQueryString(name)
{
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var urlpara = GetQueryString("MeetAppId");
console.log("==>modify para====");
if (urlpara != null && urlpara.toString().length >= 1) //
{
console.log("==>entry form_Update_pages!");
$(function () {
Query();
$(".InRight").text("会议申请更新");
$(".c_div_submit").text("提交会议申请更新");
$(".c_div_submit").bind("click", submitUpdate);
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
console.log("entry form_query!");
function Query() {
var urlajax = "../Handler/HandlerMeetingApplicantList.ashx?MeetAppFlag=Detail&MeetAppId=" + urlpara;
modifyPara();
$.ajax({
url: urlajax,//Query
success: function (arr)
{
alert(arr)
for (var i = 0; i < arr.length; i++)
{
$(".cselect1").val(en.MeetRoomsName);
$(".cselect2").val(en.MeetRoomsCheckEmployer);
var span1 = $("#span1").find("span");
for (var j = 0; j < span1.length; j++)
{
if ($(span1[j]).text() == en.MeetRoomsState)
{
$(span1[j]).toggleClass('current').siblings().removeClass('current');
}
}
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert('查询错误!');
}
});
}
console.log("==>entry form_Update submit");
function submitUpdate() {
console.log("test submitUpdate start!");
modifyPara();
entity.MeetRoomsId = urlpara;
var urlajax = "../Handler/HandlerMeetingApplicant.ashx?MeetAppFlag=Update&"
$.ajax({
url: urlajax,//submit to HandlerMeetRoomApplyForm.ashx page
type: "post",
async: false,
dataType: "text",
data: { method: "Update",req: JSON.stringify(entity) },
success: function (arr)
{
if (arr)
{
console.log("更新返回值:" + arr);
window.location.href = './req_list.aspx';
}
},
error: function (XMLHttpRequest, textStatus, errorThrown)
{
alert('错误!');
}
});
}
});
}
else
{
console.log("=>entry form_Add_pages!");
$(function ()
{
$("input[name='act_start_time'],input[name='act_stop_time']").datetimepicker();//datetimepicker
$(".InRight").text("新增会议申请");
$(".c_div_submit").text("提交会议申请申请");
$(".c_div_submit").bind("click", submitDo);
function submitDo()
{
var entity = {};
var MeetRoomsId = $(".cselect2").val();//会议室名称
if (MeetRoomsId == 0 || MeetRoomsId==null)
{
alert("请选择会议室"); return false;
}
var MeetAppStartT = $("#meetingStartTime").val();
if (MeetAppStartT =="" || MeetAppStartT == null) {
alert("请选择开始时间"); return false;
}
var MeetAppEndT = $("#meetingStopTime").val();
if (MeetAppEndT == "" || MeetAppEndT == null) {
alert("请选择结束时间"); return false;
}
var MeetAppFixedClaims = $("#textid1").val();
if (MeetAppFixedClaims == "" || MeetAppFixedClaims == null) {
alert("请填写会议要求"); return false;
}
var MeetAppRemark = $("#textid2").val();
if (MeetAppRemark == "" || MeetAppRemark == null) {
alert("请填写会议内容"); return false;
}
var MeetAppSendMeetNotice = $(".c_div_IssendNotify > .current").html();
var MeetNoticeTitle = $(".c_txtr_title").val();
var MeetNoticeContent = $(".c_txtr_content").val();
if (MeetAppSendMeetNotice == "是")
{
if (MeetNoticeTitle == "" || MeetNoticeTitle == null) {
alert("请填写会议通知标题"); return false;
}
if (MeetNoticeContent == "" || MeetNoticeContent == null) {
alert("请填写会议通知内容"); return false;
}
}
entity.MeetRoomsId = MeetRoomsId;
entity.MeetRoomsId = MeetRoomsId,
entity.MeetAppStartT = MeetAppStartT,
entity.MeetAppEndT = MeetAppEndT,
entity.MeetAppFixedClaims = MeetAppFixedClaims,
entity.MeetAppRemark = MeetAppRemark,
entity.MeetNoticeTitle = MeetNoticeTitle,
entity.MeetNoticeContent = MeetNoticeContent,
entity.MeetAppSendMeetNotice = MeetAppSendMeetNotice; /*-------------内部人员----------------------------*/
var rowsData = $('#tt').datagrid('getRows');
var insideusers = [];
if (rowsData == "" || rowsData == null) { alert("请选择会议内部人员"); return false; }
$.each(rowsData, function (i) {
var loc = {
"MeetInsiderTitle": rowsData[i].MeetInsiderTitle,
"MeetInsiderPeo": rowsData[i].MeetInsiderPeo
};
insideusers.push(loc);
});
entity.ListInsider = insideusers; /*-------------外部人员----------------------------*/
var rowsDatatt2 = $('#tt2').datagrid('getRows');
var outsideusers = [];
$.each(rowsDatatt2, function (i) {
var loc = {
"MeetOutsidersTitle": rowsDatatt2[i].MeetOutsidersTitle,
"MeetUnitName": rowsDatatt2[i].MeetUnitName,
"MeetOutsidersTel": rowsDatatt2[i].MeetOutsidersTel,
"MeetOutsidersMail": rowsDatatt2[i].MeetOutsidersMail
};
outsideusers.push(loc);
});
entity.ListOutsiders = outsideusers; /*-------------会议通知----------------------------*/
entity.MeetNotice = {};
entity.MeetNotice.MeetNoticeTitle = MeetNoticeTitle;
entity.MeetNotice.MeetNoticeContent = MeetNoticeContent;
/*-------------会议材料----------------------------*/
var MeetMaterialId = "";
entity.MeetMaterialId = MeetMaterialId;
var urlajax = "../Handler/HandlerMeetingApplicant.ashx?MeetAppFlag=Add"
$.ajax(
{
url: urlajax,//submit to HandlerMeetRoomApplyForm.ashx page
type: "post",
async: false,
dataType: "json",
data: { method: "Add", req: JSON.stringify(entity) },
success: function (arr)
{
alert("新增成功11=>" + urlajax + JSON.stringify(entity).toLocaleString() +
"==>" + "返回标识符:" + arr.ResultMsg + "返回结果:" + arr.ResultMsg);
// window.location.href = './req_list.aspx'; },
error: function (XMLHttpRequest, textStatus, errorThrown) {
console.log("新增失败=>" + textStatus); alert('新增失败!');
}
});
}
});
} </script>
<script>
$(function()
{
$('#id_div_upload').Huploadify({
dataType: "json",
auto: true,
fileTypeExts: '*.*;',
multi: true,
formData: { key: 123456, key2: 'vvvv' },
fileSizeLimit: 9999,
showUploadedPercent: true,//是否实时显示上传的百分比,如20%
showUploadedSize: true,
removeTimeout: 9999999,
uploader: '../Handler/HandlerMeetingMaterial.ashx?MeetMaterialFlag=Add',
onUploadStart: function () {
console.log('开始上传');
},
onInit: function () {
console.log('初始化');
},
onUploadComplete: function (result) { var str = JSON.stringify(result);
console.log(str);
// var str = eval('[{ResultMsg: "OK", ResultFlag: "5"}]');
//$.each(str, function () {
// alert(this.ResultMsg + this.ResultFlag);
//}); },
onUploadSuccess: function (result)
{
var str = JSON.stringify(result);
alert("上传成功!"+str);
},
onDelete: function (file) {
console.log('删除的文件:' + file);
console.log(file);
}
}); });
$(function()
{
$('#tt').datagrid(
{
title: '内部人员',
//iconCls: 'icon-edit',
width:420,
height: 250,
singleSelect: true,
idField: 'itemid',
// url: '../Handler/HandlerMeetingInsider.ashx?MeetInsiderFlag=Add',
columns: [[
//{ field: 'No', title: '序号', width: 60 },
{ field: 'MeetInsiderTitle', title: '姓名', width:100, editor: 'text', align: 'center'},
{ field: 'MeetInsiderPeo', title: '会议人员', width: 120, align: 'center', editor: 'text' },
{
field: 'action', title: '操作', width: 80, align: 'center',
formatter: function (value, row, index) {
if (row.editing) {
var s = '<a href="#" onclick="saverow(this)">保存</a> ';
var c = '<a href="#" onclick="cancelrow(this)">取消</a>';
return s + c;
} else {
var e = '<a href="#" onclick="editrow(this)">编辑</a> ';
var d = '<a href="#" onclick="deleterow(this)">删除</a>';
return e + d;
}
}
}
]],
onBeforeEdit: function (index, row) {
row.editing = true;
updateActions(index);
},
onAfterEdit: function (index, row) {
row.editing = false;
updateActions(index);
},
onCancelEdit: function (index, row) {
row.editing = false;
updateActions(index);
}
}); });
$(function () {
$('#tt2').datagrid(
{
title: '外部人员',
//iconCls: 'icon-edit',
width: 500,
height: 250,
singleSelect: true,
idField: 'itemid',
// url: '../Handler/HandlerMeetingOutsiders.ashx?MeetOutsidersFlag=Add',
columns: [[
//{ field: 'No', title: '序号', width: 50 },
{ field: 'MeetOutsidersTitle', title: '姓名', width: 100, editor: 'text', align: 'center' },
{ field: 'MeetUnitName', title: '单位名称', width: 100, editor: 'text', align: 'center' },
{ field: 'MeetOutsidersTel', title: '手机号', width: 100, editor: 'text', align: 'center' },
{ field: 'MeetOutsidersMail', title: '邮箱', width: 80, editor: 'text', align: 'center' }, {
field: 'action', title: '操作', width: 80, align: 'center',
formatter: function (value, row, index) {
if (row.editing) {
var s = '<a href="#" onclick="saverow2(this)">保存</a> ';
var c = '<a href="#" onclick="cancelrow2(this)">取消</a>';
return s + c;
} else {
var e = '<a href="#" onclick="editrow2(this)">编辑</a> ';
var d = '<a href="#" onclick="deleterow2(this)">删除</a>';
return e + d;
}
}
}
]],
onBeforeEdit: function (index, row) {
row.editing = true;
updateActions2(index);
},
onAfterEdit: function (index, row) {
row.editing = false;
updateActions2(index);
},
onCancelEdit: function (index, row) {
row.editing = false;
updateActions2(index);
}
}); });
function updateActions(index) {
$('#tt').datagrid('updateRow', {
index: index,
row: {}
});
}
function getRowIndex(target) {
var tr = $(target).closest('tr.datagrid-row');
return parseInt(tr.attr('datagrid-row-index'));
}
function editrow(target) {
$('#tt').datagrid('beginEdit', getRowIndex(target));
}
function deleterow(target) {
$.messager.confirm('确定', '你确定吗?', function (r) {
if (r) {
$('#tt').datagrid('deleteRow', getRowIndex(target));
}
});
}
function saverow(target) {
$('#tt').datagrid('endEdit', getRowIndex(target)); }
function cancelrow(target) {
$('#tt').datagrid('cancelEdit', getRowIndex(target));
}
function insert()
{
var row = $('#tt').datagrid('getSelected');
if (row) {
var index = $('#tt').datagrid('getRowIndex', row);
} else {
index = 0;
}
$('#tt').datagrid('insertRow', {
index: index,
row: {
status: 'P'
}
});
$('#tt').datagrid('selectRow', index);
$('#tt').datagrid('beginEdit', index);
}
function updateActions2(index) {
$('#tt2').datagrid('updateRow', {
index: index,
row: {}
});
}
function getRowIndex2(target) {
var tr = $(target).closest('tr.datagrid-row');
return parseInt(tr.attr('datagrid-row-index'));
}
function editrow2(target) {
$('#tt2').datagrid('beginEdit', getRowIndex2(target));
}
function deleterow2(target) {
$.messager.confirm('确定', '你确定吗?', function (r) {
if (r) {
$('#tt2').datagrid('deleteRow', getRowIndex2(target));
}
});
}
function saverow2(target) {
$('#tt2').datagrid('endEdit', getRowIndex2(target)); }
function cancelrow2(target) {
$('#tt2').datagrid('cancelEdit', getRowIndex2(target));
}
function insert2() {
var row = $('#tt2').datagrid('getSelected');
if (row) {
var index = $('#tt2').datagrid('getRowIndex', row);
} else {
index = 0;
}
$('#tt2').datagrid('insertRow', {
index: index,
row: {
status: 'P'
}
});
$('#tt2').datagrid('selectRow', index);
$('#tt2').datagrid('beginEdit', index);
}
function addMeetingInsider() { var rowsData = $('#tt').datagrid('getRows');
var json = [];
var loc;
$.each(rowsData, function (i) {
loc = { "MeetInsiderTitle": rowsData[i].MeetInsiderTitle,
"MeetInsiderPeo": rowsData[i].MeetInsiderPeo };
json.push(loc);
});
json = JSON.stringify(json); //转换成json数据
alert(json);
var urlajax = "../Handler/HandlerMeetingInsider.ashx?MeetInsiderFlag=Add";
$.ajax(
{
url: urlajax,
type: "post",
async: false,
dataType: "json",
data: { method: "Add", req: JSON.stringify(json) },
success: function (arr) {
console.log("新增成功=>"
+ urlajax + JSON.stringify(entity).toLocaleString() +
"==>" + "返回标识符:" + arr.ResultMsg + "返回结果:" + arr.ResultMsg);
if (arr.ResultFlag == "0") {
alert("新增成功");
}
else { alert("未知错误"); }
},
error: function (XMLHttpRequest, textStatus, errorThrown)
{ console.log("新增失败=>" + textStatus); alert('新增失败!'); }
});
}
function addMeetingOutsiders()
{
var rowsData = $('#tt2').datagrid('getRows');
var json = [];
var loc;
$.each(rowsData, function (i) {
loc = { "MeetOutsidersTitle": rowsData[i].MeetOutsidersTitle,
"MeetUnitName": rowsData[i].MeetUnitName,
"MeetOutsidersTel": rowsData[i].MeetOutsidersTel,
"MeetOutsidersMail": rowsData[i].MeetOutsidersMail
};
json.push(loc);
});
json = JSON.stringify(json); //转换成json数据
alert(json);
var urlajax = "../Handler/HandlerMeetingOutsiders.ashx?MeetOutsidersId=Add";
$.ajax(
{
url: urlajax,//submit to HandlerMeetRoomApplyForm.ashx page
type: "post",
async: false,
dataType: "json",
data: { method: "Add", req: JSON.stringify(entity) },
success: function (arr) {
console.log("新增成功=>" + urlajax +
JSON.stringify(entity).toLocaleString() + "==>" +
"返回标识符:" + arr.ResultMsg + "返回结果:" + arr.ResultMsg);
if (arr.ResultFlag == "0") {
alert("新增成功");
//window.location.href = './req_list.aspx';
}
else { alert("未知错误"); }
},
error: function (XMLHttpRequest, textStatus, errorThrown)
{ console.log("新增失败=>" + textStatus); alert('新增失败!'); }
});
}
</script>
</asp:content>

js 练习的更多相关文章

  1. Vue&period;js 和 MVVM 小细节

    MVVM 是Model-View-ViewModel 的缩写,它是一种基于前端开发的架构模式,其核心是提供对View 和 ViewModel 的双向数据绑定,这使得ViewModel 的状态改变可以自 ...

  2. js学习笔记:操作iframe

    iframe可以说是比较老得话题了,而且网上也基本上在说少用iframe,其原因大致为:堵塞页面加载.安全问题.兼容性问题.搜索引擎抓取不到等等,不过相对于这些缺点,iframe的优点更牛,跨域请求. ...

  3. js学习笔记:webpack基础入门(一)

    之前听说过webpack,今天想正式的接触一下,先跟着webpack的官方用户指南走: 在这里有: 如何安装webpack 如何使用webpack 如何使用loader 如何使用webpack的开发者 ...

  4. JS调用Android、Ios原生控件

    在上一篇博客中已经和大家聊了,关于JS与Android.Ios原生控件之间相互通信的详细代码实现,今天我们一起聊一下JS调用Android.Ios通信的相同点和不同点,以便帮助我们在进行混合式开发时, ...

  5. jquery和Js的区别和基础操作

    jqery的语法和js的语法一样,算是把js升级了一下,这两种语法可以一起使用,只不过是用jqery更加方便 一个页面想要使用jqery的话,先要引入一下jqery包,jqery包从网上下一个就可以, ...

  6. 利用snowfall&period;jquery&period;js实现爱心满屏飞

    小颖在上一篇一步一步教你用CSS画爱心中已经分享一种画爱心的方法,这次再分享一种方法用css画爱心,并利用snowfall.jquery.js实现爱心满屏飞的效果. 第一步: 利用伪元素before和 ...

  7. node&period;js学习(三)简单的node程序&amp&semi;&amp&semi;模块简单使用&amp&semi;&amp&semi;commonJS规范&amp&semi;&amp&semi;深入理解模块原理

    一.一个简单的node程序 1.新建一个txt文件 2.修改后缀 修改之后会弹出这个,点击"是" 3.运行test.js 源文件 使用node.js运行之后的. 如果该路径下没有该 ...

  8. JS正则表达式常用总结

    正则表达式的创建 JS正则表达式的创建有两种方式: new RegExp() 和 直接字面量. //使用RegExp对象创建 var regObj = new RegExp("(^\\s+) ...

  9. 干货分享:让你分分钟学会 JS 闭包

    闭包,是 Javascript 比较重要的一个概念,对于初学者来讲,闭包是一个特别抽象的概念,特别是ECMA规范给的定义,如果没有实战经验,很难从定义去理解它.因此,本文不会对闭包的概念进行大篇幅描述 ...

  10. JS核心系列:理解 new 的运行机制

    和其他高级语言一样 javascript 中也有 new 运算符,我们知道 new 运算符是用来实例化一个类,从而在内存中分配一个实例对象. 但在 javascript 中,万物皆对象,为什么还要通过 ...

随机推荐

  1. jQuery插件中文乱码解决办法

    修改jQuery插件源代码的时候,中文字符有时候会显示乱码,通常这个插件是老外写的,默认文件的编码格式ANSI格式,源代码写中文字符的时候就会显示乱码,解决方法就是将文件编码格式换成UTF-8格式 保 ...

  2. 笔记(一):ES6所改良的javascript&OpenCurlyDoubleQuote;缺陷”

    ES6笔记(一):ES6所改良的javascript“缺陷”   块级作用域 ES5没有块级作用域,只有全局作用域和函数作用域,由于这一点,变量的作用域甚广,所以一进入函数就要马上将它创建出来.这就造 ...

  3. A trip through the Graphics Pipeline 2011&lowbar;06&lowbar;&lpar;Triangle&rpar; rasterization and setup

    Welcome back. This time we’re actually gonna see triangles being rasterized – finally! But before we ...

  4. Can&&num;39&semi;t dispatch DDM chunk 52454151&colon; no handler defined

    [2010-07-12 10:10:06 - Hello Google Android]ActivityManager: DDM dispatch reg wait timeout [2010-07- ...

  5. HTTPS 服务器搭建

    利用NGINX搭建HTTPS服务器不是一件困难的事情,过程包括以下几步 第一步:利用OpenSSL制作证书 第二步:安装NGINX,configure中保证加入ngx_http_ssl_module. ...

  6. Appium java环境搭建&lpar;Windows版&rpar;

    注意:如果初次学习appium的话,则需要你做好准备因为安装过程并不简单 1.安装appium Appium 官方网站:http://appium.io/ 安装Appium之前需要先安装node.js ...

  7. Java 虚拟机的内存溢出

    在Java虚拟机规范的描述中,除了程序计数器外,虚拟机内存的其他几个运行时区域都有发生 OutOfMemoryError 异常的可能. 在Eclipse中进行JVM参数设置 可以直接通过上方菜单栏的 ...

  8. iOS学习之--字符串的删除替换(字符串的常用处理,删除,替换)

    字符串操作,比较简单,仅做记录! 1.删除 NSString *str1 = @"<hello,wo r d!>"; //删除字符串两端的尖括号 NSMutableSt ...

  9. Subversion 1&period;8&period;9 &lpar; SVN Client &rpar; 安装最新版本的svn客户端

    For CentOS7 Users: [WandiscoSVN] name=Wandisco SVN Repo baseurl=http://opensource.wandisco.com/cento ...

  10. js中函数的 this、arguments 、caller,call&lpar;&rpar;,apply&lpar;&rpar;,bind&lpar;&rpar;

    在函数内部有两个特殊的对象,arguments 和 this,还有一个函数对象的属性caller. arguments对象 arguments是一个类似数组的对象,包含着传入函数的所有参数. func ...