踩坑总结 第9页
做网站时经常犯的错误总结…..不是很全,仅记录了自己开发时所遇到的问题
网页禁止ireame嵌套代码-红穆笔记

网页禁止ireame嵌套代码

js方法: <script type="text/javascript"> if(self != top) { top.location = self.location; } </script>
红穆的头像-红穆笔记红穆2年前
0725
form表单提交跳出框架-红穆笔记

form表单提交跳出框架

其实很简单,在form表单里面加一个target参数  target="_parent"
红穆的头像-红穆笔记红穆2年前
07913
msvcp140.dll重新安装的解决方法(dll文件缺失修复)-红穆笔记

msvcp140.dll重新安装的解决方法(dll文件缺失修复)

msvcp140.dll是vs2010编译的程序默认的库文件。 msvcp140.dll可以解决某些大型游戏或应用程序由于vs2010编译系统中缺失此dll而出现的一系列问题。 msvcp140.dll是vs2010编写的程序运行所必需的d...
红穆的头像-红穆笔记红穆3年前
0787
帝国 网站url百度api推送代码-红穆笔记

帝国 网站url百度api推送代码

帝国cms的百度推送代码,自己用的,不会用的不要随便尝试,需要修改url,修改数据表,修改百度api密钥 <?php define('EmpireCMSAdmin','1'); require("e/class/connect...
红穆的头像-红穆笔记红穆3年前
011712
使用 htmlspecialchars转义数据库里的文章-红穆笔记

使用 htmlspecialchars转义数据库里的文章

小记一下使用 htmlspecialchars_decode()函数将转义字符还原为HTML标签 $str = '&lt;p&gt;&lt;span style=&quot;;font-family:微软雅黑;font-size:16px&quot;&gt;&...
红穆的头像-红穆笔记红穆3年前
08914
file_get_contents页面出现错乱解决办法-红穆笔记

file_get_contents页面出现错乱解决办法

我的页面是utf-8,file_get_contents的页面是gb2312,输出时中文乱码。 解决方法如下:复制代码 <?php header("Content-Type:text/html;charset=utf-8"); $keyworld="煤层&qu...
红穆的头像-红穆笔记红穆3年前
012410
浏览器User-Agent总结-红穆笔记

浏览器User-Agent总结

一、基础知识篇: Http Header之User-Agent User Agent中文名为用户代理,是Http协议中的一部分,属于头域的组成部分,User Agent也简称UA。它是一个特殊字符串头,是一种向访问网站提供你所使...
红穆的头像-红穆笔记红穆3年前
026011
file_get_contents的优化替代函数-红穆笔记

file_get_contents的优化替代函数

curl()比file_get_contents()快几倍. function curl_file_get_contents($durl) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $durl); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_seto...
红穆的头像-红穆笔记红穆3年前
0979
回到顶部侧边按钮-红穆笔记

回到顶部侧边按钮

1.html <dl class="toolbar"> <dd class="qq"><a href="tencent://message/?uin=123456&Menu=yes"><i></i><span>在线...
红穆的头像-红穆笔记红穆3年前
06213
curl post提交例子-红穆笔记

curl post提交例子

<?php $host = "/"; $path = "/wyc/title"; $method = "POST"; $apikey = "你要调用API的apikey"; $headers = array(); array_push($headers, &quo...
红穆的头像-红穆笔记红穆3年前
01006
网站侧边客服代码 折叠式 圆球客服展示-红穆笔记

网站侧边客服代码 折叠式 圆球客服展示

首先是html代码:<section id="cebian"> <div class="all close"> <div class="shang"> <div class="mune"> <p>Chat w...
红穆的头像-红穆笔记红穆3年前
0998
仿写一个抖音footer的底部 html-红穆笔记

仿写一个抖音footer的底部 html

css代码:* { box-sizing: border-box; margin: 0; padding: 0; } a { text-decoration: none; color: #fff } #footers .footer { background: #171725; min-height: 188px; font-size: 14px; c...
红穆的头像-红穆笔记红穆3年前
05710