<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[LerTong]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ootiantong</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ootiantong]]></copyright><item><title><![CDATA[vue 根据变量值来判断显示class]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/114592118</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/114592118</guid><author>ootiantong</author><pubDate>Tue, 09 Mar 2021 17:48:37 +0800</pubDate><description><![CDATA[判断单个

&lt;view class="tt" :class="{'m-t-10':变量==1}"&gt;&lt;view&gt;



判断多个

&lt;view class="tt" :class="[{'m-t-10':变量==1}, {'m-t-20':变量==2}]"&gt;&lt;view&gt;
]]></description><category></category></item><item><title><![CDATA[win10 拉取镜像错误解决方法]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/109056199</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/109056199</guid><author>ootiantong</author><pubDate>Tue, 13 Oct 2020 17:11:54 +0800</pubDate><description><![CDATA[错误示例：

docker: failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer C:\ProgramData\Docker\windowsfilter\d2dab1878cf591d869d33aa2c4cd410cd92614a44c776041c506fc765c1a98f1: The system cannot find the path specified.

解决：

在安装时选择了Wi]]></description><category></category></item><item><title><![CDATA[win10 启动 docker 错误解决方法：]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/109056085</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/109056085</guid><author>ootiantong</author><pubDate>Tue, 13 Oct 2020 17:10:35 +0800</pubDate><description><![CDATA[打开 cmd ，进入 doker 安装目录


cd "C:\Program Files\Docker\Docker" 
./DockerCli.exe -SwitchDaemon



]]></description><category></category></item><item><title><![CDATA[使用docker搭建nginx+php环境]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/109054285</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/109054285</guid><author>ootiantong</author><pubDate>Tue, 13 Oct 2020 16:17:50 +0800</pubDate><description><![CDATA[Docker 安装 Nginx

我们可以使用docker search nginx命令查找 Docker Hub 上的 nginx 镜像,这里直接拉取官方的镜像



[root@localhost ~]# docker pull nginx


等待下载完成后，我们就可以在本地镜像列表里查到 REPOSITORY 为 nginx 的镜像。



[root@localhost ~]# docker images
REPOSITORY   TAG      IMAGE ID            CR..]]></description><category></category></item><item><title><![CDATA[docker镜像内没有vim]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/109054165</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/109054165</guid><author>ootiantong</author><pubDate>Tue, 13 Oct 2020 16:14:00 +0800</pubDate><description><![CDATA[问题：

我们在容器中找不到vim等命令



原因：

镜像制作的时候没把这些东西加进去



解决：

用apt update更新源之后再安装vim


apt update
apt-get install -y vim


就可以使用了。
]]></description><category></category></item><item><title><![CDATA[将webstorm开发工具的关闭当前标签快捷键改为ctrl+w的方法]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/109029261</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/109029261</guid><author>ootiantong</author><pubDate>Mon, 12 Oct 2020 15:51:01 +0800</pubDate><description><![CDATA[1、在webstorm菜单栏中依次选择File-&gt;Setting。

2、找到Keymap，然后搜索Extend Selection，然后双击搜索结果，选择remove ctrl+w



3、然后搜索close，在结果中找到如图所示的位置（默认快捷键是 ctrl+f4），然后双击，选择add Keyboard Shortcut



4、在新弹出窗口中直接按ctrl+w，点确定，无需重启webstorm，新的快捷键就可以用了。



PS:本操作方法一样适用于phpstorm。
...]]></description><category></category></item><item><title><![CDATA[js 判断变量，是否空、是否存在、是否定义]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/108767026</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/108767026</guid><author>ootiantong</author><pubDate>Thu, 24 Sep 2020 09:39:18 +0800</pubDate><description><![CDATA[JavaScript本身没有判断一个变量是不是空值的函数，因为变量有可能是string，object，number，boolean等类型，类型不同，判断方法也不同。

如果变量是undefined，null，''，NaN，false，0，[]，{}，空白字符串，都返回true，否则返回false


function isEmpty(v) {
    switch (typeof v) {
    case 'undefined':
        return true;
    case 's...]]></description><category></category></item><item><title><![CDATA[字符串转对象: JSON.parse(str)]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/108766891</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/108766891</guid><author>ootiantong</author><pubDate>Thu, 24 Sep 2020 09:31:29 +0800</pubDate><description><![CDATA[字符串转对象: JSON.parse(str)

var str = '{dlong: "out"}'

打印：



console.log(JSON.parse(str))

打印


]]></description><category></category></item><item><title><![CDATA[js对象操作之对象重组、对象添加对象、对象的值添加键名]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/108550268</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/108550268</guid><author>ootiantong</author><pubDate>Sat, 12 Sep 2020 15:59:03 +0800</pubDate><description><![CDATA[知识点：

js 中括号 [] 是数组，花括号 {} 是对象
	对象数据 冒号左边是key，冒号右边是值；
	for in 遍历对象数据
例如：这样一个对象数据 obj = { 'a':'aa','b':'bb','c':'cc' }，给对象值添加一个key，并添加一个序号，新对象new_obj = {}


&lt;script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"&gt;&lt;/script&gt;

&lt;div id=...]]></description><category></category></item><item><title><![CDATA[web - 一个页面多个倒计时 js]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/83409942</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/83409942</guid><author>ootiantong</author><pubDate>Fri, 26 Oct 2018 09:27:25 +0800</pubDate><description><![CDATA[说明：方法1， 方法二是基础原理版，方法三升级版（参考for循环，定时器，闭包混合一块的那点事。）

方法一：


&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang=&quot;en&quot;&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset=&quot;UTF-8&quot;&amp;gt;
    &amp;lt;title&amp;gt;倒计时&amp;lt;/title&amp;gt;
&am]]></description><category></category></item><item><title><![CDATA[PHP保留2位小数 格式化小数、浮点数 四舍五入]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/83054761</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/83054761</guid><author>ootiantong</author><pubDate>Mon, 15 Oct 2018 10:04:25 +0800</pubDate><description><![CDATA[
&amp;lt;?php

/** 1.number_format */

$number = 1234.5678;
$nombre_format_francais = number_format($number, 2, ',', ' '); // 1234,57
$english_format_number = number_format($number, 2, '.', '');   // 1234...]]></description><category></category></item><item><title><![CDATA[PHP 产生m个n范围内的不重复随机数]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/83015145</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/83015145</guid><author>ootiantong</author><pubDate>Thu, 11 Oct 2018 17:01:48 +0800</pubDate><description><![CDATA[ 

PHP高效产生m个n范围内的不重复随机数（m&amp;lt;=n)

方法一：


&amp;lt;?php

for ($i=1;$i&amp;lt;=52;$i++) {
	$arr[]= $i;
}

shuffle($arr);
print_r($arr);

方法二：

注：在《 Programming Pearls 》一书中也有提到，题目为“如何高效产生m个n范围内的不重复随机数（m&amp;lt;=n)”该算...]]></description><category></category></item><item><title><![CDATA[下载远程地址图片]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/83006553</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/83006553</guid><author>ootiantong</author><pubDate>Thu, 11 Oct 2018 09:08:28 +0800</pubDate><description><![CDATA[
$arr = [
	'http://p9kz8vr3a.bkt.clouddn.com/1426576827874.jpg'
];

echo count($arr);

function download($url, $path = 'images/')
{
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_s...]]></description><category></category></item><item><title><![CDATA[html 基本模板 初始代码 bootstrap]]></title><link>https://blog.youkuaiyun.com/ootiantong/article/details/83000206</link><guid>https://blog.youkuaiyun.com/ootiantong/article/details/83000206</guid><author>ootiantong</author><pubDate>Wed, 10 Oct 2018 17:24:39 +0800</pubDate><description><![CDATA[ Bootstrap 是当下最流行的前端框架（界面工具集）。 是一个用于快速开发 Web 应用程序和网站的前端框架。用于开发响应式布局、移动设备优先的 WEB 项目。

 


&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang=&quot;zh-CN&quot;&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset=&quot;utf-8&quot;&amp;gt;
    &amp;lt;meta http]]></description><category></category></item></channel></rss>