let string = "点击注册按钮,即表示您已同意隐私条款和服务协议" let ranStr = "同意" let attrstring:NSMutableAttributedString = NSMutableAttributedString(string:string) let str = ...
分类:
编程语言 时间:
2016-08-12 18:19:43
阅读次数:
154
一、属性选择符 如下表所示: 例子如下: 二、伪对象选择符 CSS3将伪对象选择符(Pseudo-Element Selectors)前面的单个冒号(:)修改为双冒号(::)用以区别伪类选择符(Pseudo-Classes Selectors),但以前的写法仍然有效。 (1)、E:first-let ...
分类:
Web程序 时间:
2016-08-12 14:50:30
阅读次数:
168
最近研究个新玩意,叫window.AudioContext;不懂?没关系,我也是才接触,这完全可以说个全新领域,这玩意干啥的?顾名思义,媒体上下文,也就是你媒体的数据分析,就是一串数据啊?那有啥用呢?对,单纯的数据毫无意义,但是如果把数据结合canvas,就会产生神奇的效果(比如百度的echart) ...
分类:
其他好文 时间:
2016-08-12 13:20:32
阅读次数:
94
Sockets let you send raw streams of bytes back and forth between two computers, giving you fairly low-level access to the TCP/IP protocol. See the Fil ...
分类:
编程语言 时间:
2016-08-12 11:43:07
阅读次数:
236
一句话选择单个头像图片 新建ImagePickerViewController类: /* let imagePicker = ImagePickerViewController() imagePicker.delegate = self self.presentViewController(imag ...
分类:
编程语言 时间:
2016-08-11 17:29:52
阅读次数:
170
DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations only with these currencies....
分类:
其他好文 时间:
2016-08-10 19:31:17
阅读次数:
172
1 在application:didFinishLaunchingWithOptions:中注册通知时: //创建UIUserNotificationSettings,并设置消息的显示类型 let notifSetting = UIUserNotificationSettings(forTypes: ...
分类:
移动开发 时间:
2016-08-10 12:42:18
阅读次数:
252
sql: 解决方法: 将参数名(上面的例子为’parentId’)替换为”_parameter” As documented, parameterType is optional and it is usually better to let MyBatis detect it. As your s ...
分类:
编程语言 时间:
2016-08-09 20:41:57
阅读次数:
283
传送门SumdivTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 19009Accepted: 4773DescriptionConsider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo...
分类:
其他好文 时间:
2016-08-08 19:31:34
阅读次数:
224
本文简单介绍了使用Delegate方法的进行值的传递,改变上一个界面的字体大小和颜色首先创建一个导航视图:let viewC = ViewController(); let navigationC = UINavigationController.init(rootViewController: viewC); window?.rootViewController = ...
分类:
编程语言 时间:
2016-08-08 12:57:02
阅读次数:
208