`
可爱的小野人
  • 浏览: 33542 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
<html> <head> <style> #colorpad table{ border-collapse:collapse; cellpadding:0; cellspacing:0; width:255px; height:255px; border:0; } #colorpadright table{ border-collapse:collapse; cellpadding:0; cellspacing:0; width:255px; height:20px; bo ...
<html> <body> <h2>测试剩余字数</h2> <textarea id="inputword"></textarea> <input type="text" id="lastwordnum" value="10"> </body> <script type="text/javascript"> var textareaobj=document.getEleme ...
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- 添加title文字左侧的小图标代码 --> <link rel="shortcut icon" href="/Struts2/img/favicon.ico" type="image/x-icon" /> <title>Struts2(建设中)</title> ...
public class halfsearch { private static final int NOT_FOUND = -1; public static <AnyType extends Comparable<? super AnyType>> int binarySearch(AnyType[] a,AnyType x){ //DEFINE FIRST INDEX AND LAST INDEX int low=0,high=a.length-1; //WHILE LOW POINTER AT THE FRONT O ...
刚接手一个codeigniter的项目,写个示例代码,分享下~   由于使用了 Active Record 类,一般数据库操作只有两层,即是C和V   controllers/login.php <?php class Login extends CI_Controller { private $pass = ''; public function __construct() { parent::__construct (); $this->load->helper ( array ( 'form', 'url' ...
放假在家无聊一把,装了win7和fedora17的双系统,记下一些安装注意点,以作记号 一、要用Fedora光盘版的镜像,不要用live版本安装双系统,经测试目前为止安装不能顺利进行。 二、安装完成后,添加f的启动菜单,EeayBCD2.2修改引导文件,推荐使用grub2引导 三、win下分出10GFAT32文件格式的硬盘空间和至少30G的spare空间 四、安装引导文件的写法 title install fedora 17 root (hd0,X) kernel /vmlinuz linux askmethod root=/dev/sdaY initrd /initrd.img bo ...
做一个控件时碰到的一些无法同步处理的事件,可以用这样的延迟方法。 <html> <script src="js/jquery.js"></script> <script> $(function(){ $('#test').bind("click",function(){ setTimeout(function(){alert($('#test').val());},800); }); $('#test').bind("blur",function(){ $('#test ...
@echo off echo 请输入要显示的文件夹目录: set /p floaderna= dir %floaderna% /b/s >list.txt ::/b 省略辅助信息 ::/s显示目录和所有子目录的信息 set floaderna= echo list.txt已经在当前目录下生成 echo author:wj echo 感谢使用! PAUSE
小弟刚接触P处理,发些学习笔记上来,各位走过路过的大侠,凶器自备... @echo off setlocal enabledelayedexpansion echo 开始更改文件名 set extension=.txt set /a sum=0 for %%m in (*) do ( if not "%%m"=="rename.bat" ( set /a sum+=1 echo !sum! ren %%m !sum!%extension% ) ) echo 文件改名完毕,一共有%sum%个文件被改名! set sum= s ...
Global site tag (gtag.js) - Google Analytics