string id = strCurrnetKey

string id = strCurrnetKey.Substring(strCurrnetKey.IndexOf(":") + 1);

是什么意思?strCurrnetKey是string类型

如果字符串中存在冒号,那么就截取冒号后面的字符串
否则就是返回整个字符串。

strCurrnetKey是字符串,截取strCurrnetKey中冒号位置后面的一个字符

是截取冒号后面的字符串

不对呀?我调试strCurrentKey是"currentPageIndex",id是"currentPageIndex"