Fork me on GitHub
.net求学者

随笔分类 -  JavaScript

JavaScript、Jquery
摘要:在开发中需要在网页中嵌入OCX控件,但是控件嵌入后,总是会出现在网页最顶层,页面中的浮动DIV总是不能正常显示,会被遮蔽掉,那么这里就需要特殊处理一下: OBJECT会遮蔽掉页面内容,但是IFRAME又可以遮蔽掉OBJECT,而DIV可以遮蔽掉IFRAME,所以我们在浮动的DIV中放入一个IFRAM 阅读全文
posted @ 2016-05-19 23:18 hy31337
摘要:easyui-tabs动态添加 <div class="easyui-tabs" fit="true" border="false" id="tabs" style="height: 500px;"> <div title="首页"> <div align="center" style="paddi 阅读全文
posted @ 2016-05-19 23:14 hy31337 阅读(542) 评论(0) 推荐(0)
摘要:源码: 提示:需要先设置table默认宽、高 具体实例来源 建议使用JqGrid或EasyUI等固定表头表列,此例仅供参考学习 阅读全文
posted @ 2016-05-18 23:49 hy31337 阅读(1485) 评论(0) 推荐(0)
摘要://在子页面加按钮的方式 var api = frameElement.api, W = api.opener; api.button({ id: 'valueOk', name: '确定', callback: true }); //api.button({ // id: 'valueCancel', ... 阅读全文
posted @ 2016-03-24 20:18 hy31337 阅读(258) 评论(0) 推荐(0)
摘要:JS打多个类型星级评分: javascript星级评分 ... 阅读全文
posted @ 2015-06-04 17:32 hy31337 阅读(488) 评论(0) 推荐(0)
摘要:百度地图API 批量添加 带检索功能的信息窗口 请先选择城市百度地图API 批量添加 带检索功能的信息窗口 阅读全文
posted @ 2015-05-11 15:08 hy31337 阅读(3160) 评论(0) 推荐(0)
摘要:百度地图 自定义结果面板+分页+图层标注(标注点+搜索)示例一: 示例二: 52个市场... 阅读全文
posted @ 2015-05-06 19:08 hy31337 阅读(8672) 评论(0) 推荐(1)
摘要:window.resizeTo(800,600); //js设置浏览器窗口尺寸 window.open (function(){ resizeTo(640,480);//设置浏览器窗口尺寸 moveTo(0,0);//设置浏览器位置 })() screen.availHeight;//显示屏最高高度 阅读全文
posted @ 2015-04-16 16:27 hy31337 阅读(543) 评论(0) 推荐(0)
摘要:Canvas is not supported in your browser. 阅读全文
posted @ 2015-03-27 18:24 hy31337 阅读(665) 评论(0) 推荐(0)
摘要:/*数组*/ var arr = [["name", "value"], ["name1", "value1"]]; var item; for (item in arr) { alert("Name: " + item[0] + ", Value: " + item[1]); } $.e... 阅读全文
posted @ 2015-03-27 18:21 hy31337 阅读(890) 评论(0) 推荐(0)
摘要:《parctical common lisp》的作者曾说,如果你需要一种模式,那一定是哪里出了问题。他所说的问题是指因为语言的天生缺陷,不得不去寻求和总结一种通用的解决方案。 不管是弱类型或强类型,静态或动态语言,命令式或说明式语言、每种语言都有天生的优缺点。一个牙买加运动员, 在短跑甚至拳击方面... 阅读全文
posted @ 2015-02-05 10:23 hy31337 阅读(273) 评论(0) 推荐(0)
摘要:js简单弹出层 点击弹出1 关闭 点击查看 >> 点击弹出2 这个是用来实现拖层 遮罩层 ... 阅读全文
posted @ 2015-02-03 14:00 hy31337 阅读(907) 评论(0) 推荐(0)
摘要:.NET 后台中using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Sys... 阅读全文
posted @ 2015-01-19 08:53 hy31337 阅读(2583) 评论(0) 推荐(0)
摘要:\x65\x76\x61\x6c是否启用\x加密 \x65\x76\x61\x6c是否启用\x加密 阅读全文
posted @ 2014-11-20 14:38 hy31337 阅读(488) 评论(0) 推荐(0)
摘要:输入字数,有效字符: 阅读全文
posted @ 2014-09-24 11:21 hy31337 阅读(284) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2014-09-24 11:20 hy31337 阅读(191) 评论(0) 推荐(0)
摘要:<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript"> var mytimer = null; function beginEv 阅读全文
posted @ 2014-08-01 14:31 hy31337 阅读(2979) 评论(0) 推荐(0)
摘要:Mozilla中: addEventListener的使用方式: target.addEventListener(type, listener, useCapture); target: 文档节点、document、window 或 XMLHttpRequest。 type: 字符串,事件名称,不含 阅读全文
posted @ 2014-07-18 09:43 hy31337 阅读(621) 评论(0) 推荐(0)
摘要:1、关于页面元素的引用通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。2、jQuery对象与dom对象的转换只有jquery对象才能使用jquery定义的方法... 阅读全文
posted @ 2014-06-05 10:16 hy31337 阅读(150) 评论(0) 推荐(0)
摘要:第二章 15 Days of jQuery 比window.onload 更快一些的载入window.onload()是传统javascript 里一个能吃苦耐劳的家伙。它长久以来一直被程序员们作为尽快解决客户端页面载入问题的捷径。但有时候等待页面载入还是不够快。只 有少数大型的图片文件会被快速的载... 阅读全文
posted @ 2014-06-05 10:15 hy31337 阅读(344) 评论(0) 推荐(0)

.net求学者