var colors = ["red", "blue", "green"]; // 创建一个包含3 个字符串的数组 console.log(colors.toString()); // red,blue,green console.log(colors.valueOf()); // red,blue... ...
分类:
其他好文 时间:
2017-07-05 13:47:15
阅读次数:
160
1:通过position:absolute定位,上下左右的值都设为0,margin:auto;需要知道div的宽高 { width: 64px; height: 64px; border: 1px solid red; position: absolute; top: 0; left: 0; bot ...
分类:
Web程序 时间:
2017-07-04 18:12:08
阅读次数:
142
/** 1. OC [UIView alloc] initWithXXX:] Swift UIView(XXX:) 类名() == alloc / init 等价 2. 类方法 OC [UIColor redColor] Swift UIColor.red 3. 访问当前对象的属性,可以不使用‘se ...
分类:
编程语言 时间:
2017-07-04 09:50:15
阅读次数:
194
一、基本过滤器 :first $('li:first') 选取第一个元素 :last $('li:last') 选取最后一个元素 :not(selector) $('li:not(.red)') 选取class不是red的li元素 :even $('li:even') 选择索引(0开始)是偶数的所有 ...
分类:
Web程序 时间:
2017-07-03 19:52:59
阅读次数:
291
1.检查是否安装yum软件包.[root@localhost~]#rpm-qa|grepyumyum-utils-1.1.31-24.el7.noarchyum-langpacks-0.4.2-3.el7.noarchyum-metadata-parser-1.1.4-10.el7.x86_64yum-rhn-plugin-2.0.1-4.el7.noarchPackageKit-yum-0.8.9-11.el7.x86_64yum-3.4.3-118.el7.noarch2.删除Red..
分类:
其他好文 时间:
2017-07-03 15:01:24
阅读次数:
224
一、简单选择器 元素 $('div') 只允许出现一次 id $('#id') 类 $('.class') 长度可以用length属性和size()方法来获取,id长度为一个,其他可以为多个 元素缺失js和jq的不同 $('#pox').css('color', 'red'); //不存在 ID 为 ...
分类:
Web程序 时间:
2017-07-02 22:10:56
阅读次数:
198
CSS引入方式 主要有3种引入方式:内嵌、内联、外联 1.内嵌 <h1 style="color: red;">我使用内嵌的写法加入CSS样式</h1> 个人不推荐使用这种,除非只会用一次样式 2.内联 <style> h2{ color: green; } </style> <h2>我在使用内联的 ...
分类:
Web程序 时间:
2017-07-02 19:48:07
阅读次数:
165
1.拼接字符串:return "redirect:/page/second?param1=lay¶m2=lay2";2.采用RedirectAttribute来传参数: public String first(RedirectAttribute redirectAttribute){ red... ...
分类:
编程语言 时间:
2017-07-02 10:14:38
阅读次数:
363
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
编程语言 时间:
2017-07-01 17:16:29
阅读次数:
133
css的基础篇 全称:cascading style sheets 中文名称为:层叠样式表/级联样式表 标签的快捷方式是 ctrl+? 键 css中有内嵌,实例: <h1 style = "color:red">这个就是使用内嵌的方式将h1颜色改为红色</h1>' css中有内联,实例:<head> ...
分类:
Web程序 时间:
2017-07-01 16:22:36
阅读次数:
168