<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>枫芸志</title>
	<atom:link href="http://witmax.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://witmax.cn</link>
	<description>记录成长路途上的点滴总结</description>
	<lastBuildDate>Sun, 20 Aug 2017 14:10:28 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	

<image>
	<url>http://witmax.cn/wp-content/uploads/icon_80x80.png</url>
	<title>枫芸志</title>
	<link>http://witmax.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【PHP】libphpcpp.so编译</title>
		<link>http://witmax.cn/libphpcpp-compile.html</link>
		<comments>http://witmax.cn/libphpcpp-compile.html#respond</comments>
		<pubDate>Sun, 13 Aug 2017 09:46:55 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3044</guid>
		<description><![CDATA[在本地增加了一个新的php扩展后，遇到依赖的libphpcpp.so没有装上，于是自己来编译安装 安装步骤：  [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Finstall-php7.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】安装PHP7</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-datetime-function.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】常用日期时间函数</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-filter-partial-utf8-char.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】过滤不完整的UTF-8字符的函数</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-cannot-redeclare-class.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】Fatal error: Cannot redeclare class的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-write-csv.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】写入.csv文件注意点</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>在本地增加了一个新的php扩展后，遇到依赖的libphpcpp.so没有装上，于是自己来编译安装</p>
<pre class="brush: plain; title: ; notranslate">$ php -v

PHP Warning:&amp;nbsp; PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.20_12/lib/php/extensions/no-debug-non-zts-20151012/thriftphp.so' - dlopen(/usr/local/Cellar/php70/7.0.20_12/lib/php/extensions/no-debug-non-zts-20151012/thriftphp.so, 9): Library not loaded: libphpcpp.so.2.0

Referenced from: /usr/local/Cellar/php70/7.0.20_12/lib/php/extensions/no-debug-non-zts-20151012/thriftphp.so

Reason: image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.20_12/lib/php/extensions/no-debug-non-zts-20151012/thriftphp.so' - dlopen(/usr/local/Cellar/php70/7.0.20_12/lib/php/extensions/no-debug-non-zts-20151012/thriftphp.so, 9): Library not loaded: libphpcpp.so.2.0

Referenced from: /usr/local/Cellar/php70/7.0.20_12/lib/php/extensions/no-debug-non-zts-20151012/thriftphp.so

Reason: image not found in Unknown on line 0

PHP 7.0.20 (cli) (built: Jun 23 2017 07:46:30) ( NTS )

Copyright (c) 1997-2017 The PHP Group

Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies</pre>
<p><span id="more-3044"></span></p>
<p>安装步骤：</p>
<p>1、Clone代码库</p>
<pre class="brush: plain; title: ; notranslate">git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git</pre>
<p>2、Mac下需要安装XCode，并运行安装组件</p>
<p>3、Mac下修改编译，修改Makefile 119行</p>
<pre class="brush: plain; title: ; notranslate">LINKER_FLAGS            =   -shared</pre>
<p>修改为</p>
<pre class="brush: plain; title: ; notranslate">LINKER_FLAGS            =   -shared -undefined dynamic_lookup</pre>
<p>如不修改就进行编译会遇到以下错误</p>
<pre class="brush: plain; title: ; notranslate">Undefined symbols for architecture x86_64:
  &quot;_OnUpdateString&quot;, referenced from:
      Php::Ini::fill(_zend_ini_entry_def*, int) in ini.o
…
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libphpcpp.so.2.0.0] Error 1</pre>
<p>4、修改Makefile 179行</p>
<pre class="brush: plain; title: ; notranslate"> ${LINKER} ${PHP_LINKER_FLAGS} -Wl,-soname,libphpcpp.so.$(SONAME) -o $@ ${COMMON_SHARED_OBJECTS} ${PHP_SHARED_OBJECTS}</pre>
<p>修改为</p>
<pre class="brush: plain; title: ; notranslate"> ${LINKER} ${PHP_LINKER_FLAGS} -Wl,-install_name,libphpcpp.so.$(SONAME) -o $@ ${COMMON_SHARED_OBJECTS} ${PHP_SHARED_OBJECTS}</pre>
<p>5、make &amp; make install</p>
<p>等运行成功，再来运行看看php -v，不报错了，搞定。</p>
<p>参考文章：</p>
<ol>
<li><a href="http://www.php-cpp.com/documentation/install">How to install PHP-CPP</a></li>
<li><a href="https://github.com/CopernicaMarketingSoftware/PHP-CPP/issues/255">Compile error under mac...</a></li>
</ol>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Finstall-php7.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】安装PHP7</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-datetime-function.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】常用日期时间函数</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-filter-partial-utf8-char.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】过滤不完整的UTF-8字符的函数</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-cannot-redeclare-class.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】Fatal error: Cannot redeclare class的解决办法</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-write-csv.html&from=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】写入.csv文件注意点</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/libphpcpp-compile.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Javascript】完美解决前端跨域之 easyXDM 的使用和解析</title>
		<link>http://witmax.cn/easyxdm.html</link>
		<comments>http://witmax.cn/easyxdm.html#respond</comments>
		<pubDate>Fri, 11 Aug 2017 10:35:16 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[网页设计]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3025</guid>
		<description><![CDATA[前端跨域问题在大型网站中是比较常见的问题。本文详细介绍了利用 easyXDM 解决前端跨域的原理细节和使用细节 [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-hashmap.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】关于Hashmap</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-difference-summary.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JavaScript在IE浏览器和Firefox浏览器中的差异总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-add-favorite.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】360浏览器下加入收藏夹功能无效</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-shifting-unsigned-number.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】有符号数、无符号数的移位操作</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-textarea-auto-grow.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】文本框textarea高度随内容自适应增长收缩</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p><img src="https://user-images.githubusercontent.com/20884496/29173291-6ab79c7e-7e15-11e7-8776-a45b5067c9da.jpg" alt="1449814969-566859"></p>
<blockquote>
<p>
  前端跨域问题在大型网站中是比较常见的问题。本文详细介绍了利用 easyXDM 解决前端跨域的原理细节和使用细节，具体使用时可以在文中代码实例的基础上扩展完成。
</p>
</blockquote>
<h2>0、背景</h2>
<p>因个别网络运营商存在 <code>http</code> 劫持的情况，导致网站某些重要的 <code>iframe</code> 弹窗页面被插入了第三方广告，内容完全被遮挡，严重验证影响用户体验。公司决定将这些页面切换为 <code>https</code> ，切换后发现原来 <code>iframe</code> 浮层自动适应大小的功能失效了，原因是主页面是http的，出现子窗口加载后操作父页面的浮层大小跨域了，被浏览器限制无法操作。于是就需要跨域解决方案来解决这种情况。</p>
<h2>1、跨域问题</h2>
<p>介绍一下什么是跨域问题？网站页面间发生数据请求和传输时，只要两个网址中的协议名 <code>protocol</code> 、主机 <code>host</code> 、端口号 <code>port</code> 三个中的任意一个不同，就构成了跨域。跨域的页面默认情况下不能通过 <code>JavaScript</code> 直接操作对方的页面对象。</p>
<table>
<tr>
<th>解决方案</th>
<th>原理简介</th>
<th>优点</th>
<th>缺点</th>
</tr>
<tr>
<td>JSONP</td>
<td>通过 <code>script</code> 标签直接加载跨域的 JavaScript 代码进行执行，因为 <code>script</code> 标签引入的 JavaScript 代码是不受跨域限制的</td>
<td>简单</td>
<td>单向跨域</td>
</tr>
<tr>
<td>Flash URLLoader</td>
<td>利用 Flash 的跨域策略来进行跨域数据加载</td>
<td>-</td>
<td>单向跨域</td>
</tr>
<tr>
<td>CORS</td>
<td>在服务器上设置 <code>Access-Control-Allow-Origin</code> 允许跨域访问</td>
<td>配置后客户端不需要做任何修改</td>
<td>需要服务器配置和浏览器支持</td>
</tr>
<tr>
<td>window.name</td>
<td>利用 <code>iframe</code> 的 <code>window.name</code> 做跨域通信</td>
<td>简单</td>
<td>仅支持文本消息</td>
</tr>
<tr>
<td>location.hash</td>
<td>利用 <code>iframe</code> 的 <code>location.hash</code> 做跨域通信</td>
<td>简单</td>
<td>仅支持文本消息</td>
</tr>
<tr>
<td>document.domain</td>
<td>将子域的 <code>document.domain</code> 修改为主域</td>
<td>简单</td>
<td>只适合于域与子域的跨域场景</td>
</tr>
<tr>
<td>postMessage</td>
<td>利用 <code>window.postMessage()</code> 方法和 <code>window</code> 的 <code>message</code> 事件处理来做跨域通信</td>
<td>支持文本和对象消息</td>
<td>仅高级浏览器 Internet Explorer 8+ , Chrome ，Firefox  , Opera  和 Safari 支持</td>
</tr>
</table>
<p>各种跨域方案的详细介绍本文不做展开，有兴趣的同学可以参考《深入理解前端跨域方法和原理》( <a href="http://blog.csdn.net/kongjiea/article/details/44201021">http://blog.csdn.net/kongjiea/article/details/44201021</a> )</p>
<p>这里着重推荐 easyXDM ，因为 easyXDM 集成了现有的多种跨域解决方案，而且很好地实现了跨浏览器兼容、多个跨域通信并行、跨域请求白名单、通信响应等功能，能完美地解决各种跨域使用的应用场景。</p>
<h2>2、easyXDM 使用实例</h2>
<p>父页面 <code>index.html</code> 核心代码：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;output&quot;&gt;
	&lt;p&gt;蓝色区域为主页面内容输出区&lt;/p&gt;
&lt;/div&gt;
&lt;script src=&quot;easyXDM.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	var showMsg = function (message) {
		document.getElementById('output').innerHTML += &quot;&lt;p&gt;&quot; + message + &quot;&lt;/p&gt;&quot;;
	};
	var rpc = new easyXDM.Rpc({
		isHost: true,
		remote: 'http://127.0.0.1/easyXDM/iframe.html',
		hash: true,
		protocol: '1',
		container: document.getElementById('container'),
		props: {
			frameBorder: 0,
			scrolling: 'no',
			style: {width: '100%', height: '100px'}
		}
	},
	{
		local: {
			echo: function (message) {
				showMsg(message);
			}
		}
	});
&lt;/script&gt;
</pre>
<p>子页面 <code>iframe.html</code> 核心代码：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;p&gt;实线框为子页面区域&lt;/p&gt;
&lt;button id=&quot;btn&quot; value=&quot;&quot;&gt;点击给主页面发数据&lt;/button&gt;
&lt;div id=&quot;output&quot;&gt;&lt;/div&gt;
&lt;script src=&quot;easyXDM.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	var showMsg = function (message) {
		document.getElementById('output').innerHTML += &quot;&lt;p&gt;&quot; + message + &quot;&lt;/p&gt;&quot;;
	};
	window.rpc = new easyXDM.Rpc({
		isHost:false,
		//acl: '^(https?:\\/\\/)?([a-zA-Z0-9\\-]+\\.)*baixing.com(\\/.*)?$',
		protocol: '1'
	},
	{
		remote: {
			echo: {}
		}
	});
	document.getElementById('btn').onclick = function () {
		rpc.echo('echo from iframe');
	};
&lt;/script&gt;
</pre>
<p>访问 <code>http://localhost/easyXDM/index.html</code> ，因为 <code>index.html</code> 和 <code>iframe.html</code> 两个页面的 <code>host</code> 不同子页面操作主页面内容属于跨域访问。有了 easyXDM 作为通道，这个操作就可以正常进行了，效果如下图所示：</p>
<p><img src="https://user-images.githubusercontent.com/20884496/29154793-996752d6-7dc9-11e7-9af2-9516d010a964.gif" alt="untitled"></p>
<p>实际应用场景中，修改调用函数就可以让子页面对父页面做任何想做的事情了。</p>
<h2>3、easyXDM 原理解析</h2>
<h3>3.1 原理说明</h3>
<p>easyXDM 对不同的底层通信机制进行封装，比如上面实例中使用了 <code>postMessage</code> 机制继续通信来实现跨域双向通信。</p>
<h4>3.1.1 子页面发送数据给主页面</h4>
<p>easyXDM 将方法调用操作进行打包后通过 <code>postMessage</code> 发送给主页面，主页面的 <code>message</code> 处理函数收到数据后交由 easyXDM 进行解析后调起调用函数。代码调用和数据流如下图所示：</p>
<p><img src="https://user-images.githubusercontent.com/20884496/29312172-c2d8f900-81e6-11e7-92ba-bbec963b269b.png" alt="easyxdm request"></p>
<p>传递的数据说明：<br />
- <code>defaultXXX</code> : 为通道标识符，页面不刷新的情况下，这个值不变<br />
- <code>id</code> : 请求编号，自增，每发送一次请求加1<br />
- <code>method</code> : 需要调用的方法名<br />
- <code>params</code> : 调用方法的参数，以 JSON 格式表示<br />
- <code>jsonrpc</code> : 表示 JSON-RPC 消息版本</p>
<h4>3.1.2 主页面方法返回响应数据</h4>
<p>easyXDM 同样会调用 <code>postMessage</code> 将方法响应发回给子页面，子页面的 <code>message</code> 处理函数收到数据后交由 easyXDM 进行解析，解析后执行对应的响应处理操作。代码调用和数据流如下图所示：<br />
<img src="https://user-images.githubusercontent.com/20884496/29312173-c2dd0f90-81e6-11e7-8829-4be8e2c99a32.png" alt="easyxdm response"></p>
<p>传递的数据说明：<br />
- <code>defaultXXX</code> : 为通道标识符，页面不刷新的情况下，这个值不变；与子页面发送的数据一致<br />
- <code>id</code> : 与调用方法时发送的 <code>id</code> 一致<br />
- <code>result</code> : 方法响应，以 JSON 格式表示<br />
- <code>jsonrpc</code> : 表示 JSON-RPC 消息版本</p>
<p>以下依次对主页面和子页面的代码做具体说明。</p>
<h3>3.2 主页面调用代码解析</h3>
<p>主页面调用 <code>easyXDM.Rpc()</code> 的时候会初始化通信组件，同时会创建 <code>iframe</code> 子页面；具体参数含义介绍如下：<br />
- <code>isHost</code>: true，表示创建 iframe 子页面<br />
- <code>remote</code>: 创建的 iframe 子页面的 url<br />
- <code>container</code>: 值为 DOM 对象，创建出来的 iframe 会被包含在 container 中<br />
- <code>props</code>: 属性中指定的内容会被附加到 iframe 对象上<br />
- <code>hash</code>: 为true代表通道相关的 <code>xdm_e</code> / <code>xdm_c</code> / <code>xdm_p</code> 参数会在网址 hash 中记录，为 false 时会变成 url 参数；一般情况下建议设为 true ，因为把跨域相关的前端参数传递给后端并不是个很好的方式，但可以解决后面的表单提交后的通道保持问题；所以具体场景具体选择。</p>
<p>通过合理设置以上属性，就可以将原来写死在页面上的 <code>iframe</code> 改为通过 <code>easyXDM.Rpc()</code> 的方式进行加载，从而实现代码的灵活嵌入。</p>
<p>上文实例中父页面 <code>Rpc</code> 初始化后的网页元素如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;container&quot;&gt;
	&lt;iframe 
		name=&quot;easyXDM_default5491_provider&quot;
		id=&quot;easyXDM_default5491_provider&quot;
		frameborder=&quot;0&quot;
		scrolling=&quot;no&quot;
		src=&quot;http://127.0.0.1/easyXDM/iframe.html#xdm_e=http%3A%2F%2Flocalhost&amp;amp;xdm_c=default5491&amp;amp;xdm_p=1&quot;
		style=&quot;width: 100%; height: 100%;&quot;&gt;
	&lt;/iframe&gt;
&lt;/div&gt;
</pre>
<p>其中 <code>iframe</code> 的 <code>name</code> 和 <code>id</code> 是自动生成的，作用是区分不同的 <code>Rpc</code> 通道，也就意味着在一个页面上可以建立多个跨域调用的通道。中间的 <code>xdm_e</code> / <code>xdm_c</code> / <code>xdm_p</code> 参数是初始化后的通道参数。</p>
<p>另外 <code>local</code> 参数配置定义了子页面可以调用的函数方法名和方法实现，方法名、方法参数等都可以任意按需指定。</p>
<h3>3.3 子页面调用代码解析</h3>
<p><code>iframe</code> 中的 <code>Rpc</code> 参数的解析如下：<br />
- <code>isHost</code>: false，代表这是客户端，不创建iframe页面<br />
- <code>protocol</code>: 通信协议，数字，具体含义见以下通信协议说明部分，可选<br />
- <code>acl</code>: 代码调用方的网址白名单，可选</p>
<p>与主页面的 <code>local</code> 参数相对应，子页面的 <code>remote</code> 配置定义了所有子页面需要调用到的主页面的方法名。只有在 <code>remote</code> 里定义了，在子页面上采用通过 <code>rpc</code> 实例调用到。</p>
<p>以上正确配置后，函数跨域调用就和本地调用效果一样了，具体中间的通信已经由 easyXDM 来搞定，如同文中的 <code>rpc.echo()</code> 已经可以直接调用到主页面定义的 <code>echo</code> 方法。</p>
<h3>3.4 通信协议说明</h3>
<p>关于通信协议，如在代码配置中未指定则会按以下规则依次匹配使用最前面符合的一个<br />
- <code>4</code>: 当通信的两端属于同一域时，直接通信<br />
- <code>1</code>: 当存在 <code>windows.postMessage</code> 或 <code>document.postMessage</code> 时，IE8+, Firefox 3+, Opera 9+, Chrome 2+, Safari 4+支持；使用 <code>postMessage</code> 机制通信<br />
- <code>6</code>: 配置中存在 <code>swf</code> 属性，并且支持 <code>window.ActiveXObject</code> 时，通过配置的 <code>swf</code> 做通信<br />
- <code>5</code>: Gecko (Firefox 1+)浏览器时，使用 <code>window.frameElement</code> 属性做通信<br />
- <code>2</code>: 配置中存在 <code>remoteHelper</code> 时，通过配置的 <code>remoteHelper</code> 做通信<br />
- <code>0</code>: 默认，所有浏览器都支持；以上规则都不符合时，使用 <code>image</code> 加载机制做通信</p>
<h2>4、 更多功能</h2>
<h3>4.1 增加请求响应处理</h3>
<p><code>index.html</code> 页面的 <code>echo</code> 函数增加 <code>return</code> 语句返回值</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script&gt;
	new easyXDM.Rpc({
		// ...
	},
	{
		local: {
			echo: function (message) {
				document.getElementById('output').innerHTML += &quot;&lt;p&gt;&quot; + message + &quot;&lt;/p&gt;&quot;;
				return {'msg': 'echo done from index'};
			}
		},
		remote: {}
	});
&lt;/script&gt;
</pre>
<p><code>iframe.html</code> 调用 <code>rpc</code> 方法时增加回调函数就可以了</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script&gt;
	// ...
	document.getElementById('btn').onclick = function () {
		rpc.echo('echo from iframe', function(response){
			showMsg(response.msg);
		}, function(errorObj){
			alert('error');
		});
	};
&lt;/script&gt;
</pre>
<p>效果如下图所示：</p>
<p><img src="https://user-images.githubusercontent.com/20884496/29154794-99c2b1b2-7dc9-11e7-87de-2ca6f345105a.gif" alt="untitled2"></p>
<h3>4.2 主页面调用子页面方法</h3>
<p><code>iframe.html</code> 中 <code>rpc</code> 的 <code>local</code> 注册访问自己页面内容的方法 <code>pingIframe</code> 实现</p>
<pre class="brush: xml; title: ; notranslate">
window.rpc = new easyXDM.Rpc({
    // ...
},
{
    local: {
        pingIframe: function (message) {
            showMsg(message);
            return {'msg': 'pong from iframe'}
        }
    },
    remote: {
        echo: {}
    }
});
</pre>
<p><code>index.html</code> 中 <code>rpc</code> 的 <code>remote</code> 注册一下子页面的 <code>pingIframe</code> 方法声明，增加一下按钮调用事件</p>
<pre class="brush: xml; title: ; notranslate">
&lt;button id=&quot;btn&quot; value=&quot;&quot;&gt;点击给子页面发数据&lt;/button&gt;
&lt;script&gt;
	// ...
	var rpc = new easyXDM.Rpc({
		// ...
	},
	{
		local: {
			// ...
		},
		remote: {
			pingIframe: {}
		}
	});
	
	document.getElementById('btn').onclick = function () {
		rpc.pingIframe('ping from index', function(response){
			showMsg(response.msg);
		}, function(errorObj){
			alert('error');
		});
	};
&lt;/script&gt;
</pre>
<p>效果如下图所示：</p>
<p><img src="https://user-images.githubusercontent.com/20884496/29161602-721ec7f2-7de9-11e7-8b48-7ed53f38ade8.gif" alt="untitled3"></p>
<h3>4.3 主页面与多个页面通信</h3>
<p>要做多页面通信，只要类似重复一下相关代码调用即可。本实例中，复制上面的 <code>iframe.html</code> 为 <code>iframe2.html</code> 并简单修改里面的文字做区分；同时修改 <code>index.html</code> 代码如下：</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;container&quot;&gt;&lt;/div&gt;
&lt;button id=&quot;btn&quot; value=&quot;&quot;&gt;点击给子页面1发数据&lt;/button&gt;
&lt;button id=&quot;btn2&quot; value=&quot;&quot;&gt;点击给子页面2发数据&lt;/button&gt;
&lt;div id=&quot;output&quot;&gt;
	蓝色区域为主页面内容输出区&lt;br /&gt;
&lt;/div&gt;
&lt;script src=&quot;easyXDM.min.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	var showMsg = function (message) {
		document.getElementById('output').innerHTML += &quot;&lt;p&gt;&quot; + message + &quot;&lt;/p&gt;&quot;;
	};
	var generateRpc = function (url) {
		return new easyXDM.Rpc({
			isHost: true,
			remote: url,
			hash: true,
			protocol: '1',
			container: document.getElementById('container'),
			props: {
				frameBorder: 0,
				scrolling: 'no',
				style: {width: '100%', height: '100px'}
			}
		},
		{
			local: {
				echo: function (message) {
					showMsg(message);
					return {'msg': 'echo done from index'};
				}
			},
			remote: {
				pingIframe: {}
			}
		});
	};
	var bindRpc = function(rpc, btnId) {
		document.getElementById(btnId).onclick = function () {
			rpc.pingIframe('ping from index', function(response){
				showMsg(response.msg);
			}, function(errorObj){
				alert('error');
			});
		};
	};

	var rpc1 = generateRpc('http://127.0.0.1/easyXDM/iframe.html');
	bindRpc(rpc1, 'btn');

	var rpc2 = generateRpc('http://127.0.0.1/easyXDM/iframe2.html');
	bindRpc(rpc2, 'btn2');
&lt;/script&gt;
</pre>
<p>效果如下图所示：</p>
<p><img src="https://user-images.githubusercontent.com/20884496/29162365-ca5bcdb4-7deb-11e7-81c4-f72eca0cc9f9.gif" alt="untitled4"></p>
<h3>4.4 iframe 切换页面后保持 rpc 通信</h3>
<p>在 <code>hash</code> 设置为 <code>false</code> 时不做额外处理的情况下，当提交子页面里的 <code>form</code> 或点击子页面里的超链接打开新页面后，会发现与父窗口的通信走不通了。究其原因，是因为切换页面后，通信通道相关的 <code>xdm_e</code> / <code>xdm_c</code> / <code>xdm_p</code> 参数丢掉了导致保持通信。解决办法是在新打开的页面网址中将通道参数传递过去。简写起见，引入 jQuery 库，代码如下：</p>
<pre class="brush: jscript; title: ; notranslate">
/* 使用方法：
 * 1. 将以下代码加入到子页面中
 * 2. 在子页面的form或a标签中增加easyxdm类名，将easyXDM参数通过网址
 * 传递给新页面以保持页面跳转后跨域通信能保持 
 */
$(document).ready(function () {
    $('form.easyxdm').each(function () {
        var $form = $(this);
        var action = $form.attr('action');
        $form.attr('action', action + window.location.hash);
    });
    $('a.easyxdm').each(function () {
        var $link = $(this);
        var href = $link.attr('href');
        $link.attr('href', href + window.location.hash);
    });
});
</pre>
<h2>5、easyXDM 库的调试</h2>
<p>使用 easyXDM 库过程中如果遇到一些未知错误，可以通过加载调试库来做前端调试，步骤如下：<br />
1. 从 easyXDM GitHub 库( <a href="https://github.com/oyvindkinsey/easyXDM">https://github.com/oyvindkinsey/easyXDM</a> )拉取完整分支<br />
2. 将 <code>src</code> 文件复制到自己的代码目录下<br />
3. 在引入 easyXDM 库的地方改为引入 <code>easyXDM.debug.js</code><br />
4. 之后就可以利用 Chrome 浏览器进行 JavaScript 调试了。具体调试方法本文不做展开，有兴趣的同学可以参考《前端 Chrome 浏览器调试总结》（ <a href="http://www.jianshu.com/p/b25c5b88baf5">http://www.jianshu.com/p/b25c5b88baf5</a> ） 的“ Sources 资源页面的断点调试”部分。</p>
<p>本文完整代码下载：<a href="https://pan.baidu.com/s/1cpRlim">https://pan.baidu.com/s/1cpRlim</a></p>
<h2>6、尾注</h2>
<p>因为 easyXDM 库本身 <code>README.md</code> 已经很久没有维护更新，导致一些参数含义无法找到；文档对于原理实现未做讲解，笔者在使用过程遇到了不少问题，只能通过代码调试和阅读代码的方式深入了解其实现原理来解决。本文目的即是笔者使用 easyXDM 的一些总结供各位看官参考。</p>
<h2>7、参考文档：</h2>
<ol>
<li>easyXDM官网 <a href="http://easyxdm.net">http://easyxdm.net</a></li>
<li>easyXDM GitHub库 <a href="https://github.com/oyvindkinsey/easyXDM">https://github.com/oyvindkinsey/easyXDM</a> </li>
</ol>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-hashmap.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】关于Hashmap</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-difference-summary.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">JavaScript在IE浏览器和Firefox浏览器中的差异总结</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-add-favorite.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】360浏览器下加入收藏夹功能无效</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-shifting-unsigned-number.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】有符号数、无符号数的移位操作</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-textarea-auto-grow.html&from=http%3A%2F%2Fwitmax.cn%2Feasyxdm.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Javascript】文本框textarea高度随内容自适应增长收缩</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/easyxdm.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【印象笔记】无法收到邮箱验证邮件的处理方法</title>
		<link>http://witmax.cn/yin-xiang-email-verify.html</link>
		<comments>http://witmax.cn/yin-xiang-email-verify.html#respond</comments>
		<pubDate>Sun, 30 Jul 2017 06:23:36 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[网络应用]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3023</guid>
		<description><![CDATA[分享一个笔记本给朋友做协同编辑，结果注册了却收不到分享链接。 搜索一番后说有两种可能： 1、两边分别用的印象笔 [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="QQ域名邮箱初体验" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fqq-domain-mail.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/k2PrCSGv.png?i=QVkfWC4H" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">QQ域名邮箱初体验</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【WordPress】利用QQ域名邮箱发送留言提醒邮件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fsend-mail-using-qq-domain-mail.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/63.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】利用QQ域名邮箱发送留言提醒邮件</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="139邮箱初体验 | 赢G3笔记本、中国移动话费" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2F139-mail.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/24.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">139邮箱初体验 | 赢G3笔记本、中国移动话费</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【笔记】《格言》2009年第24期" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fnote-motto-200924.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/29.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【笔记】《格言》2009年第24期</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Outlook 2010设置发送邮件时默认抄送到指定邮箱" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Foutlook-2010-auto-cc.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/jnjnhARR.png?i=KBztRQit" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Outlook 2010设置发送邮件时默认抄送到指定邮箱</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>分享一个笔记本给朋友做协同编辑，结果注册了却收不到分享链接。</p>
<p>搜索一番后说有两种可能：</p>
<p>1、两边分别用的印象笔记和Evernote国际版导致不能共享</p>
<p>可以通过查看客户端》账户信息里的笔记接受邮箱的域名后缀来确认是用的印象笔记还是Evernote国际版。如果是不一样的话，换成一样的试试。确认我碰到的情况是一样的。</p>
<p><span id="more-3023"></span></p>
<p>2、点击工作群聊的按钮，提示注册的邮箱没有认证。</p>
<p>看了下好像是这样的，但用的QQ邮箱却一直收不到印象笔记的认证邮件。</p>
<p>1）在 QQ邮箱导航》邮箱首页》底部的自助查询》收件查询 里也看不到邮件</p>
<p>2）在 QQ邮箱导航》设置》反垃圾》设置域名白名单，将yinxiang.com、evernote.com、mailbox.evernote.com都加入了</p>
<p>期间还尝试了<a href="http://mail.qq.com/cgi-bin/help_feedback_rcverr?sid=lnabvJP1ByxREhtC&amp;nocheckframe=true">QQ邮箱收件投诉</a>；回到工作群聊，重新发送了一下认证邮件，竟然就收出来了，点击邮件里认证链接，搞定，再回到工作群聊已经能看到分享的笔记本了。</p>
<p>好是一番折腾。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
<tr>
<td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="QQ域名邮箱初体验" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fqq-domain-mail.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/k2PrCSGv.png?i=QVkfWC4H" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">QQ域名邮箱初体验</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【WordPress】利用QQ域名邮箱发送留言提醒邮件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fsend-mail-using-qq-domain-mail.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/63.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】利用QQ域名邮箱发送留言提醒邮件</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="139邮箱初体验 | 赢G3笔记本、中国移动话费" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2F139-mail.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/24.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">139邮箱初体验 | 赢G3笔记本、中国移动话费</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【笔记】《格言》2009年第24期" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fnote-motto-200924.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/29.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【笔记】《格言》2009年第24期</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Outlook 2010设置发送邮件时默认抄送到指定邮箱" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Foutlook-2010-auto-cc.html&from=http%3A%2F%2Fwitmax.cn%2Fyin-xiang-email-verify.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/jnjnhARR.png?i=KBztRQit" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Outlook 2010设置发送邮件时默认抄送到指定邮箱</font><br />
                    </a>
                </td>
</tr>
<tr>
<td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/yin-xiang-email-verify.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【百度】百度统计被劫持导致网站中被嵌入广告</title>
		<link>http://witmax.cn/baidu-tongji-hack.html</link>
		<comments>http://witmax.cn/baidu-tongji-hack.html#respond</comments>
		<pubDate>Mon, 26 Jun 2017 20:50:53 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[站点建设]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3016</guid>
		<description><![CDATA[公司网站中被莫名嵌入了广告导致浮层嵌入的iframe里看不到东西了，分析后发现是网络运营商搞得劫持；跟踪浏览器 [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="【WordPress】推荐广告展示插件Quick Adsense" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwp-quick-adsense.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/HOpHmLuf.png?i=FzA04hcl" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】推荐广告展示插件Quick Adsense</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【网站】攻击自动检测和自动屏蔽方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fauto-detect-attack.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/69.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【网站】攻击自动检测和自动屏蔽方法</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站活着不容易：网站存活全解析" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwebsite-live-analysis.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/95.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站活着不容易：网站存活全解析</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【百度地图API】显示特殊地图图标样式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fbaidu-map-api-icon.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/ZApirJJR.jpg?i=rTMlWFMb" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【百度地图API】显示特殊地图图标样式</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【网站】非法访问攻击防御脚本" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fauto_detect_attack_unknown.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/9.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【网站】非法访问攻击防御脚本</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>公司网站中被莫名嵌入了广告导致浮层嵌入的iframe里看不到东西了，分析后发现是网络运营商搞得劫持；跟踪浏览器请求反向追溯，最终找到是百度统计的js文件被302劫持了，直接打到了广告商的地址上。</p>
<p><strong>服务器端解决办法</strong>：</p>
<ul>
<li>对百度统计的js启用https链接，这也是<a href="http://tieba.baidu.com/p/4817888494?pid=107336228931&amp;cid=0#107336228931">官方给的解决方案</a>，<a href="https://tongji.baidu.com/web/help/article?id=219&amp;type=0">官方文档</a>也已经更新为使用https方式加载js</li>
</ul>
<p><span id="more-3016"></span></p>
<pre class="brush: plain; title: ; notranslate">//修改前的代码
hm.src=&quot;//hm.baidu.com/hm.js&quot;
//修改后的代码
hm.src=&quot;http://hm.baidu.com/hm.js&quot;</pre>
<p><strong>客户端解决办法：</strong></p>
<ul>
<li>在hosts中增加127.0.0.1 hm.baidu.com，然后重启浏览器就好了</li>
</ul>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
<tr>
<td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="【WordPress】推荐广告展示插件Quick Adsense" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwp-quick-adsense.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/HOpHmLuf.png?i=FzA04hcl" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【WordPress】推荐广告展示插件Quick Adsense</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【网站】攻击自动检测和自动屏蔽方法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fauto-detect-attack.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/69.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【网站】攻击自动检测和自动屏蔽方法</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站活着不容易：网站存活全解析" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fwebsite-live-analysis.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/95.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站活着不容易：网站存活全解析</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【百度地图API】显示特殊地图图标样式" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fbaidu-map-api-icon.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/ZApirJJR.jpg?i=rTMlWFMb" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【百度地图API】显示特殊地图图标样式</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="【网站】非法访问攻击防御脚本" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fauto_detect_attack_unknown.html&from=http%3A%2F%2Fwitmax.cn%2Fbaidu-tongji-hack.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/9.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">【网站】非法访问攻击防御脚本</font><br />
                    </a>
                </td>
</tr>
<tr>
<td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/baidu-tongji-hack.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Anki】知识记忆工具</title>
		<link>http://witmax.cn/anki.html</link>
		<comments>http://witmax.cn/anki.html#respond</comments>
		<pubDate>Wed, 21 Jun 2017 14:45:46 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[酷软搜索]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3015</guid>
		<description><![CDATA[先记录一下，用后再来补充使用感受 1.这个雷锋博主只有10篇关于anki的日志，系统易懂，非常推荐：记忆软件A [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Javascript基础知识测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-basic-test.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/5.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Javascript基础知识测试</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="新手买车选车知识锦囊" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fchoose-auto-tips.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/24.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">新手买车选车知识锦囊</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="C语言函数堆栈的思考" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fc-function-heap-stack.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/UpJJTE0B.png?i=hDHLdn2m" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">C语言函数堆栈的思考</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="批量邮件发送软件SendBlaster" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fsendblaster.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/7eyfrLe0.png?i=bREDasEB" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">批量邮件发送软件SendBlaster</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="向搜索引擎提交站点来增加收录" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fsubmit-site-to-search-engines.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/PWGCWfYo.png?i=165bXDNdB" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">向搜索引擎提交站点来增加收录</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<div>
<p>先记录一下，用后再来补充使用感受</p>
<p>1.这个雷锋博主只有10篇关于anki的日志，系统易懂，非常推荐：<a class="wrap external" href="https://link.zhihu.com/?target=http://basicmind.blog.163.com/blog/static/1766973342010112073322464/" target="_blank" rel="nofollow noreferrer noopener">记忆软件Anki的简单指南</a></p>
<p>2.这个视频有些过时了，但是被雷锋翻译成了中文，可作参考。<a class="wrap external" href="https://link.zhihu.com/?target=http%3A//blog.sina.com.cn/s/blog_8c8fd44b0100uci7.html" target="_blank" rel="nofollow noreferrer noopener">记忆辅助软件Anki入门视频</a></p>
<p>3.另一个博主。<a class="wrap external" href="https://link.zhihu.com/?target=http://leochanit.lofter.com/post/2476ba_54babc9" target="_blank" rel="nofollow noreferrer noopener">Anki简介-LearnHacks</a>；<a class="wrap external" href="https://link.zhihu.com/?target=http%3A//leochanit.lofter.com/post/2476ba_59866a8" target="_blank" rel="nofollow noreferrer noopener">Anki如何自定义卡牌类型？-LearnHacks</a><br />
他的全部日志里还有关于插件和如何插入表格，使用后期再了解也行</p>
<p>4.英文官网翻译成中文的介绍（繁体），右侧有目录。<a class="wrap external" href="https://link.zhihu.com/?target=http%3A//wlhunag.blogspot.com/2013/06/Anki-tutorial-introduction.html" target="_blank" rel="nofollow noreferrer noopener">大學生活紀事: Anki 教學</a></p>
<p><span id="more-3015"></span></p>
<p>•2.视频中的卡片可以在官网下载，<br />
①进入<a class="wrap external" href="https://link.zhihu.com/?target=https://ankiweb.net/shared/decks/" target="_blank" rel="nofollow noreferrer noopener">Anki - friendly, intelligent flashcards</a><br />
②点English,输入你想下载的内容，比如四级，然后search</p>
<p>•英语学习论坛，可以下载别人整理好的卡片，讨论这个软件稍微活跃点的地方。<a class="wrap external" href="https://link.zhihu.com/?target=http%3A//emagic.org.cn/forum-3-1.html" target="_blank" rel="nofollow noreferrer noopener">SuperMemo专区</a><br />
•ankichina的说明，叙述复杂<a class="wrap external" href="https://link.zhihu.com/?target=http:/www.ankichina.net/anki20.html" target="_blank" rel="nofollow noreferrer noopener">超级记忆法实践工作室</a></p>
</div>
<p><!--more--><br />
来源：<a href="https://www.zhihu.com/question/28335314">https://www.zhihu.com/question/28335314</a></p>
<p>&nbsp;</p>
<p>P.S. 另一个记忆卡软件：<a href="https://github.com/jwasham/computer-science-flash-cards">https://github.com/jwasham/computer-science-flash-cards</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
<tr>
<td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Javascript基础知识测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fjavascript-basic-test.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/5.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Javascript基础知识测试</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="新手买车选车知识锦囊" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fchoose-auto-tips.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/resources/images/related_item_default/24.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">新手买车选车知识锦囊</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="C语言函数堆栈的思考" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fc-function-heap-stack.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/UpJJTE0B.png?i=hDHLdn2m" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">C语言函数堆栈的思考</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="批量邮件发送软件SendBlaster" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fsendblaster.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/7eyfrLe0.png?i=bREDasEB" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">批量邮件发送软件SendBlaster</font><br />
                    </a>
                </td>
<td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="向搜索引擎提交站点来增加收录" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fsubmit-site-to-search-engines.html&from=http%3A%2F%2Fwitmax.cn%2Fanki.html"><br />
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://wumii-cc.wumii.cn/site_images/ti/PWGCWfYo.png?i=165bXDNdB" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">向搜索引擎提交站点来增加收录</font><br />
                    </a>
                </td>
</tr>
<tr>
<td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/anki.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【XAMPP】Another web server is already running的解决方案</title>
		<link>http://witmax.cn/xampp-another-web-server-is-already-running.html</link>
		<comments>http://witmax.cn/xampp-another-web-server-is-already-running.html#respond</comments>
		<pubDate>Sun, 18 Jun 2017 13:42:50 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[软件技巧]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3013</guid>
		<description><![CDATA[Linux下安装了xampp，结果遇到启动时Another web server is already run [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fapache-forbidden-permission.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Apache】Forbidden You don't have permission to access /tom on this server.的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-cannot-redeclare-class.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】Fatal error: Cannot redeclare class的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-memory-limit.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】Allowed memory size of xxx bytes exhausted的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】libphpcpp.so编译</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-is_numeric-vs-ctype_digit.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】检测数字字符串is_numeric与ctype_digit的区别</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>Linux下安装了xampp，结果遇到启动时Another web server is already running。修改了etc/httpd.conf里的Listen 80端口还是一样。</p>
<p>查了下原来是启动脚本xampp里有个一行语句写死了80端口检查，晕死，搞完就好了</p>
<pre class="brush: plain; title: ; notranslate">if testport 80</pre>
<p>p.s. 送一个查看linux版本的命令</p>
<pre class="brush: plain; title: ; notranslate">more /etc/issue</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fapache-forbidden-permission.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Apache】Forbidden You don't have permission to access /tom on this server.的解决办法</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-cannot-redeclare-class.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】Fatal error: Cannot redeclare class的解决办法</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-memory-limit.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】Allowed memory size of xxx bytes exhausted的解决办法</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flibphpcpp-compile.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】libphpcpp.so编译</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-is_numeric-vs-ctype_digit.html&from=http%3A%2F%2Fwitmax.cn%2Fxampp-another-web-server-is-already-running.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】检测数字字符串is_numeric与ctype_digit的区别</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/xampp-another-web-server-is-already-running.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Shell】Argument list too long的问题</title>
		<link>http://witmax.cn/shell-argument-list-too-long.html</link>
		<comments>http://witmax.cn/shell-argument-list-too-long.html#respond</comments>
		<pubDate>Mon, 12 Jun 2017 03:48:11 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3012</guid>
		<description><![CDATA[使用getconf ARG_MAX命令可以查看系统命令行最大长度限制；这个参数是系统内核定义的常量 Windo [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-echo-spaces.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】echo不显示变量中的多个空格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-mac-parse-parameters.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】MAC下脚本参数的解析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flinux-ftp-shell-script.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Linux】FTP自动化上传的Shell脚本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】特殊变量：$0, $#, $*, $@, $?, $$和命令行参数</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flinux-shell-programming-notes.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Linux】Shell编程笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>使用getconf ARG_MAX命令可以查看系统命令行最大长度限制；这个参数是系统内核定义的常量</p>
<ul>
<li>Windows下是32000</li>
<li>Max下是262144</li>
</ul>
<p>显然Windows下短了很多，脚本兼容期间，但参数超长时就需要做判断或改变命令调用方式</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-echo-spaces.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】echo不显示变量中的多个空格</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-mac-parse-parameters.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】MAC下脚本参数的解析</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flinux-ftp-shell-script.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Linux】FTP自动化上传的Shell脚本</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】特殊变量：$0, $#, $*, $@, $?, $$和命令行参数</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flinux-shell-programming-notes.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Linux】Shell编程笔记</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/shell-argument-list-too-long.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【Shell】特殊变量：$0, $#, $*, $@, $?, $$和命令行参数</title>
		<link>http://witmax.cn/shell-command-parameters.html</link>
		<comments>http://witmax.cn/shell-command-parameters.html#respond</comments>
		<pubDate>Sun, 11 Jun 2017 12:40:36 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3010</guid>
		<description><![CDATA[再举个带不带引号的例子 原文参考：Shell特殊变量：Shell $0, $#, $*, $@, $?, $$ [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-echo-spaces.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】echo不显示变量中的多个空格</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flinux-shell-programming-notes.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Linux】Shell编程笔记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】Argument list too long的问题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-mac-parse-parameters.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】MAC下脚本参数的解析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-read-line.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】逐行读取并处理文本（文件）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">Shell特殊变量：Shell $0, $#, $*, $@, $?, $$和命令行参数

特殊变量列表

变量	含义
$0		当前脚本的文件名
$n		传递给脚本或函数的参数。n 是一个数字，表示第几个参数。例如，第一个参数是$1，第二个参数是$2。
$#		传递给脚本或函数的参数个数。
$*		传递给脚本或函数的所有参数。
$@		传递给脚本或函数的所有参数。被双引号(&quot; &quot;)包含时，与 $* 稍有不同，下面将会讲到。
$?		上个命令的退出状态，或函数的返回值。一般情况下，大部分命令执行成功会返回 0，失败返回 1。
$$		当前Shell进程ID。对于 Shell 脚本，就是这些脚本所在的进程ID。


$* 和 $@ 的区别
$* 和 $@ 都表示传递给函数或脚本的所有参数，不被双引号(&quot; &quot;)包含时，都以&quot;$1&quot; &quot;$2&quot; … &quot;$n&quot; 的形式输出所有参数。
但是当它们被双引号(&quot; &quot;)包含时，&quot;$*&quot; 会将所有的参数作为一个整体，以&quot;$1 $2 … $n&quot;的形式输出所有参数；&quot;$@&quot; 会将各个参数分开，以&quot;$1&quot; &quot;$2&quot; … &quot;$n&quot; 的形式输出所有参数。

下面的例子可以清楚的看到 $* 和 $@ 的区别：
#!/bin/bash
echo &quot;\$*=&quot; $*
echo &quot;\&quot;\$*\&quot;=&quot; &quot;$*&quot;
echo &quot;\$@=&quot; $@
echo &quot;\&quot;\$@\&quot;=&quot; &quot;$@&quot;
echo &quot;print each param from \$*&quot;
for var in $*
do
    echo &quot;$var&quot;
done
echo &quot;print each param from \$@&quot;
for var in $@
do
    echo &quot;$var&quot;
done
echo &quot;print each param from \&quot;\$*\&quot;&quot;
for var in &quot;$*&quot;
do
    echo &quot;$var&quot;
done
echo &quot;print each param from \&quot;\$@\&quot;&quot;
for var in &quot;$@&quot;
do
    echo &quot;$var&quot;
done

执行 ./test.sh &quot;a&quot; &quot;b&quot; &quot;c&quot; &quot;d&quot;，看到下面的结果：
$*=  a b c d
&quot;$*&quot;= a b c d
$@=  a b c d
&quot;$@&quot;= a b c d
print each param from $*
a
b
c
d
print each param from $@
a
b
c
d
print each param from &quot;$*&quot;
a b c d
print each param from &quot;$@&quot;
a
b
c
d
说明：双引号包含时，&quot;$*&quot;的参数被当做一个整体，而&quot;$@&quot;还是遍历每一个参数</pre>
<p>再举个带不带引号的例子</p>
<pre class="brush: plain; title: ; notranslate"> #!/bin/bash

 str=&quot;a b c&quot;
 for var in $str
 do
     echo &quot;${var}&quot;
 done

 for var in &quot;$str&quot;
 do
     echo &quot;${var}&quot;
 done
执行后看到的结果：
a
b
c
a b c
</pre>
<p>原文参考：<a href="http://blog.csdn.net/u011341352/article/details/53215180" target="_blank" rel="noopener">Shell特殊变量：Shell $0, $#, $*, $@, $?, $$和命令行参数</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-echo-spaces.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】echo不显示变量中的多个空格</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Flinux-shell-programming-notes.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Linux】Shell编程笔记</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-argument-list-too-long.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】Argument list too long的问题</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-mac-parse-parameters.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】MAC下脚本参数的解析</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fshell-read-line.html&from=http%3A%2F%2Fwitmax.cn%2Fshell-command-parameters.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【Shell】逐行读取并处理文本（文件）</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/shell-command-parameters.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【MySQL】Warning(1265)Data truncated for column &#8216;XXX&#8217; at row 1的解决方案</title>
		<link>http://witmax.cn/mysql-warning-data-truncated-for-column.html</link>
		<comments>http://witmax.cn/mysql-warning-data-truncated-for-column.html#respond</comments>
		<pubDate>Sat, 10 Jun 2017 23:05:41 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[站点建设]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3009</guid>
		<description><![CDATA[遇到PhpMyAdmin打开所有页面都跳“Warning(1265)Data truncated for co [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】索引优化说明</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fcannot-connect-to-local-mysql.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-modify-time-zone-settings.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】修改时区设置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-unknown-table-engine-innodb-solution.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】Query failed: Unknown table engine ‘InnoDb’的解决办法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-myisam-vs-innodb.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】MyISAM与InnoDB的区别</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>遇到PhpMyAdmin打开所有页面都跳“Warning(1265)Data truncated for column 'XXX' at row 1”</p>
<p>原因：XXX字段定义不正确；我的是因为int字段结果设了默认值Null</p>
<p>解决方案：修改成正确的字段定义；我的将默认值Null去掉改为默认值0就好了</p>
<p>&nbsp;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】索引优化说明</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fcannot-connect-to-local-mysql.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-modify-time-zone-settings.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】修改时区设置</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-unknown-table-engine-innodb-solution.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】Query failed: Unknown table engine ‘InnoDb’的解决办法</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-myisam-vs-innodb.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】MyISAM与InnoDB的区别</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/mysql-warning-data-truncated-for-column.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【MySQL】索引优化说明</title>
		<link>http://witmax.cn/mysql-index-optimize.html</link>
		<comments>http://witmax.cn/mysql-index-optimize.html#respond</comments>
		<pubDate>Thu, 01 Jun 2017 14:02:32 +0000</pubDate>
		<dc:creator><![CDATA[晴枫]]></dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://witmax.cn/?p=3007</guid>
		<description><![CDATA[总结几点 where条件字段的顺序与索引是否命中无关，只要索引前几个字段都在where条件中即可命中 orde [&#8230;]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-modify-time-zone-settings.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】修改时区设置</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-transaction-split-table.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】事务与分库分表</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】Warning(1265)Data truncated for column 'XXX' at row 1的解决方案</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-query-db-size.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】查询所有数据库占用磁盘空间大小和单个库中所有表的大小</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-mysql-list-tables.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】获取MySQL数据库里所有表的方法</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
				<content:encoded><![CDATA[<p>总结几点</p>
<ol>
<li>where条件字段的顺序与索引是否命中无关，只要索引前几个字段都在where条件中即可命中</li>
<li>order by字段顺序与索引条件有关，必须与索引字段顺序一致</li>
<li>如果有多个单字段索引命中，会变成合并索引，但效率还是会低于直接的复合索引</li>
<li>查看索引效果，可以用explain关键字加sql语句的方式查看</li>
</ol>
<p>参考</p>
<ol>
<li><a id="cb_post_title_url" href="http://www.cnblogs.com/digdeep/p/4975977.html">MySQL 优化之 index merge(索引合并)</a></li>
<li><a href="http://blog.csdn.net/sforiz/article/details/5345359">要提高SQL查询效率where语句条件的先后次序应如何写</a></li>
<li><a id="cb_post_title_url" class="postTitle2" href="http://www.cnblogs.com/tangyanbo/p/6378741.html">sql查询调优之where条件排序字段以及limit使用索引的奥秘</a></li>
</ol>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
<tr>
<td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">猜您喜欢：</font></b></td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-modify-time-zone-settings.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】修改时区设置</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-transaction-split-table.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】事务与分库分表</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-warning-data-truncated-for-column.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】Warning(1265)Data truncated for column 'XXX' at row 1的解决方案</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fmysql-query-db-size.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【MySQL】查询所有数据库占用磁盘空间大小和单个库中所有表的大小</font><br />
                    </a>
                </td>
</tr>
<tr>
<td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.cn/images/widget/widget_solidPoint.gif"><br />
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwitmax.cn%2Fphp-mysql-list-tables.html&from=http%3A%2F%2Fwitmax.cn%2Fmysql-index-optimize.html"><br />
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【PHP】获取MySQL数据库里所有表的方法</font><br />
                    </a>
                </td>
</tr>
<tr>
<td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅关联推荐"><br />
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font><br />
            </a>
        </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://witmax.cn/mysql-index-optimize.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
