添加RequireJS假定在你的项目中,将所有JavaScript文件放在“scripts”目录中。例如,如果你的项目中有一个project.html页面,并且还有一些脚本,目录布局如下:project-directory/ project.html scripts/ main.js ...
分类:
Web程序 时间:
2014-07-14 22:51:13
阅读次数:
351
使用关键点:ReflectionClass
class Rbac extends MY_Controller
{
public function index()
{
$arr = glob( __DIR__ .DIRECTORY_SEPARATOR. '*.php');
// $arr = glob(dirname(__DIR__) . ...
分类:
Web程序 时间:
2014-07-14 18:36:44
阅读次数:
307
#@ root: the root of searched tree
#@ nodeToFind: the tree-node to be found
#@ path: the path from root to node
#@@
#@@ search tree referenced by root, and return the path
#@@ from root to node, if n...
分类:
其他好文 时间:
2014-07-14 16:45:51
阅读次数:
217
我新建的web程序,然后创建了一个jsp文件,然后jsp文件的第一行就出现红叉用鼠标点上去出现“Thesuperclass"javax.servlet.http.HttpServlet"wasnotfoundontheJavaBuildPath”e …… 不知道怎么说,后来就是先new 了一个ser...
分类:
编程语言 时间:
2014-07-14 15:22:37
阅读次数:
195
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205
1.“Cannot connect creator comm socket /tmp/qt_temp.u14973/stub-socket: No such file or directory ”的解决方法
2.”ptrace 不允许的操作“的解决方法...
分类:
其他好文 时间:
2014-07-12 23:20:51
阅读次数:
709
1.修改redhat enterprise5 语言
问题描述:切换语言
cd /etc/sysconfig
vi i18n
将LANG=en_US.UTF-8
改成LANG=zh_CN.gb2312
2.bash: ifconfig: command not found
问题描述:
切换到root用户下
[root@localhost /]$ ifconfig
依然提示:“bash: ifconfig: command not found”
whereis ifconfig 看一下这个命令在...
分类:
系统相关 时间:
2014-07-12 22:56:34
阅读次数:
416
用一个台老ITouch进行真机调试时,xcode无法认到,换不同版本的xcode也不行,且在organizer中提示No such file or directory, at ‘/SourceCache/DVTiOSFrameworks/DVTiOSFrameworks-5053/DTDeviceKitBase/DTDeviceKitBase_Utilities.m:1572’...
分类:
其他好文 时间:
2014-07-12 22:28:03
阅读次数:
336
1
最简单而又令人兴奋的命令: manage.py syncdb
创建了指定app中的model对应的数据库表,如果是第一次使用此命令,会提示是否创建超级用户,输入用户名,Email和密码,接着可以看到在创建索引:
2. validate
验证Model的正确性:manage.py validate,若Model全部有效,会提示:0 errors found.
3....
分类:
数据库 时间:
2014-07-12 20:31:24
阅读次数:
278
点击进行安装,将会弹出错误提示是:Cannotcompletetheinstallbecauseoneormorerequireditemscouldnotbefound.Softwarebeinginstalled:AndroidDevelopmentTools16.0.1.v2011121502...
分类:
其他好文 时间:
2014-07-12 15:48:14
阅读次数:
262