05 2016 档案
摘要:($y/$maxy)) { $bili=$y/$maxy; }else{ $bili=$x/$maxx; } $x=floor($maxx*$bili); $y=floor($maxy*$bili); $small=imagecreatetruecolor($x, $y); imagecopyresampled($small,$big,0,0,0,0,$x,$y,$maxx,$maxy); ...
阅读全文
摘要:fileName=$fileName; $this->maxSize=$maxSize; $this->allowMime=$allowMime; $this->allowExt=$allowExt; $this->uploadPath=$uploadPath; $this->imgFlag=$imgFlag; ...
阅读全文
摘要:导航 Session购物车练习 商品信息管理-购物车练习 添加商品 浏览商品 我的购物车 清空购物车 Examples 名称 类型 ...
阅读全文
摘要:优点:减轻服务器的负担,按需取数据,最大程度的减少冗余请求局部刷新页面,减少用户心理和实际的等待时间,带来更好的用户体验基于xml标准化,并被广泛支持,不需安装插件等进一步促进页面和数据的分离缺点:AJAX大量的使用了javascript和ajax引擎,这些取决于浏览器的支持.在编写的时候考虑对浏览
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { public delegate void del(); class Program { static void Main...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { public delegate int ceshi(T o1, T o2); s...
阅读全文
摘要:public delegate int ceshi(object o1, object o2); static void Main(string[] args) { string[] a = { "abCdeg", "ssxAf" }; object [] b = { 2, 9, 5, 6 }; ...
阅读全文
摘要:int n = 1; double zg = 1; double rb = 4; while (zg < rb) { n++; int k = 1; while (k <= 4) ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 { public delegate void ceshi(string[] names); class Program { ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xm...
阅读全文
摘要:读取 if (File.Exists("Book.xml")) { XmlDocument doc = new XmlDocument(); doc.Load("Book.xml"); XmlElement root = doc.DocumentElement; ...
阅读全文
摘要:90后的无奈: 当我们出生的时候,奶粉里都有毒了, 当我们长身体的时候,只能吃垃圾食品了, 当我们要上幼儿园的时候,开始乱收费了, 当我们大学毕业的时候,毕业就是失业了, 当我想努力赚钱的时候股市倒了, 当我想努力谈恋爱的时候帅哥都成GAY了, 当我想追求一切流行的时候,又开始非主流了! 80后的无
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.IO; namespace ConsoleApplication1 { class Program { static void M...
阅读全文
摘要:上传页面 用的是bootstrap ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO...
阅读全文
摘要:function page($count,$pagesize=3){ $Page=new \Think\Page($count,$pagesize); //每页显示记录数 $Page->setConfig('header','共%TOTAL_ROW%条记录 每页'.C('PAGE_SIZE').'条 第%NOW_PAGE%页/共%TOTAL_PAGE%页'); $Page...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO...
阅读全文
摘要:OpenFileDialog open = new OpenFileDialog();//创建对话框 open.InitialDirectory = @"C:\Documents and Settings\All Users\桌面"; //设置对话框路径 open.Title = "对话框1"; //对话框标题 open....
阅读全文
摘要:电脑using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace shitou { class diannao { public int chuanquan() { Random rd = n...
阅读全文
摘要:List<string> mp = new List<string>(); private void Form1_Load(object sender, EventArgs e) { string[] path = Directory.GetFiles(@"C:\Documents and Sett
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using DBHelper;...
阅读全文
摘要:string a = this.textBox1.Text; // string [] b=a.Split("\r\n".ToCharArray(),StringSplitOptions.RemoveEmptyEntries); string[] b = textBox1.Lines; string
阅读全文
摘要:double a = double.Parse( this.textBox1.Text); double b = double.Parse(this.textBox2.Text); double c =0; switch (this.comboBox1.Text) { ...
阅读全文