GISer

导航

随笔分类 -  JS

(转)You might not need jQuery
摘要:You might not need jQueryYou certainly can support IE 9 and below without jQuery, but we don't. Please stop messing with us.jQuery and its cousins are great, and by all means use them if it makes it easier to develop your application.If you're developing a library on the other hand, please t 阅读全文

posted @ 2014-02-12 09:15 于小栋 阅读(650) 评论(0) 推荐(0)

Window.Open详解(转)
摘要:一、window.open()支持环境:JavaScript1.0+/JScript1.0+/Nav2+/IE3+/Opera3+二、基本语法:window.open(pageURL,name,parameters) 其中:pageURL 为子窗口路径 name 为子窗口句柄 parameters 为窗口参数(各参数用逗号分隔) 三、示例:<SCRIPT> <!-- window.open ('page.html','newwindow','height=100,width=400,top=0,left=0,toolbar=no,men 阅读全文

posted @ 2011-10-08 15:08 于小栋 阅读(210) 评论(0) 推荐(0)

Aptana Studio 3启动时提示 Workspace Cannot Be Created 解决办法(转)
摘要:原因:I just ran into this same issue. It's caused by having your "My Documents" folder mapped to a different drive. The installer and program assume it's located on the C:/ drive and attempt to create or open the workspace there.就是由于你把“我的文档”的位置修改造成的。但Aptana还以为“我的文档”的位置是在系统的默认路径下。解决办法 阅读全文

posted @ 2011-10-08 13:22 于小栋 阅读(609) 评论(0) 推荐(0)

JavaScript 调用后台方法及变量(转)
摘要:一,后台方法:protected string CsharpVoid(string strCC){return strCC;}javascript 调用<script language="javascript"> var s = "<%=CsharpVoid("www.esoutong.com")%>"; document.write(s);</script>二,1.后代码:protected void CsharpVoid() { string strCC = "www.esoutong 阅读全文

posted @ 2011-09-14 13:12 于小栋 阅读(837) 评论(3) 推荐(0)

js 操作select和option(转载)
摘要:1.动态创建selectfunction createSelect(){var mySelect = document.createElement("select"); mySelect.id = "mySelect"; document.body.appendChild(mySelect); }2.添加选项optionfunction addOption(){//根据id查找对象, var obj=document.getElementById('mySelect');//添加一个选项obj.add(new Option(". 阅读全文

posted @ 2011-09-08 16:55 于小栋 阅读(306) 评论(0) 推荐(0)