摘要:
var id;//...if (!id&& typeof (id) != "undefined" && id!= 0) { //id为null } else { //id不为null }最笨的方法判断是... 阅读全文
摘要:
一:后台获取,前台调用后台:object value= Request.QueryString[key];前台js:$(function(){var value=""})二:用js方法写正则判断//获取URL中参数 function getUrlParam(name) { ... 阅读全文
摘要:
一:声明datagrid列,在列中添加formatter属性,并指定js方法columns = [[{ title: '编号', field: 'Id', width: 100, sortable: true, hidden: true },{ title: '名称', field: 'Name',... 阅读全文
摘要:
一:存Cookie //存Cookie document.cookie = "id=" + escape(value); 二:取Cookie//提取Cookie值 function getCookie(name) { //取出cookie var strCo... 阅读全文