数组判断方法 伪数组 数组方法兼容性写法 用数组的方法操作字符串 需注意,字符串是不变值,故当把它们作为数组看待时,它们是只读的,数组的,push、sort、reverse、splice 等方法对它无效,而且使用这些方法出现错误时,也不会有错误提示!!! ...
分类:
编程语言 时间:
2017-04-28 09:19:38
阅读次数:
266
比如要将表user 中的字段 username修改为 name: 其他关于表字段信息的修改: 1、添加字段:给表 user 添加字段 password 在 id 后面; 2、添加主键:给表 user 添加 id 为主键 3、添加主键时,如果主键是 int 类型,为了方便可以让其 自增长 4、删除字段 ...
分类:
数据库 时间:
2017-04-27 23:06:38
阅读次数:
215
版本可以选择最新的版本。 如果不是需要手动添加jar包的话,需要导入下面两个jar包: 1、commons-fileupload-1.2.2.jar 2、commons-io-2.0.1.jar jar包引入后,我们接下来需要去配置一下配置文件,在配置文件里面加入下面内容: 接下来是上传页面jsp ...
分类:
编程语言 时间:
2017-04-27 15:42:24
阅读次数:
202
如果我们希望禁止站内搜索,毕竟会是的MYSQL负担加重,我们可以禁止掉,然后在使用第三方搜索组件。比如用百度站内搜索或者360站内搜索。 function fb_filter_query( $query, $error = true ) {if ( is_search() ) {$query->is ...
分类:
其他好文 时间:
2017-04-27 13:59:01
阅读次数:
193
1.新建项目 scrapy start_project book_project 2.编写items类 3.编写spider类 # -*- coding: utf-8 -*- import scrapy from book_project.items import BookItem class Bo ...
分类:
编程语言 时间:
2017-04-27 12:42:30
阅读次数:
438
Alice and Bob are playing a stone game. Initially there are n piles of stones and each pile contains some stone. Alice stars the game and they alterna ...
分类:
其他好文 时间:
2017-04-26 22:56:20
阅读次数:
170
cat /etc/sysctl.conf #CTCDN系统优化参数 #关闭ipv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 # 避免放大攻击 net.ipv4.icmp_echo_ignore ...
分类:
其他好文 时间:
2017-04-26 19:17:03
阅读次数:
148
<template> <div class="city-select" id="city"> <select v-model="selectedProvince" name="province"> <option v-for="(item, index) in provinces" v-if="it ...
分类:
Web程序 时间:
2017-04-26 19:15:30
阅读次数:
261
这一篇《我的MYSQL学习心得(十)》将会讲解MYSQL的存储过程和函数 MYSQL中创建存储过程和函数分别使用CREATE PROCEDURE和CREATE FUNCTION 使用CALL语句来调用存储过程,存储过程也可以调用其他存储过程 函数可以从语句外调用,能返回标量值 创建存储过程 语法 p ...
分类:
数据库 时间:
2017-04-26 15:54:43
阅读次数:
259
.blur{ filter: blur(6px); -webkit-filter: blur(6px); /* chrome, opera */ -ms-filter: blur(6px); -moz-filter: blur(6px); filter:progid:DXImageTransform... ...
分类:
Web程序 时间:
2017-04-26 14:34:53
阅读次数:
136