lua中的require机制 为了方便代码管理,通常会把lua代码分成不同的模块,然后在通过require函数把它们加载进来。现在看看lua的require的处理流程。1、require机制相关的数据和函数 package.path:保存加载外部模块(lua中"模块"和"文件"这两个概念的分界比较含...
分类:
其他好文 时间:
2014-07-01 21:02:05
阅读次数:
222
IE8下测试通过,测试告诉我在火狐浏览器中出现问题,打断点发现问题1、不进入springmvc解决办法是:;jsessionid= //上传处理程序url 'uploader' : '${path}/bpmAttachController/fileUpload.do;jsessionid=2、进入s...
分类:
编程语言 时间:
2014-07-01 20:53:42
阅读次数:
1529
读函数readssize_tread(intfd,void*buf,size_tnbyte)read函数是负责从fd中读取内容.成功时,read返回实际所读的字节数,假设返回的值是0,表示已经读到文件的结束了.小于0表示出现了错误.假设错误为EINTR说明读是由中断引起的,假设是ECONNREST表...
分类:
其他好文 时间:
2014-07-01 20:45:14
阅读次数:
241
一、在HTML中嵌入Javasript的方法直接在Javascript代码放在标记对之间由同一段脚本,函数定义可以出现在函数调用的后面,但是如果是分别在两段代码,且函数调用在第一段代码中,则会报函数未定义错误。document.write()会把输出写入到脚本文档所在的位置,浏览器解析完docume...
分类:
编程语言 时间:
2014-07-01 20:37:31
阅读次数:
259
DirectoryInfo sourceDirectory = new DirectoryInfo(Path.Combine(Path.GetFullPath(new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName)....
分类:
其他好文 时间:
2014-07-01 20:26:26
阅读次数:
213
方法一:function getExt($url){ $urlinfo = parse_url($url); $file = basename($urlinfo['path']); if(strpos($file,'.') !== false) { $ext = explode('....
分类:
Web程序 时间:
2014-07-01 19:09:47
阅读次数:
1274
MAX_PATH的解释: 文件名最长256(ANSI),加上盘符(X:\)3字节,259字节,再加上结束符1字节,共260http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspxhttp://supp...
#includevoid main(){const int count = 5;//定义数量struct student{char name[80];float math,eng;float aver;}stu[count],temp;//输入for (int i = 0; i stu[sub].a...
分类:
编程语言 时间:
2014-07-01 13:32:56
阅读次数:
257
https://oj.leetcode.com/problems/path-sum//** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNod...
分类:
编程语言 时间:
2014-07-01 13:09:20
阅读次数:
198
/**
* 水仙花数
* */
public class Daffodil {
public static void main(String[] args) {
int max = 9999 ;
int min = 10 ;
for(int x=min;x<max;x++){
String temp = String.valueOf( x ) ;
int ...
分类:
其他好文 时间:
2014-07-01 11:27:48
阅读次数:
201