- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 javascript函数调用笔记
好吧,函数调用难道是我的死穴么?!! mark先,等解决了再补充 function output() { var str = document.getElementsByName("str").item(0).value; $("p#output").text(myMD5(str)); var d =$("p#output").text(); //push(d,"sfsfs");
2012-10-10 09:08:08
276
原创 POJ2503
#include #include #include using namespace std; const int TableSize=20627; //vectoreng; struct Dic { char eh[30]; char fl[30]; }dic[100000]; vector a[100000]; int Hash(string s) { unsigned int
2012-10-09 19:47:59
330
原创 php函数调用笔记
今天做王大BOSS的作业,身为php小白痴的我遇到了很崩溃的问题 当我写到类似下面的代码的时候,我在body调用了上面声明的getPath()函数,结果里面的path却没有任何返回值. <?php $path="path"; function getPath() {return $path;} ?> This is the path:
2012-10-08 21:25:30
279
原创 java中关于replaceAll和appendReplacement的笔记
今天在会友哥的电政导论课上写法师的作业,很简单,就是实现一个函数:屏蔽字符串参数text 中的网页链接信息,并且替换成"OMIT"+计数器. 正则表达式没有什么问题,但是在计数器上面就悲剧了,最初是用String 中的 replaceAll函数进行匹配和替换,三行代码搞掂: String s = text.replaceAll(regex,"OMIT"+(count++)); return
2012-09-29 11:35:35
1004
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅