码迷,mamicode.com
首页 >  
搜索关键字:cdh alert    ( 8573个结果
Ext.MessageBox消息框
Ext JS消息提示框主要包括:alert、confirm、prompt、show 1、Ext.MessageBox.alert() 调用格式: alert( String title, String msg, [Function fn], [Object scope] ) 参数说明: t...
分类:其他好文   时间:2014-06-11 12:16:46    阅读次数:323
js方法的命名不能使用表单元素的名称或ID
今天在写页面的时候,遇到一个关于js方法的命名问题,先看下代码:表单元素如下:js方法如下:function isCulture(obj) { alert(123);}但是当页面执行onchange事件时,Firebug控制台报出异常:TypeError: isCulture is not a...
分类:Web程序   时间:2014-06-11 08:49:31    阅读次数:264
hust 1027 Enemy Target!
题目描述In the Game Red Alert, a group of soviet infantry marches towards our base. And we have N Prism Tanks to defend our base. Suppose the coming infan...
分类:其他好文   时间:2014-06-11 07:18:54    阅读次数:285
判断iframe里的页面加载完成
//判断iframe是否加载完成,RMid为iframe的ID document.getElementById("RMid").onload = function () { alert("加载完成"); } //在父框架操作iframe页面里的AddReceipt2方法 window.frames["RMid"].AddReceipt2();...
分类:其他好文   时间:2014-06-09 23:16:14    阅读次数:238
在Android的webview中定做js的alert,confirm和prompt对话框的方法
http://www.cnblogs.com/flyoung2008/archive/2012/03/13/2393680.htmlhttp://www.educity.cn/wenda/114602.html
分类:移动开发   时间:2014-06-09 13:12:50    阅读次数:189
jQuery使用serialize(),serializeArray()方法取得表单数据+字符串和对象类型两种表单提交的方法
原始form表单值获取方式(手动):$.ajax({ type: "POST", url: "ajax.php", data: "Name=摘取天上星&position=IT技术", success: function(msg){alert(msg);}, error: function(error){alert(error);} });JQ serialize()...
分类:Web程序   时间:2014-06-08 16:19:01    阅读次数:280
js字符串函数
JS自带函数concat将两个或多个字符的文本组合起来,返回一个新的字符串。var a = "hello";var b = ",world";var c = a.concat(b);alert(c);//c = "hello,world"indexOf返回字符串中一个子串第一处出现的索引(从左到右搜...
分类:Web程序   时间:2014-06-08 06:30:26    阅读次数:191
一个Flex 对话框的坑
最近在项目中遇到一个问题,在Flex中使用Alert.show("this is content!", "title");发现对话框可以弹出来,但是文本始终不显示。why? 由此开始了我苦逼的排查之路。首先,可以排除没有引入包 import mx.controls.Alert;的问题。如果没有引入包...
分类:其他好文   时间:2014-06-08 06:24:58    阅读次数:216
js 判断字符串是否包含某字符串,String对象中查找子字符,indexOf
var Cts = "bblText";   if(Cts.indexOf("Text") > 0 ) {     alert('Cts中包含Text字符串'); } indexOf用法:  返回 String 对象内第一次出现子字符串的字符位置。         strObj.indexOf(subString[, startIndex])         参数  ...
分类:Web程序   时间:2014-06-08 05:00:36    阅读次数:300
jQuery 获取屏幕高度、宽度
做手机Web开发做浏览器兼容用到了,所以在网上找了些汇总下。alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());...
分类:Web程序   时间:2014-06-07 20:10:32    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!