- 博客(10)
- 收藏
- 关注
转载 jquery一些好的插件
引入两个这两个js<script type="text/javascript" src="js/area.js" ></script><script type="text/javascript" src="js/bee.js" ></script>这个插件可以对一些输入框进行验证,1,手机号码校验,2,身份
2018-10-31 18:48:14
255
原创 web安全常见问题
1.客户端脚本安全 XSS攻击,通常指黑客通过“html注入” 篡改了网页,插入了恶意的脚本,从而在用户浏览网页的时候,控制用户浏览器的一种攻击。 最常见的XSS攻击就是通过读取浏览器的Cookie对象,从而发起“cookie劫持”,当前用户的登录凭证存储于服务器的session中,而在浏览器中是以cookie的形式进行存储的,cookie被劫持后,意味着攻击者可以不通过密码而...
2018-10-31 17:28:18
849
1
原创 java获取当前月第一天和最后一天,上个月第一天和最后一天
package com.test.packager;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;public class Test {private static String firstDay;private static String l...
2018-10-29 15:21:01
399
原创 常用sql语句
建表:create table t_student(id integer, name text, age integer, score real);create table if not exists t_student(id integer, name text, age integer, score real);删表:drop table t_student;d
2016-04-24 14:13:38
467
原创 UIWebView的基本用法
UIWebView是继承自UIView的 是获取浏览器的控件 下面让我们来了解它的用法:// 第一步 声明属性@property (nonatomic, strong) UIWebView *webView; 初始化self.webView = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds]NSU
2016-01-28 22:20:48
360
原创 UITextView的基本用法
这里我们来了解UITextView的基本属性和代理方法/* 继承 UIScrollView 和 UITextfield 属性基本相同 */首先声明属性@property (nonatomic, strong) UITextView *textView;// 初始化 self.textView = [[UITextView al
2016-01-28 16:46:24
514
原创 XML文件的解析和json的解析
解析就是从事先规定好的格式中提取数据XML的解析方式有两种 SAX解析 DCM解析(安卓有一个PULL)SAX解析:NSString *path = [[NSBundle mainBundle] pathForResource:@"Message" ofType:@"txt"];NSData *data = [NSData dataWithContentsOfFile:
2016-01-09 19:10:36
498
原创 常见的页面之间的传值
正向传值第一步:在目标控制器中声明属性@property (nonatomic, copy)NSString *text;第二步:在push之前将值赋给属性SecondViewController *svc = [[SecondViewController alloc] init];svc.text = self.fv.field.text;[self.navigation
2016-01-09 14:33:21
368
原创 常见手势的响应事件
每一个对象都有自己的 tag 值 在后面可以根据它的tag值取到这个视图view1.tag = 101;UIView *view2 = [self.view viewWithTag:101];手势: 轻拍 长按 旋转 啮合 平移 轻拍的响应事件UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] in
2016-01-08 16:51:29
752
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人