关键词:bat,bat获取文件内容 1.获取每行内容 @echo offfor /f "delims=" %%i in (config.txt) do (echo "%%i")timeout /t 100 2.在for中执行多条命令 一般形式: for in (set) do (命令a&命令b&命令c) 案例: @echo offfor /f "delims=" %%i in (Config.txt) do (set /p=&qu…
getQueryString:function(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } 例如: www.baidu.com?id=10 这里调用上述fuc,并…
text = 'The rain in Spain falls mainly in the plain.'first = Hash.new []second = Hash.new {|hash,key| hash[key] = []} text.split(/\W+/).each do |word| p "word: #{word}" p first[word[0, 1].downcase].object_id first[word[0, 1].downcase] << w…
<html> <head> <script type="text/javascript" language="javascript"> var idTmr; function method1(tableid) {//整个表格拷贝到EXCEL中 var curTbl = document.getElementById(tableid); var oXL = new ActiveXObject("Excel.Applicat…
-- 将游标中的数据 读取到table中 根据部门编号获得emp所有信息. declare cursor c(no emp.deptno%type)is select * from emp where deptno=no; --1.定义游标 type emp_table_type is table of emp%rowtype index by binary_integer; --2.定义table emp_table emp_table_type; --4.使用 table row1 emp%…