- 浏览: 112840 次
- 性别:
- 来自: 上海
最新评论
-
wuxi15932077655:
呵呵 !
Flex中利用labelPlacement属性在按钮控件(Button)中设置一个图标(icon)在 -
yyb:
不行啊,connect第一个参数是''时,这个路由不执行,如果 ...
Rails中使用request.subdomains来截取二级域名
文章列表
var mysocket:Socket=new Socket();
mysocket.addEventListener(Event.CLOSE,closeHandler);
mysocket.addEventListener(Event.CONNECT,connectHandler);
mysocket.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
mysocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);
mysocket. ...
- 2008-11-25 09:17
- 浏览 1424
- 评论(0)
package
{
import mx.controls.DataGrid
import flash.display.Sprite
public class MyDataGrid extends DataGrid
{
public function MyDataGrid()
{
super();
}
override protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void
{
i ...
- 2008-11-20 17:12
- 浏览 749
- 评论(0)
value = sx+sw*Math.SQRT2*Math.sin((ag-45)*Math.PI/180);
value = sx+sw*Math.SQRT2*Math.sin((ag-135)*Math.PI/180);
private function _do_r1(e:MouseEvent):void{
r1.angleFrom=r1.angleTo;
if (r1.angleFrom>=360) r1.angleFrom-=360;
r1.angleTo=r1.angleTo+90;
if (r1.angleTo >360) r1.angleTo ...
- 2008-11-20 17:11
- 浏览 654
- 评论(0)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function onSwfLoaded(event:Event):void{
Alert.show("end ...
- 2008-11-20 17:05
- 浏览 823
- 评论(0)
<mx:ArrayCollection id="arrColl" source="{arr}" />
<mx:DataGrid id="dataGrid"
dataProvider="{arrColl}"
alternatingItemColors="[white]"
rowHeight="20"
columnWidth=&quo ...
- 2008-11-17 09:50
- 浏览 531
- 评论(0)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Array id="arr" ...
- 2008-11-17 09:50
- 浏览 646
- 评论(0)
1. amfphp TypeError: Error #1009: 无法访问空对象引用的属性或方法。
class后面多了个空行
2. discuz 应用需要拷贝api目录
3.discuz auth cookie 无指问题
cookietime isset($_POST['cookietime']
4.一年就有365*24*60*60=31536000秒
5.用声音软件把声音压缩即可。推荐coolEdit。
- 2008-11-11 17:35
- 浏览 466
- 评论(0)
嵌入字体试下:
<mx:Style>
@font-face{
src:local("楷体");
fontFamily:myFont;
}
</mx;Style>
然后Application里设置 fontFamily:myFont;
- 2008-11-10 10:19
- 浏览 1388
- 评论(0)
setTimeout("window.location.href =\''.'http://www.g.cn\';"
- 2008-11-07 11:18
- 浏览 635
- 评论(0)
index.php内部服务器错误
short_open_tag =On
通信失败
在UCenter里面更改接口URL
- 2008-11-05 16:01
- 浏览 488
- 评论(0)
<?php
$cfg['blowfish_secret'] = 'ba17c1ec07d65003'; // use here a value of your choice
$i=0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
?>
Or, if you prefer to not be prompted every time you log in:
<?php
$i=0;
$i++;
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Server ...
- 2008-11-05 15:24
- 浏览 660
- 评论(0)
Sub LS()
Dim Rst As New ADODB.Recordset
Set Cnn = New ADODB.Connection
Cnn.Open "Provider = MicroSoft.Jet.OLEDB.4.0; Extended Properties = 'Excel 8.0;imex=1'; Data Source = " & _
ThisWorkbook.FullName
关键点为粉色
Sql = "Select 连接尺寸及标准, COUNT(LEFT(密 ...
- 2008-10-27 15:52
- 浏览 714
- 评论(0)
//精典代码,给大家共享:
// 获取所有 POST 或 GET 或 COOKIE 值,不再用 $_*["*"],可直接用 $*
foreach ($_GET as $hkey => $hk){ $postfield[]=$hkey;echo $hkey,"=",$hk,"<BR>";}
foreach ($_GET as $hk){ ${key($_GET)} = $hk; next($_GET);echo $hk,"<BR>";}
foreach ($_POST as $h ...
- 2008-10-18 09:55
- 浏览 921
- 评论(0)
算了,放弃 Alert.
自己用PopUpManager.createPopUp
原帖由 ASer 于 2008-5-5 12:42 发表
expression="{'[\u4e00-\u9fa5]'}"
为什么一定要上面这种写法呢? 绑定RegExp字符串???
而直接使用expression="[^\x00-\xff]"又可以用,但是把日文韩文也包含进来了
var pattern:RegExp = new RegExp(regular,"g");
事件传参数
_loader[i].contentLoaderIn ...
- 2008-10-17 20:40
- 浏览 1568
- 评论(0)
<?php phpinfo();?>有mysql信息
启动 phpmyadmin 2003错误:localhost --> 127.0.0.1?
httpd.conf
<VirtualHost *>
ServerName localhost
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
</VirtualHost>
###LoadModule php5_module "e:/php/php5ap ...
- 2008-10-14 17:29
- 浏览 718
- 评论(0)