下边是两种前台接收并遍历list$.ajax({ type: 'post', url: xxx.action', dataType: 'text', success: function(data){ var dataO...
分类:
Web程序 时间:
2015-11-25 21:12:23
阅读次数:
158
$p_w_picpath=ImageCreateFromJPEG("img/6.jpg");
$cor=p_w_picpathcolorallocate($p_w_picpath,0,0,0);
$font=‘debiao.ttf‘;
$tt=‘我们的灵魂‘;
$a=im($p_w_picpath,120,0,150,150,$cor,$font,$tt,50);
header(‘Content-type:p_w_picpath/jpeg‘);
p_w_picpathjpeg($p_w_picpat..
分类:
其他好文 时间:
2015-11-25 17:06:44
阅读次数:
147
今天遇到个问题,内部通讯录表(ADDRESS_BOOK),需要增加个字段,但这个表是系统表,不允许修改。如果我们想修改平台的数据表,该怎么办呢?那么首先得转换成普通表。在表table_info里查看字段为table_name,找到需要的表,然后查看字段table_type里面(0,普通表;1系统表)..
分类:
其他好文 时间:
2015-11-25 17:06:01
阅读次数:
122
div:nth-of-type(n) //父级元素下的第n个div元素div:nth-child(n) //父级元素下的第n个元素举个例子()代码如下:123456上面代码中div:nth-of-type(3) 获取的是5而div:nth-child(3)获取的是3
分类:
其他好文 时间:
2015-11-25 16:39:50
阅读次数:
111
select sum(`value`) from testtable where value != 'error' AND type ='b' in (select DISTINCT(type) from testtable);SELECT type,subtype,SUM(value) AS TO...
分类:
数据库 时间:
2015-11-25 11:26:17
阅读次数:
207
调用网站:a.xxx.com jQuery(document).ready(function () { $.ajax({ type: "get", async: true, url: "http://www.xxx.co...
分类:
Web程序 时间:
2015-11-25 10:12:39
阅读次数:
116
C风格的强制类型转换(Type Cast)很简单,不管什么类型的转换统统是: TYPE b = (TYPE)a C++风格的类型转换提供了4种类型转换操作符来应对不同场合的应用。 const_cast,字面上理解就是去const属性。 static_cast,命名上理解是静态类型转换。如...
分类:
编程语言 时间:
2015-11-25 08:43:14
阅读次数:
180
console.clear();const counter = (state = 0, action) => { switch (action.type) { case 'INCREMENT': return state + 1; case 'DECREMENT': ...
分类:
其他好文 时间:
2015-11-25 06:37:07
阅读次数:
185
新建好项目后,把system.web.mvc.dll移除,重新选择本地C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies下的system.web.mvc.dll,编译出现问题提示:“The type or namespa...
分类:
Web程序 时间:
2015-11-25 00:24:58
阅读次数:
282
一句话总结反射:反射就是将java类中的各种成分映射成相应的java类int.class与Integet.TYPE一样,都是返回int的Class实例Class类里的 isPrimitive()方法是判断这个Class对象是否是基本类型(只有在9中情况下返回true,int.class...等8中基...
分类:
编程语言 时间:
2015-11-24 22:54:22
阅读次数:
169