说起kenai,那其实是要说很多很多东西的,比如说,netbeans整合了它,比如说他现在属于oracle了,比如说他是一个开源代码库,类似于Sf.net等。
但是,今天上午收到一封邮件说,kenai.com即将关闭了,不再为开源代码库提供服务了。
邮件主题很简单:The Closure of Project Kenai。
邮件内容也很简单:
XML/HTML代码
- It's with a sad heart that we have to announce that the Kenai.com domain will be shutdown as part of the consolidation of project hosting sites now that Sun is a wholly owned subsidiary of Oracle.
-
- Project Kenai has always existed as two different things: Kenai the infrastructure, and Kenai the website (Kenai.com). While it has come time to close the domain of Kenai.com, the infrastructure (which is already used under NetBeans.org) will live on to support other domains in the future.
然后就是告诉我,该准备一下往其他源代码服务器上迁移,并且提示我可以用subversion等工具把代码拷贝出来。否则。。。唉。
可怜我的sbphp就是放在kenai上面的现在,是全完了。不过反正我也准备重写了,倒也无所谓,只是又少了一个源代码迁入的地方。看来netbeans也需要更新了。期待再次整合一个网站。
jQuery这个框架方便了我们对于HTML元素的操作,本来以为自己对于Select操作也算是熟悉了,但上午在测试的时候才发现自己了解的还真不多。
看了一下jQuery的一些方法后,理出了一些常用的方法,列在下面:
JavaScript代码
-
- $('#test option:first').val();
-
- $('#test option:last').val();
-
- $('#test option:eq(1)').val();
-
- $('#test').val();
- $('#test option:selected').val();
-
- $('#test').attr('value','2');
-
- $('#test option:last').attr('selected','selected');
- $("#test").attr('value' , $('#test option:last').val());
- $("#test").attr('value' , $('#test option').eq($('#test option').length - 1).val());
-
- $('#test option').length;
-
- $("#test").append("<option value='9'>ff</option>");
- $("<option value='9'>ff</option>").appendTo("#test");
-
- $('#test option:selected').remove();
-
- $('#test option:first').remove();
-
- $('#test option').each(function(){
- if( $(this).val() == '5'){
- $(this).remove();
- }
- });
- $('#test option[value=5]').remove();
-
-
- $('#test optgroup:eq(0)').attr('label');
-
- $('#test optgroup:eq(1) :option:eq(0)').val();
想来应该够用了吧?呵呵