码迷,mamicode.com
首页 >  
搜索关键字:pmm alert 报警    ( 10660个结果
js 控制 table style css
var table = objj.getElementsByTagName('table'); alert(table[i].width); if(table==null) return; for(var i=0; iparseInt(objj.style.width)) { table...
分类:Web程序   时间:2014-08-08 11:57:16    阅读次数:230
form不提交问题
var confirmOrderForm=document.getElementById("confirmOrderForm"); var url="${pageContext.request.contextPath }/confirmOrder/confirmOrder.action?team=aa"; alert(url); confirmOrderForm.action=url; c...
分类:其他好文   时间:2014-08-08 02:05:05    阅读次数:126
jquery中form中使用submit出现的问题,未解决
$("#login_btn").click(function(){在type为submit的按钮下 if($("#id_password").val().length == 0){//检验密码是否为空 $('form').submit(function(){ alert("1") return false; }); }else...
分类:Web程序   时间:2014-08-07 23:15:25    阅读次数:282
JQuery操作TABLE,及console.info问题。
还用alert 吗?看看console.info吧,代码的测试平台:ie9, firefox12?1. [代码][JavaScript]代码Insert title here del tbody del row tbody empty ...
分类:Web程序   时间:2014-08-07 18:47:00    阅读次数:240
浅谈JavaScript中的原型模式
person2和person3的name属性都返回dw。原型对象的属性和方法被所有特定类型的实例共享。在默认的情况下,每个原型对象会自动获得一个constructor属性,用于指向prototype属性所在函数的指针,如Person.prototype.constructor指向Person alert(Person.prototype.constructor); //返回Person的构造函数 //Person.prototype.constructor只是指向Person的一个指针,与Person...
分类:编程语言   时间:2014-08-07 15:48:50    阅读次数:178
ajaxFileUpload异步上传资源,onchange多次调用问题的解决方案
一、上传文件的做法1 前端代码upload js方法function upload() { alert("haha"); $.ajaxFileUpload({ url : "xxxx", secureuri : false, fileEl...
分类:其他好文   时间:2014-08-07 15:37:10    阅读次数:333
I should know the content of js
阻止事件传播,必须显示,return false; return exp?confirm():!!alert(); js 定时器,线程,启动,开始,停止。参数传递,使用window; js扩展: String.prototype.Trim = String.prototype.trim = function() {...
分类:Web程序   时间:2014-08-07 13:35:00    阅读次数:250
Javascript 原型注意事项
function abc() {} abc.prototype.xx = { name: "keatkeat" } var x = new abc(); x.xx.name = "5566"; alert(...
分类:编程语言   时间:2014-08-07 12:58:59    阅读次数:248
Javascript Promise 学习
Promise 就是处理异步的一个规范方法a();b();alert("a");如果a() 里面有一个ajax 或者settimeout那么alert("a") 会先跑这就是异步了。从前我们用一堆callBack函数来解决问题,但是这样写不好看。promise 的写法美丽多了依据上面的例子a().t...
分类:编程语言   时间:2014-08-07 12:18:09    阅读次数:275
nodeValue的兼容问题
nodeValue获取Text或Comment元素的文本值. 在IE6、IE7、IE8中游览器会自作聪明的去掉前面的空白字符text,而其他现代游览器则会保留空白 span 12345 678 var text = document.getElementsByTagName('p')[0].firstChild.nodeValue; alert(text.length)...
分类:其他好文   时间:2014-08-07 00:50:37    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!