Skip to content

Instantly share code, notes, and snippets.

View pzzrudlf's full-sized avatar
💭
I may be slow to respond.

pzzrudlf pzzrudlf

💭
I may be slow to respond.
View GitHub Profile
http://www.ycchen.cc/
1.根据操作系统类型,下载相应的RepoForge的yum源rpm软件包:repoforge.org
2.安装下载到的rpm软件包
[root@localhost ~]# rpm -ivh rpmforge-release-i686 /*根据系统平台而定,如64位则为rpmforge-release-x86_64*/
3.在yum下查找所有文件名包括ntfs字符的软件包
[root@localhost ~]# yum list | grep ntfs
4.选择安装查找到的软件包
[root@localhost ~]# yum install -y fuse-ntfs-3g.i686 /*根据系统平台而定,如64位则为fuse-ntfs-3g.x86_64*/
5.利用无参数的mount命令查看当前系统所支持的文件系统类型,会发现此时系统已能够支持ntfs
----------------------------------------
在windows上面后台运行可以使用start 命令 并且指定/b 选项
start /b php-cgi -b 127.0.0.1:9000
linux系统需要在命令后面加上& 符号即可。
----------------------------------------
windows上面查看进程,使用tasklist 命令
tasklist | findstr "nginx mysqld php-cgi"
function parseQuery(query){
var args = {};
var items = query.split("&");
var item = null, name = null, value = null;
for(var i=0; i < items.length; i++){
item = items[i].split("=");
if(item[0]){
name = item[0];
value = item[1] ? item[1] : "";
http://www.cnblogs.com/DeanChopper/p/4707757.html
select *
from core.point
right join core.point_category_rel on core.point.id = core.point_category_rel.point_id
join core.point_category on core.point_category.id = core.point_category_rel.category_id
SELECT
*
FROM
core.point_category_rel
LEFT JOIN core.point_category ON core.point_category_rel.category_id = core.point_category.id
1\nginx
sudo vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/
gpgcheck=0
enabled=1
sudo yum install nginx
sudo systemctl start nginx
关于form表单底下 button自动提交表单的问题
今天遇到一个很恶心的问题,form表单底下的button按钮标签 每次点击 都会将表单自动提交,根本就起不到一个按钮的作用了,郁闷半天,搜索半天,终于顿悟,下面上来解决办法。
1 经过测试 将button标签这只上 type="button"的属性 即可解决问题
2 用<input type="button"> 标签也可以解决问题
change the declaration way of the specific function that you defined
<script>
window.onload = function(){
//there may occur some errors. 'referenceError:exeSelect() is not defined'
function exeSelect(param)
{
console.log(param);
}