- 博客(1)
- 资源 (40)
- 收藏
- 关注
原创 Convert.ToInt32、(int)和int.Parse三者的区别
Convert.ToInt32、(int)和int.Parse三者的区别:前者适合将object类类型转换成int类型,如Convert.ToInt32(session["shuzi"]);(int)适合简单数据类型之间的转换;int.Parse适合将string类类
2009-10-13 14:12:00 423
AutomationTestSample
samplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesamplesample
2012-08-12
JSON2.JS JSON.JS JSON_PARSE.JS
json2.js: This file creates a JSON property in the global object, if there
isn't already one, setting its value to an object containing a stringify
method and a parse method. The parse method uses the eval method to do the
parsing, guarding it with several regular expressions to defend against
accidental code execution hazards. On current browsers, this file does nothing,
prefering the built-in JSON object.
json.js: This file does everything that json2.js does. It also adds a
toJSONString method and a parseJSON method to Object.prototype. Use of this
file is not recommended.
json_parse.js: This file contains an alternative JSON parse function that
uses recursive descent instead of eval.
json_parse_state: This files contains an alternative JSON parse function that
uses a state machine instead of eval.
cycle.js: This file contains two functions, JSON.decycle and JSON.retrocycle,
which make it possible to encode cyclical structures and dags in JSON, and to
then recover them. JSONPath is used to represent the links.
2010-11-19
json2.js javascript
json2.js
将对象JSON化:
JSON.stringify(value, [replacer], [space])
例子:
$(document).ready(function () {
$("#update").click(function () {
var employee = {
EmployeeName: $("#EmployeeName").val(),
Address: $("#Address").val()
};
$.ajax({
url:"/Employee/Edit",
type: "POST",
data:JSON.stringify(employee),
dataType:"json",
contentType:"application/json;charset=utf-8",
success:function(){$("#message").html("Employee Saved").fadeIn();},
error:function(){$("#message").html("Error Occurred").fadeIn();}
});
return false;
});
});//end ready
2010-11-19
Developer Express v2010部分汉化
Developer Express v2010 部分 汉化
使用方法:
GridLocalizer.Active = new ChnGridLocalizer();
NavBarLocalizer.Active = new ChnNavBarLocalizer();
BarLocalizer.Active = new ChnBarLocalizer();
EditResLocalizer.Active = new ChnEditorLocalizer();
在Application.Run(new Form1());之前加上以上的语句即可。
2010-10-14
jquery.cookie.js
jquery.cookie.js
使用方法:
var cookie_name="submenu_cookie";
var value="selected";
var options={path:'/',expires:1};
设置: $.cookie(cookie_name,value,options);
取值:$.cookie(cookie_name)
2010-09-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人