这个笔记本电脑配置常识可以玩CS:GO吗?

匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。&script type="text/javascript"&
$(function () {
$("#dg").datagrid({
singleSelect: true,
pagination: true,
pageSize: 15,
pageList: [5, 10, 15, 20, 30, 50, 80, 200],
queryParams: form2Json("searchform"),  //关键之处
frozenColumns: [[{
field: 'ck', checkbox: true
columns: [[{
field: "be_id",
title: "专家ID",
hidden: true
field: "be_name",
title: "专家姓名",
align: 'left',
width: 100
field: "be_post",
title: "专家职称",
align: 'left',
width: 200
field: "dt_id",
title: "所属科室",
align: 'center',
width: 100,
formatter: function (value, row) {
return formatterDepartment(value)
field: "be_intro",
title: "专家简介",
align: 'left',
width: 450
field: "be_order",
title: "排序ID",
align: 'center',
width: 100
})//datagrid
$("#submit_search").linkbutton({ iconCls: 'icon-search', plain: true })
.click(function () {
$('#dg').datagrid({ queryParams: form2Json("searchform") });
//点击搜索
//将表单数据转为json
function form2Json(id) {
var arr = $("#" + id).serializeArray()
var jsonStr = "";
jsonStr += '{';
for (var i = 0; i & arr. i++) {
jsonStr += '"' + arr[i].name + '":"' + arr[i].value + '",'
jsonStr = jsonStr.substring(0, (jsonStr.length - 1));
jsonStr += '}'
var json = JSON.parse(jsonStr)
return json
&form name="searchform" method="post" action="" id ="searchform"&
&td width="70" height="30"&&strong&专家检索:&/strong&&/td&
&td height="30"&
&input type="text" name="keyword" size=20 &
&select name="search_type" id="search_type" &
&option value="-1"&请选择搜索类型&/option&
&option value="be_name" &按专家姓名&/option&
&option value="be_intro"&按专家简介&/option&
&select name="search_dept" id="search_dept"&
&option value="-1"&请选择所属科室&/option&
&a id="submit_search"&搜索&/a&
&table id="dg"&&/table&
queryParams: form2Json("searchform") &是关键,这个属性是专门用来查询的  为搜索按钮绑定click事件& & & &$("#submit_search").click(function () {& & & & & & & & $('#dg').datagrid({ queryParams: form2Json("searchform") }); & //点击搜索& & & & & & });
阅读(...) 评论()EasyUI中DataGrid默认分页的问题
时间: 16:42:11
&&&& 阅读:5060
&&&& 评论:
&&&& 收藏:0
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&发现在table上直接写data-options后导致数据加载两遍,后来放到了$();中只加载一遍。
另外默认分页PageSzie的设置。
1 $(function () {
//加载完后给星星加Tip
$("#dg").datagrid({
rownumbers:true,
url:‘datagrid_data1.aspx‘,
method:‘get‘,
fit: true,
striped:true,
pagination: true,
onLoadSuccess: function (data) {
AddTipForStar();
var p = $(‘#dg‘).datagrid(‘getPager‘);
$(p).pagination({
pageSize: 15,//每页显示的记录条数,默认为10
pageList: [15, 30, 45],//可以设置每页记录条数的列表
beforePageText: ‘第‘,//页数文本框前显示的汉字
afterPageText: ‘页
共 {pages} 页‘,
displayMsg: ‘当前显示 {from} - {to} 条记录
共 {total} 条记录‘
通过火狐查看发现第一次加载默认PageSize还是10。改成这样就可以了。
1 $(function () {
//加载完后给星星加Tip
$("#dg").datagrid({
rownumbers:true,
url:‘datagrid_data1.aspx‘,
method:‘get‘,
fit: true,
striped:true,
pagination: true,
pageSize: 15,//每页显示的记录条数,默认为10
pageList: [15, 30, 45],//可以设置每页记录条数的列表
onLoadSuccess: function (data) {
AddTipForStar();
var p = $(‘#dg‘).datagrid(‘getPager‘);
$(p).pagination({
beforePageText: ‘第‘,//页数文本框前显示的汉字
afterPageText: ‘页
共 {pages} 页‘,
displayMsg: ‘当前显示 {from} - {to} 条记录
共 {total} 条记录‘
数据绑定还是写在了th的data-options里。
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&原文:/chenliang-zibo/p/4337579.html
&&国之画&&&& &&&&&&
&& &&&&&&&&&&&&&&
鲁ICP备号-4
打开技术之扣,分享程序人生!20836人阅读
JQueryEasyUI-DataGrid
----------------显示列表.aspx-------------------
&%@ Page Language=&C#& AutoEventWireup=&true& CodeBehind=&显示列表.aspx.cs& Inherits=&MyStartEasyUi.Datagrid.显示列表& %&
&!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 runat=&server&&
& & &title&&/title&
& & &script src=&/jquery-easyui-1.3.4/jquery-1.8.0.min.js& type=&text/javascript&&&/script&
& & &script src=&/jquery-easyui-1.3.4/jquery.easyui.min.js& type=&text/javascript&&&/script&
& & &script src=&/jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js& type=&text/javascript&&&/script&
& & &link href=&/jquery-easyui-1.3.4/themes/icon.css& rel=&stylesheet& type=&text/css& /&
& & &link href=&/jquery-easyui-1.3.4/themes/default/easyui.css& rel=&stylesheet& type=&text/css& /&
& & &script type=&text/javascript&&
& & & & $(function () {
& & & & & & $(&#cc&).layout();
& & & & })
& & &/script&
& & &div id=&cc& fit=&true&&
& & & & &div data-options=&region:'north',title:'North Title',split:true& style=&height: 100&&
& & & & &/div&
& & & & &div data-options=&region:'south',title:'South Title',split:true& style=&height: 100&&
& & & & &/div&
& & & & &div data-options=&region:'west',title:'West',split:true& style=&width: 100&&
& & & & &/div&
& & & & &div data-options=&region:'center',title:'我是中间面板'& style=&overflow:& href='/tabs/tabChild/UserManager.htm'&
& & & & &/div&
& & &/div&
-------------------UserManager.htm-------------------
&script type=&text/javascript&&
& & $(function () {
& & & & $(&#divLayout&).layout();
& & & & $(&#tblUserList&).datagrid({
& & & & & & url: '/ashx/UserManager.ashx',
& & & & & & title: '',
& & & & & & loadMsg: '数据加载中,请稍候...',
& & & & & & nowrap: false,
& & & & & & pageSize: 10,
& & & & & & pageList: [10, 20, 30],
& & & & & & columns: [[ & & & & &//注意要两个嵌套的中括号
& & & & & & & & { field: 'Id', title: '编号', width: 120, align: 'center', sortable: true },
& & & & & & & & { field: 'LoginId', title: '用户ID', width: 120, align: 'left', sortable: true },
& & & & & & & & { field: 'Name', title: '用户名称', width: 120, align: 'left', sortable: true },
& & & & & & & & { field: 'Address', title: '用户地址', width: 120, align: 'left', sortable: true }
& & & & & & & & ]],
& & & & & & fitColumns: true,
& & & & & & singleSelect: true,
& & & & & & pagination: true,
& & & & & & sortOrder: &asc&,
& & & & & & sortName: &Id&, & & &//初始化时按Id升序排序
& & & & & & toolbar: [{
& & & & & & & & iconCls: 'icon-add',
& & & & & & & & text: '添加',
& & & & & & & & handler: function () { alert('Add') }
& & & & & & }, '-', { & & & & & &//分隔符
& & & & & & & & iconCls: 'icon-edit',
& & & & & & & & text: '编辑',
& & & & & & & & handler: function () { alert('edit') }
& & & & & & }, '-', {
& & & & & & & & iconCls: 'icon-remove',
& & & & & & & & text: '删除',
& & & & & & & & handler: function () {
& & & & & & & & & & alert('delete')
& & & & & & & & }
& & & & & & }, '-', {
& & & & & & & & iconCls: 'icon-search',
& & & & & & & & text: '查询',
& & & & & & & & handler: function () {
& & & & & & & & & & alert('search')
& & & & & & & & }
& & & & & & }]
& & & & });
& & //按用户自定义查询条件查询,调用datagird的load方法,传递name查询条件
& & function QueryData() {
& & & & $(&#tblUserList&).datagrid(&load&, {
& & & & & & &name&:$(&#tblQuery&).find(&input[name='txtName']&).val()
& & & & });
& & //清除查询条件
& & function ClearQuery() {
& & & & $(&#tblQuery&).find(&input&).val(&&);
&div id=&tt& class=&easyui-tabs& fit=&true& border=&false&&
& & &div title=&用户管理&&
& & & & &div id=&divLayout& fit=&true&&
& & & & & & &div data-options=&region:'north',split:false& style=&height: 60padding-top:6& border=&false&&
& & & & & & & & &!--高级查询部分--&
& & & & & & & & &table id=&tblQuery& border=&0& cellspacing=&0& cellpadding=&0& width=&100%&&
& & & & & & & & & & &tr&
& & & & & & & & & & & & &th&
& & & & & & & & & & & & & & 用户名:
& & & & & & & & & & & & &/th&
& & & & & & & & & & & & &td&
& & & & & & & & & & & & & & &input name=&txtName& /&
& & & & & & & & & & & & &/td&
& & & & & & & & & & &/tr&
& & & & & & & & & & &tr&
& & & & & & & & & & & & &th&
& & & & & & & & & & & & & & 注册时间:
& & & & & & & & & & & & &/th&
& & & & & & & & & & & & &td&
& & & & & & & & & & & & & & &input name=&txtRegStartTimeStart& class=&easyui-datetimebox& editable=&false& /&&至
& & & & & & & & & & & & & & &input name=&txtRegStartTimeEnd& class=&easyui-datetimebox& editable=&false& /&
& & & & & & & & & & & & & & &a class=&easyui-linkbutton& data-options=&iconCls:'icon-search'& src=&javascript:void(0)& onclick=&QueryData()& plain=&true&&查询&/a&
& & & & & & & & & & & & & & &a class=&easyui-linkbutton& data-options=&iconCls:'icon-remove'& src=&javascript:void(0)& onclick=&ClearQuery()& plain=&true&&清空&/a&
& & & & & & & & & & & & &/td&
& & & & & & & & & & &/tr&
& & & & & & & & &/table&
& & & & & & &/div&
& & & & & & &div data-options=&region:'center',split:false& &border=&false&&
& & & & & & & & &!--显示数据列表部分--&
& & & & & & & & &table id=&tblUserList& fit=&true&&
& & & & & & & & &/table&
& & & & & & &/div&
& & & & &/div&
& & &/div&
---------------------后台一般处理程序UserManager.ashx---------------------------
using System.Collections.G
using System.L
using System.W
using System.Web.Script.S
using System.D
namespace MyStartEasyUi.ashx
& & /// &summary&
& & /// UserManager 的摘要说明
& & /// &/summary&
& & public class UserManager : IHttpHandler
& & & & UsersExtendBll bll = new UsersExtendBll();
& & & & public void ProcessRequest(HttpContext context)
& & & & & & context.Response.ContentType = &text/plain&;
& & & & & & int pageIndex = GetPageIndex(context);
& & & & & & int pageSize= GetPageSize(context);
& & & & & & string mySort = GetSort(context) + & & + GetOrder(context);
& & & & & & string queryName = GetQueryName(context);
& & & & & & string whereStr = &&;
& & & & & & if (!string.IsNullOrEmpty(queryName))
& & & & & & {
& & & & & & & & whereStr += & name like '%& + queryName + &%'&;
& & & & & & }
& & & & & & DataSet dsGet = bll.GetListByPage(whereStr, mySort, (pageIndex - 1) * pageSize + 1, pageIndex * pageSize);
& & & & & & List&MyBookShop.Model.Users& lst = bll.DataTableToList(dsGet.Tables[0]);
& & & & & & int total = bll.GetRecordCount(&&);
& & & & & & JavaScriptSerializer js = new JavaScriptSerializer();
& & & & & & string jsonStrings = js.Serialize(lst);
& & & & & & string returnJson = &{\&total\&:&+ total.ToString() + &,\&rows\&:& + jsonStrings +&}&;
& &//返回Json格式total表示总数,rows表示返回的数据,这样返回才能分页
& & & & & & System.Threading.Thread.Sleep(2000);
& & & & & & context.Response.Write(returnJson);
& & & & public bool IsReusable
& & & & & & get
& & & & & & {
& & & & & & & &
& & & & & & }
& & & & public Int32 GetPageSize(HttpContext context)
& & & & & & try
& & & & & & {
& & & & & & & & return Int32.Parse(context.Request[&rows&].ToString());
& & & & & & }
& & & & & & catch
& & & & & & {
& & & & & & & & return 10;
& & & & & & }
& & & & public string GetOrder(HttpContext context)
& & & & & & return context.Request.Form[&order&];
& & & & public string GetSort(HttpContext context)
& & & & & & return context.Request.Form[&sort&];
& & & & public string GetQueryName(HttpContext context)
& & & & & & return context.Request.Form[&name&];
& & & & public Int32 GetPageIndex(HttpContext context)
& & & & & & try
& & & & & & {
& & & & & & & & return Int32.Parse(context.Request[&page&].ToString());
& & & & & & }
& & & & & & catch
& & & & & & {
& & & & & & & & return 1;
& & & & & & }
-------------------------------------------------------------------
请各位网友了解邪淫的危害,远离邪淫
1.玉历宝钞视频(土豆)
/programs/view/nhxOfFOB5Fo/
2.风月场之陷阱
http://www.xuefo.net/nr/article13/130376.html
3.漫谈两性关系
/link?url=r6eYr9qbSx6divz1C2xi14A-ZPkN05FBhzFc9KVypzAoCoMk-vuuyM9eFyL_0H7G_MSgKR9SKIyniFwQ-N5bxwonjdXOwn4nURvV5MypY8S
4.戒除邪淫(学佛网)文章
http://www.xuefo.net/ztzl_10.htm
5.邪淫的因果(视频)
/fofa/list/7906.htm
6.寿康宝鉴(百度文章)
/link?url=E_DulKa0ERhxxZP6sNMT_2pVjLrta1qIEjPftxPlfjuehFK-NKitLCQPXTYil7ttDqLqLFUltfleNde_P-gSya
-------------------------------------------------------------------
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:944484次
积分:11759
积分:11759
排名:第1026名
原创:238篇
转载:87篇
译文:45篇
评论:64条
(1)(3)(5)(1)(1)(3)(2)(3)(6)(11)(1)(13)(10)(15)(23)(28)(32)(36)(11)(8)(25)(14)(37)(41)(9)(7)(1)(22)(20)

我要回帖

更多关于 笔记本电脑配置 的文章

 

随机推荐