/** * 获取URL中指定参数的值 * * @param name 参数名称 * @returns */ function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if (r != null) { return unescape(r[2]); } r…
var str = "https://itunes.apple.com/cn/app/zhang-jiange-hao-tou-zi-ke/id402382976?mt=8"//这个链接是app在itunes中的地址 if UIApplication.sharedApplication().canOpenURL(NSURL(string: str)!){ UIApplication.sharedApplication().openURL(NSURL(string: str as Str…
public abstract class FillWorkBook<TModel, Chart> where TModel : struct where Chart : new() where Chart : CreateExcelBase { public void FillDataToWorkbook(Workbook workbook) { List<TModel> sheetData = GetData(); if (sheetData == null) { sheetD…
js中获取URL中指定的搜索字符串,主要利用location对象实现,废话少说,上代码. function getSearchString(key) { // 获取URL中?之后的字符 var str = location.search; str = str.substring(1,str.length); // 以&分隔字符串,获得类似name=xiaoli这样的元素数组 var arr = str.split("&"); var obj = new Object()…