![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Javscript
亮亮1990
ing...
展开
-
条件 从左移动到邮编
$(function () { $("#text_left").html("123456789011223232AAAAA"); }); function Onleft1() { for (var i = 0; i < document.all.text_left.options.length; i++) {原创 2014-05-04 17:36:39 · 561 阅读 · 0 评论 -
两整数相除,返回最小整数
Floor: 返回小于或等于指定值得最大整数 例如:Floor(6.5) : 6Ceiling: 返回大于或等于指定值得最小整数 例如:Floor(6.5) : 7int i = 9; int j = 7; Console.WriteLine(Math.Ceiling((double)i / j));原创 2014-04-03 12:49:06 · 823 阅读 · 0 评论 -
JS 添加事件
New Document function method1(){ alert("呼叫方法1"); } function method2(){ alert("呼叫方法2"); } function method原创 2014-04-03 12:51:32 · 536 阅读 · 0 评论 -
生成某网址的二维码
thisURL = document.URL; strwrite = ""; document.write( strwrite );转载 2014-04-03 13:14:45 · 601 阅读 · 0 评论 -
FCKeditor 配置使用 JS获取FCKeditor内容
二.FCKeditor ★FCKeditor的配置使用及JS获取FCKeditor内容一、FCKeditor的配置使用拷贝fckeditor文件到webroot目录下,右击文件根目录--MyEclipse--Exculde From Validation--不进行有效性验证1._samples文件夹为例子2.页面添加如下代码 //设置js文件路径转载 2014-04-21 09:05:21 · 750 阅读 · 0 评论 -
Javascript获取select的选中值和选中文本
var obj = document.getElementById(”select_id”); //selectidvar index = obj.selectedIndex; // 选中索引var text = obj.options[index].text; // 选中文本var value = obj.options[index].value; // 选中值原创 2014-06-20 08:12:03 · 839 阅读 · 0 评论 -
showModalDialog
var sURL = "ProductTypes.aspx"; var returnValue = window.showModalDialog(sURL, "dialogHeight=100px;dialogWidth=200px"); $("#txt_ProTypeName").val(returnValue);原创 2014-06-20 08:21:13 · 542 阅读 · 0 评论 -
JS输出中文乱码问题解决
1. 设置页面编码:html; charset=utf-8" />原创 2014-07-30 15:33:49 · 1166 阅读 · 0 评论 -
ajax Jsonp 跨域原理
Test Jsonpfunction jsonpCallback(result){alert(result.msg);} 其中 jsonCallback 是客户端注册的,获取跨域服务器上的json数据后,回调的函数。http://crossdomain.com/jsonServerResponse?jsonp=jsonpCallback 这个 url 是跨域服务器取 js原创 2016-05-20 17:51:35 · 378 阅读 · 0 评论