JavaScript开发者有必要理解apply、call与bind方法的不同点。它们的共同点是第一个参数都是this,即函数运行时依赖的上下文。三者之中,call方法是最简单的,它等价于指定this值调用函数:var user = {name: "Rahul Mhatre",whatIsYourName: function() {console.lo…
阅读更多 ES6语法var intArr=[];'123456789'.split('').reverse().map((val)=>{intArr.push(parseInt(val));});var a= Math.max.apply(Math,intArr);//求最大值console.log(a);//输出:9reverse的用法,翻转数组。
阅读更多 参考Mock.js官网Mock.mock({stuta: 'true','data|26': [{'num|+1':0,'Ab':function(){for(var i=this.num;i<26;i++){return String.fromCharCode(65+i);}},'tit|3-5': [{'tit':/[A-Z][a-z]{2,3}/}],}]})输出结果:
阅读更多 node.js基于express框架搭建一个简单的注册登录Web功能这个小应用使用到了node.js bootstrap express 以及数据库的操作 :使用mongoose对象模型来操作 mongodb如果没了解过的可以先去基本了解一下相关概念~ 首先注明一下版本,因为express因为版本的不同使用的方式也不同,…
阅读更多 public string GetActiveFiles(string selectsection){DataTable dt = DALWebService.GetFiles(selectsection);DataTable FinalTable = new DataTable();FinalTable.Columns.Add("ID", typeof(int));FinalTable.Columns.Add("DownloadURL", typeof(strin
阅读更多 asp.net几种常见的传值方法,主要详细介绍QueryString传值、Server.Transfer传值、Cookie对象传值、Session对象传值、Application对象传值。
阅读更多 效果图:上传时会显示进度条 前台代码<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &am…
阅读更多 <!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><meta http-equiv="Content-Typ
阅读更多
未能加载文件或程序集“FredCK.FCKeditorV2, Version=2.2.2396.27828, Culture=neutral, PublicKeyToken....=
未能加载文件或程序集“FredCK.FCKeditorV2, Version=2.2.2396.27828, Culture=neutral, PublicKeyToken....=

未能加载文件或程序集“FredCK.FCKeditorV2, Version=2.2.2396.27828, Culture=neutral, PublicKeyToken=4f86767c9b519a06”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)解决方法: 用本地那个dll,覆盖服务器上的那个dll。服…
阅读更多 html:<a href="javascript:AddFavorite(window.location,document.title);returnfalse;" >加入收藏</a>js: function AddFavorite(sURL, sTitle) { try { window.external.addFavorite(sURL, sTitle); } catch (e) { tr…
阅读更多