摘要:
IIS 早期版本包含通配符 MIME 映射,允许 IIS处理任何文件而无需考虑扩展名。IIS 6.0 不包含该通配符 MIME映射,不能处理在 IIS 元数据库中的 MimeMap节点以外定义的任何类型的扩展名。解决方案:要为特定扩展名定义 MIME 类型,请按照下列步骤操作:1. 打开 IIS M 阅读全文
摘要:
jquery的click(function(event){})。这里的参数event是一个点击的事件,不是点击的对象,获取对象直接用this;就好了 js function(obj){} 这里的obj就是点击的对象,可以通过onclick="function(this)"来设置 阅读全文
摘要:
1,asp:timer无法获取和设置——ContentTemplate范围之外的值。 <asp:UpdatePanel ID="UpdatePanelTimer" runat="server"> <ContentTemplate> 2,ContentTemplate范围的timer值,可以在后台获取 阅读全文
摘要:
1,debug模式发布,可以的IIS远程调试,release不行 2,debug模式,附加到进程,w3wp.exe, 3,webform 如果,只上传修改的——1,aspx 2,aspx.cs 3,相应的dll————一个不能缺少,pdb文件也可能 删除 4,C#还是比较好的语言,powershel 阅读全文
摘要:
{ // 指向 PHP 可执行文件。 "php.validate.executablePath": "D:/phpstudy/PHPTutorial/php/php-5.5.38/php.exe", // Git 可执行文件路径 "git.path": "D:/git/Git/cmd/git.exe 阅读全文
摘要:
/** 把用户输入的文本转义(主要针对特殊符号和emoji表情) */ function userTextEncode($str){ if(!is_string($str))return $str; if(!$str || $str=='undefined')return ''; $text = json_encode($str); //暴露出unicode ... 阅读全文
摘要:
1,php $urlcode="https://api.weixin.qq.com/sns/oauth2/access_token?appid=$this->appidweb&secret=$this->appsecretweb&code=$code&grant_type=authorization 阅读全文
摘要:
ajax无法跳转网页。仅用于获取数据。跳转网页要在前端window.location.href 1,跨域访问要设置,crossDomain:true; // dataType : "jsonp",//jsonp可以用于构造二次请求如Callback=getMessageone // jsonp:"C 阅读全文
摘要:
1,jquery 获取scrollHeight: $("div")[0].scrollHeight $('div').prop('scrollHeight'); 设置scrollTop $(".chat-con").scrollTop(h);//这里没有引号,注意 2,js var div = do 阅读全文
摘要:
.inner-container::-webkit-scrollbar { display: none; } overflow:scroll; overflow-x:scroll; 阅读全文