![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Javascript
lk5423968
Everything will be better, and better, just clam down do my best to accumulate
展开
-
JavaScript调用pc和手机摄像头
GetUserCamera var getUserMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); getUserMedia.原创 2016-11-17 17:09:02 · 1187 阅读 · 0 评论 -
Connecting the dots with jQuery, JSONP, and WebAPI
I did some pair-programming with my friend Julie Lerman where we looked into what we thought was a simple jQuery AJAX request problem. What we found was something a bit more interesting in the connec转载 2015-06-26 23:35:21 · 593 阅读 · 0 评论 -
Jquery Cross-Domain ajax call using JSONP
Hi everyone. We all know the role of ajax and its implementation. We can use ajax in asp.net as well as in javascript/jquery. But there is aEditorial NoteThis articles was originally at wiki.asp原创 2015-06-26 23:25:56 · 904 阅读 · 0 评论 -
菜鸟福利-----以有道翻译API为例说明mui ajax的用法详解
第一步:在有道官方网站申请一个API key举例:API key:1207861310keyfrom:abc1243调用说明:http://fanyi.youdao.com/openapi.do?keyfrom=&key=&type=data&doctype=&version=1.1&q=要翻译的文本版本:1.1,请求方式:get,编码方式:utf-8主要功能:中英原创 2015-06-24 22:47:53 · 6322 阅读 · 2 评论 -
10个程序员最喜欢的 HTML和CSS 等在线代码编辑器
一般软件开发中必备的一样工具就是代码编辑器。传统的代码编辑器一般都是以软件安装包的形式安装到电脑里面,代码编辑保存后一般也是通过ftp或者svn等工具提交到服务器的(当然,像.NET开发中Microsoft Visual Studio这样强大的集成工具另说了。)。 在实际的项目开发中这样的方式也是挺便捷的。但是,随着各种云服务的兴起,云存储时代几乎已经是大势所趋了。个人或者小公司搭建一个原创 2014-09-02 16:29:49 · 1090 阅读 · 0 评论 -
How to load all files from directory using JQuery ?
var dir = "Src/themes/base/images"; varfileextension=".png"; $.ajax({ //This will retrieve the contents of the folder if the folde原创 2013-08-22 00:51:54 · 812 阅读 · 0 评论 -
Soma.js – Your Way Out of Chaotic JavaScript
http://flippinawesome.org/2013/07/15/soma-js-your-way-out-of-chaotic-javascript/ What is a scalable application?A scalable application has the ability to grow in a capable manner. Applications o转载 2013-07-23 14:01:24 · 1419 阅读 · 0 评论 -
Capturing Audio & Video in HTML5 Examples
ExamplesThis sample code exposes a button. When clicked, the button is disabled and the user is prompted to offer a stream. The user can cause the button to be re-enabled by providing a stream (e.原创 2013-07-12 14:29:12 · 925 阅读 · 0 评论 -
Unexpected call to method or property access
· ClickStart· ClickAll Programs· ClickAccessories· Right clickCommand Prompt· ClickRun as Administrator· TypeREGSVR32 /U JSCRIPT.DLL·原创 2012-11-19 20:25:19 · 1357 阅读 · 0 评论 -
Cross Domain Ajax: a Quick Summary
Here are a few of the most popular ways to do cross domain calls via JavaScript: proxies, JSON, and Flash.Cross domain proxyThis is one of the most common approaches. Your script calls your server原创 2012-04-14 12:02:10 · 751 阅读 · 0 评论 -
Use jQuery To Retrieve Data From An XML File
Step One: Review The ScriptFirst, let’s take a look at our simple XML file. It merely contains a few books along with their title, image and description. info goes here.原创 2012-03-07 17:22:59 · 615 阅读 · 0 评论 -
为什么我要用 Node.js? 案例逐一介绍
http://blog.jobbole.com/53736/介绍JavaScript 高涨的人气带来了很多变化,以至于如今使用其进行网络开发的形式也变得截然不同了。就如同在浏览器中一样,现在我们也可以在服务器上运行 JavaScript ,从前端跨越到后端,这样巨大的反差让人难以想象,因为仅仅在几年前 Javascript 还如同 Flash 或者 Java applet转载 2015-07-23 17:01:27 · 697 阅读 · 0 评论 -
Chrome插件开发教程
Getting Started 1:目前不支持标准发布版本的Chrome插件扩展,不过也有消息马上就开发了,对于我们这个不是问题.4.0使用中 2:创建一个所必要的文件夹,名字任意,用于存放所需文件,开发后,可以通过Chrome打包提交 3:manifest.json文件,存放描述信息,也可以理解为插件运行的总入口,使用JSON的格式进行定义 { "name": "My F转载 2015-07-23 17:05:08 · 1498 阅读 · 0 评论 -
webstorm+nodejs+JetBrains IDE Support+chrome打造前端开发神器
各工具介绍webstorm是JetBrains公司发布的一个web开发IDE,支持代码提示、补全、定位、与git集成等等各种功能,已经跟传统强类型语言的开发环境感觉无多大差异。node是一个服务端的 javascript运行环境JetBrains IDE Support俗称JB插件(⊙o⊙),是一个chrome的插件。与webstorm联合使用,是沟通它俩的桥梁。各转载 2015-07-23 17:11:05 · 1006 阅读 · 0 评论 -
Volume of Mesh Calculation With WebGL
//Created by Ken on Oct 20,2016 for volume compute when uploadfunction SignedVolumeOfTriangle(p1, p2, p3) { var v321 = p3.X*p2.Y*p1.Z; var v231 = p2.X*p3.Y*p1.Z; var v312 = p3.X*p1.Y*p2.Z;原创 2016-10-20 17:52:09 · 510 阅读 · 0 评论 -
Calculate superficial area and volume of mesh with Three.js(WebGL)
//Created by Ken on Oct 20,2016 for volume compute when uploadfunction SignedVolumeOfTriangle(p1, p2, p3) { var v321 = p3.X*p2.Y*p1.Z; var v231 = p2.X*p3.Y*p1.Z; var v312 = p3.X*p1.Y*p2.Z;原创 2016-10-21 16:28:57 · 936 阅读 · 0 评论 -
Java jsp MasterPages实现母版页,实现统一风格的页面布局
http://outofmemory.cn/code-snippet/964/Java-jsp-MasterPages-achieve-muban-page-achieve-tongyi-fengge-page-layoutJava jsp MasterPages实现母版页,实现统一风格的页面布局更多0jsp模原创 2015-12-23 17:16:26 · 8090 阅读 · 3 评论 -
WebRTC One-Way video sharing/broadcasting / Demo
https://github.com/muaz-khan/WebRTC-Experiment/tree/master/webrtc-broadcastingWebRTC One-Way video sharing/broadcasting / DemoParticipants can view your broadcasted video anonymously.转载 2015-12-22 14:34:27 · 1022 阅读 · 0 评论 -
Socket.IO 和 Node.js 入门
http://www.open-open.com/lib/view/open1337216216557.htmlNode.js 并不能做所有事情,但它可通过 Socket.IO 库轻松实现 WebSockets。使用 WebSockets 可轻松构建实时多用户的应用程序或游戏,今天我们将讲述如何使用 Node.js 和 Socket.IO 构建简单的聊天程序。注意: 在阅读转载 2015-12-21 15:06:48 · 495 阅读 · 0 评论 -
WebSocket 实战
http://www.ibm.com/developerworks/cn/java/j-lo-WebSocket/在 IBM Bluemix 云平台上开发并部署您的下一个应用。开始您的试用WebSocket 前世今生众所周知,Web 应用的交互过程通常是客户端通过浏览器发出一个请求,服务器端接收请求后进行处理并返回结果给客户端,客户端转载 2016-01-04 11:01:52 · 733 阅读 · 0 评论 -
第一个JWPlayer应用
下载JWPlayerJWPlayer官方网站做了限制,需要注册帐号,登录后才能下载播放器。下载地址:https://account.jwplayer.com/static/download/jwplayer-6.8.zip使用JWPlayer登录网站后,在用户管理界面,会有一个个人地址,使用这个地址可以统计播放器的使用情况,方便数据挖掘。云端js的JWPla原创 2015-12-31 18:02:12 · 2633 阅读 · 2 评论 -
AJAX with JSP and Servlet using Jquery Example
http://www.programming-free.com/2012/08/ajax-with-jsp-and-servlet-using-jquery.htmlDOWNLOADAJAX - Asynchronous Javascript and XML, is a technology that enables web applications转载 2015-10-14 11:33:15 · 1422 阅读 · 0 评论 -
JW Player How to get mouse click position?
You would have to use regular JS like onmouseover and onmouse out on your div, and then call any html / js based on that.Sample JavaScript code:function addEvent(element, evnt, funct){ if (原创 2015-10-17 22:19:03 · 819 阅读 · 0 评论 -
“No 'Access-Control-Allow-Origin' header is present on the requested resource”
If I understood it right you are doing an XMLHttpRequest to a different domain than your page is on. So the browser is blocking it as it usually allows a request in the same origin for security reas原创 2015-09-30 12:21:34 · 1849 阅读 · 0 评论 -
Jquery Manage The Local File System
jQuery.twFileThis jQuery plugin provides access to the local file system (for documents loaded from afile:// URI) to load and save file contents from the browser.The code is based on TiddlyWiki'原创 2012-03-07 16:55:44 · 1216 阅读 · 0 评论 -
XMLHttpRequest
XMLHttpRequestQuestion: How can I request data from the server without reloading the page in the browser?Answer: JavaScript code loaded in the client browser can request additional data from the原创 2012-03-07 15:31:34 · 514 阅读 · 0 评论 -
Disable Firefox Image Drag
Firefox 3 has a behavior where clicking an image and moving your mouse will start to drag a preview of that image around. The behavior even occurs with the background images for elements.While this dr原创 2010-02-09 19:18:00 · 656 阅读 · 0 评论 -
a very weird phenomena base on Fire fox
Today ,i found a very weird phenomena base on Fire fox:1.I just add the "alert(dd)" into the mousedownhandler , a function binding to mouse down event 2.When the postback firstly, it will alert原创 2010-02-10 19:27:00 · 479 阅读 · 0 评论 -
javascript Repx express
下面都是我收集的一些比较常用的正则表达式,因为平常可能在表单验证的时候,用到的比较多。特发出来,让各位朋友共同使用。呵呵。匹配中文字符的正则表达式: [u4e00-u9fa5]评注:匹配中文还真是个头疼的事,有了这个表达式就好办了匹配双字节字符(包括汉字在内):[^x00-xff]评注:可以用来计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)匹配空白行的正则表达式:ns*r评注:可以转载 2010-02-05 15:04:00 · 1833 阅读 · 0 评论 -
base code resource
/* Base.js, version 1.1a Copyright 2006-2009, Dean Edwards License: http://www.opensource.org/licenses/mit-license.php*/var Base = function() { // dummy};Base.extend = function(_instance, _static)原创 2010-02-05 00:14:00 · 446 阅读 · 0 评论 -
apply function and call function
applySyntaxfunctionreference.apply(thisArg, argArray)ParametersthisArg (parameter for the calling object)argArray (an optional parameter of an argument array for the object)Descripti原创 2010-01-29 16:29:00 · 540 阅读 · 0 评论 -
save dialogbox base on Fire fox
__qp.prototype.SaveMgr={ savefile:" ", /** * save current web page into file specified * @param {string} type the filename saved */ save:function(){ var t=this; var br=__q.Bro原创 2010-01-25 15:01:00 · 695 阅读 · 0 评论 -
object oriented js
//qp4dev.js(function(){ var path="../"; var __qplib=[ qp_initlizator.js, qp4dev_end.js]; //load lib for(l in __qplib){ document.write(); }})(); //qp4dev_end原创 2010-01-25 16:56:00 · 515 阅读 · 0 评论 -
change custom cursor base on Fire fox
use the tool as below convert to the base64 and quote the string as below: tool:http://www.abluestar.com/utilities/encode_base64/index.php code: window.content.document.body.style.cursor原创 2010-01-25 15:49:00 · 591 阅读 · 0 评论 -
display the local image online base on IE and Fire fox
IE://IE 7 and 8 button.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod = image,src="+imageURL+")"; //IE 6 image.src = imageURL; Note:imageUrl is your原创 2010-01-25 15:16:00 · 965 阅读 · 0 评论 -
javascript parseInt is broken
javascript parseInt is brokenI was debugging some strange errors in a date conversion function I was writing, and I stumbled upon something that amazed me... a strange bug in parseInt>>>pars原创 2010-01-28 18:00:00 · 447 阅读 · 0 评论 -
Node.insertBefore
Node.insertBefore SummaryInserts the specified node before a reference element as a child of the current node.Syntaxvar insertedElement = parentElement.insertBefore(n转载 2010-02-24 13:40:00 · 823 阅读 · 0 评论 -
Document. Cookies
setCookie:function (c_name,value){var doc=__q.ConfigMgr.getDocument();doc.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());},/** *@param {String} the key原创 2010-02-24 17:02:00 · 525 阅读 · 0 评论 -
Mouse Scroll Event Up/Down Example in JavaScript
Source CodeLet us see an example for catching mouse scroll wheel event in JavaScript. In our example we will have a small DIV that moves up and down on scroll of mouse wheel. Following is the sou原创 2010-02-25 14:46:00 · 1574 阅读 · 0 评论 -
Master Pages and JavaScript document.getElementById
<br />Whenever a control is inside a Master Page, the client ID of the control would get appended with its content placeholder ID. So, for an element with an ID “txtTest”, the new client ID would look something like “ctl00_ContentPlaceHolder1_ txtTes原创 2010-09-20 10:55:00 · 488 阅读 · 0 评论