常规的思考 A().B().C(); 那么 可以调用B方法依赖于 A()的返回值 即 A返回的对象有B方法属性 ES6的proxy出现 先看一段代码 是不是很神奇 链式加载 这个也可以叫做懒加载 (是不是有一个 很重要的名词 )promise 于是用Proxy重写了promise的简单方法 使用th ...
分类:
Web程序 时间:
2018-10-27 11:53:09
阅读次数:
333
thymeleaf 语法详解1.变量输出: th:text :在页面中输出某个值 th:value :将一个值放到input标签中的value中。2.判断字符串是否为空 ①:调用内置对象一定要用# ②:大部分的内置对象都已s结尾(strings,numbers,dates) ${#strings.i ...
分类:
编程语言 时间:
2018-10-26 10:38:18
阅读次数:
210
1 . onclick事件 <a th:onclick="'javascript:more()'" ></a> 2.引入CSS样式 <link th:href="@{fore/css/public.css}" rel="stylesheet"> 3.引入js 文件 <script th:src="@ ...
分类:
其他好文 时间:
2018-10-25 15:46:00
阅读次数:
174
接上篇《Centos7配置ThinkPHP5.0完整过程(一)》,开始配置PHP环境 安装php 安装扩展程序 在/var/www/html目录下新建文件index.php,写入如下内容 然后在浏览器中访问服务器的地址 http://192.168.0.110,如果显示如下界面,则安装成功 配置Th ...
分类:
Web程序 时间:
2018-10-25 12:08:51
阅读次数:
426
http://codeforces.com/contest/1015/problem/C Ivan has nn songs on his phone. The size of the ii-th song is aiai bytes. Ivan also has a flash drive whi ...
分类:
其他好文 时间:
2018-10-24 22:24:48
阅读次数:
290
DescriptionGiven an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.Th... ...
分类:
其他好文 时间:
2018-10-24 22:15:00
阅读次数:
157
1.概念 The Link Manager Protocol (LMP) is used to control and negotiate all aspects of the operation of the Bluetooth connection between two devices. Th ...
分类:
其他好文 时间:
2018-10-24 12:12:01
阅读次数:
236
题目: The park management finally decided to install some popular boxing machines at various strategic places in the park. In fact, to compensate for th ...
分类:
其他好文 时间:
2018-10-23 18:00:25
阅读次数:
166
class a { public $fullPermutationArr = array(); public function fullPermutation($arr, $str = '') { $cnt = count($arr); if ($cnt == 1) { array_push($th ...
分类:
Web程序 时间:
2018-10-22 14:50:04
阅读次数:
306
http://codeforces.com/contest/1029/problem/B You are given a problemset consisting of nn problems. The difficulty of the ii-th problem is aiai. It is ...
分类:
其他好文 时间:
2018-10-20 21:04:15
阅读次数:
176