最近突然想把链接中的index.php去掉,网上搜索了一把,发现解决方法很多,整理下。首先是两个基本修改点:1. 在httpd.conf中,将 所有 AllowOverride None 改为 AllowOverride All 好像共有三处吧,然后重启apache2. 将 config.php中的...
分类:
数据库 时间:
2014-07-16 18:32:31
阅读次数:
254
思路:取得头部和内容的div,头部当前点击的高亮,其余的去除高亮,并通过index()方法获得当前点击的索引,然后内容div通过.eq(index)显示和隐藏优化:当前做法,从第一个快速移到最后一个,中间每个内容都会相继显示出来。比较好的用户体验是,从某个标签迅速移到另一个标签,中间不想看的内容不显...
分类:
Web程序 时间:
2014-07-16 18:32:00
阅读次数:
223
在线语音合成的使用方法:首先下载相关的sdk,这个网址里有多种版本,我选择的Android。http://open.voicecloud.cn/index.php/services/voicebase?type=tts&tab_index=1需要注意的是,最好先创建应用,审核通过后会返回一个APPI...
分类:
移动开发 时间:
2014-07-16 18:18:33
阅读次数:
456
一、路径1、dirname -- 返回路径中的目录部分 $path = "/etc/passwd"; $file = dirname($path); // "/etc"2、basename -- 返回路径中的文件名部分 $path = "/home/httpd/html/index.php"; $f...
分类:
Web程序 时间:
2014-07-16 17:47:43
阅读次数:
241
1.定义一个和要排序数组a[10]长度一样的数组, 这里定义为10,index[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9},值为10个下标。2. 用冒泡排序,索引值代替小下标即可#include "stdafx.h"int _tmain(int argc, _TCHAR...
分类:
其他好文 时间:
2014-07-16 17:46:21
阅读次数:
244
题目如下:
Stamps
The government of Nova Mareterrania requires that various legaldocuments have stamps attached to them so that the government canderive revenue from them. In ter...
分类:
其他好文 时间:
2014-07-16 17:23:55
阅读次数:
199
题目如下:
How Big Is It?
Ian's going to California, and he has to pack his things, including hiscollection of circles. Given a set of circles, your program mustfind the smallest r...
分类:
其他好文 时间:
2014-07-16 17:17:02
阅读次数:
259
题目如下:
Problem I
23 Out of 5
Input: standard input
Output: standardoutput
Time Limit: 1 second
Memory Limit: 32 MB
Your task is to writea program that can decide whether you can find an arithm...
分类:
其他好文 时间:
2014-07-16 17:16:32
阅读次数:
203
题目如下:
Mapping the Swaps
Sorting an array can be done by swapping certain pairs of adjacent entriesin the array. This is the fundamental technique used in the well-knownbubbl...
分类:
移动开发 时间:
2014-07-16 17:08:59
阅读次数:
252
使用索引快速全扫(index ffs) 来避免全表扫描...
分类:
其他好文 时间:
2014-07-16 11:13:17
阅读次数:
180