Archive for 九月 10th, 2009

Komodo 5.2 Coming Soon!

Posted in 开发IDE on 九月 10th, 2009 by admin – Be the first to comment

Komodo IDE 5.2 is now in Beta, and scheduled for release mid-September. Along with some performance and stability improvements, we’ve added a lot of new things:
Ruby: Debugging support for Ruby 1.9.1 and up.
PHP: New PHP 5.3 support:
Code browser and section list support for namespaces
Code completions for /Namespaces
Syntax coloring of latest keywords (“namespace”, “use”, “as”, etc…)
Updated Xdebug builds to support PHP 5.3
…plus some debugging configuration improvements:
Improved debugger wizard for the first time setup
Support for a wider range of PHP builds on Windows
Sub-language background colors: You can now give sub-languages a different background color in multi-language buffers.
View HTML Source: Drag and drop an http:// or https:// URL onto Komodo to see the contents of the page.
You can see a full list of changes in the release notes.

详细
不知道 komodo edit会不会同步更新

数组随机排序

Posted in 前端技术 on 九月 10th, 2009 by admin – Be the first to comment
var wangwangList = ['咨询online','咨询online1','咨询online2','咨询online3']; 

	/**
	 * 随机排预
	 * @param 旺旺名字列表
	 * @returns HTML代码
	 **/
	function randomWangWang(A){
	    var B,C;
	    var X = [];
	    var j=0;
	    for(i=A.length;i>=1;i--){
		C=Math.floor(Math.random() * A.length);
		X[j] = outWangWangCode(A[C]);
		A.splice(C,1)
		j++;
	    }
	    return X
	}

	/**
	 * 转化为HTML链接形式
	 * @param 旺旺名字
	 * @returns HTML代码
	 **/
	function outWangWangCode(n){
	    var _n = encodeURIComponent(n);
	    var html='';
	    html += '
  • '; html += '点击这里给我发消息'+n+'
  • '; return html; } /** * 转出全部列表 * @param 写模式还是返回模式 * @returns HTML代码 **/ function writeWangWangHTML(write){ var html = '
      '; var x = randomWangWang(wangwangList); for(i in x ){ html += x[i]; } html += '
    '; return html; } //显示码 document.write(writeWangWangHTML());