![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 86
iteye_6945
这个作者很懒,什么都没留下…
展开
-
jQuery api
$(document).ready(function(){ // Your code here... }); $("p").bind("click", function(){ alert( $(this).text() ); }); $("td").toggle( function () { ...原创 2011-01-18 14:33:30 · 116 阅读 · 0 评论 -
jQuery操作checkbox选择
<!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.org/1999/xhtml"> <head runa...原创 2014-12-29 18:59:24 · 70 阅读 · 0 评论 -
Rails 3.2 的 Ajax 向导
原文: http://chloerei.com/2012/04/21/rails-3-2-ajax-guide/ Rails Ajax 的两种类型 在 Rails 里面处理 Ajax 大致可以分为两种: UJS:服务端返回 Javascript,客户端收到后直接执行 JSON API:服务端返回数据,客户端收到后本地处理再执行 Rails 自带的 UJS 机制在提供少量 ...原创 2014-12-29 18:50:36 · 75 阅读 · 0 评论 -
jquery editable
http://www.cnblogs.com/xiaoyao2011/archive/2012/04/28/jeditable.html http://jquery-plugins.net/50-most-popular-jquery-plugins-from-2016 http://jquery-plugins.net/editable-table-editable-jquery-boot...原创 2016-11-17 22:00:39 · 492 阅读 · 0 评论 -
Custom dialog for data-confirm in Rails
Every Rails developers might be already familiar with data-confirmattribute for a link. It is used to ask for user confirmation before executing the action on behalf of user. Here is one example ...原创 2016-10-11 17:24:24 · 339 阅读 · 0 评论 -
ajax
http://www.w3school.com.cn/ajax/ajax_intro.asp 什么是 AJAX ? AJAX = 异步 JavaScript 和 XML。 AJAX 是一种用于创建快速动态网页的技术。 通过在后台与服务器进行少量数据交换,AJAX 可以使网页实现异步更新。这意味着可以在不重新加载整个网页的情况下,对网页的某部分进行更新。 传统的网页(不使用 AJAX)如...原创 2014-03-02 12:59:48 · 282 阅读 · 0 评论 -
js源码
在github里搜javascript https://github.com/shichuan/javascript-patterns/原创 2014-02-28 18:53:24 · 59 阅读 · 0 评论 -
Check & Uncheck checkboxes
google=>js select all http://www.webdevdoor.com/javascript-ajax/javascript-function-check-uncheck-checkboxes/ Check & Uncheck checkboxes in JavaScript Here’s a useful Javascript functio...原创 2014-02-24 17:47:43 · 138 阅读 · 0 评论 -
Dynamically loading external JavaScript and CSS files
To load a .js or .css file dynamically, in a nutshell, it means using DOM methods to first create a swanky new "SCRIPT" or "LINK" element, assign it the appropriate attributes, and finally, use eleme...原创 2015-06-04 14:15:11 · 190 阅读 · 0 评论 -
javaScript document对象详解
注:页面上元素name属性和JavaScript引用的名称必须一致包括大小写否则会提示你一个错误信息 “引用的元素为空或者不是对象\\\\\”——————————————————————— 对象属性document.title //设置文档标题等价于HTML的title标签document.bgColor //设置页面背景色document.fgColor //设置前景色(文本颜色)docum...原创 2015-06-04 13:05:29 · 144 阅读 · 0 评论 -
js代码收藏
js对象转换成jquery对象: jQuery(document).ready(function(){ var links = jQuery("#simple-menu li a"); for(var i=0;i&lt;links.length;i++){ jQuery(links[i]).click(function(){ jQuery(".curr...原创 2015-06-04 12:56:18 · 64 阅读 · 0 评论 -
邮箱suggest
<!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.org/1999/xhtml"> <head> <原创 2015-06-04 12:35:42 · 154 阅读 · 0 评论 -
AJAX也有安全隐患,谈谈AJAX的安全性
Web开发者不会注意到由 “AJAX(Asynchronous JavaScript And XML)”所带来的激情。不费力气就能创建像Google Suggest那样的智能网站或者像Gmail那样基于Web的应用程序,这在很大程度上要归功于这种技术。然而,伴随着AJAX应用程序的发展,我们发 现了它的一些不足之处,我们发现它的安全漏洞也在逐渐变大,就像慢慢地把基于AJAX的站点放入了一...原创 2011-03-14 23:28:06 · 142 阅读 · 0 评论 -
Creating a 100% ajax CRUD using rails 3 and unobtrusive javascript
Creating the project and setting the Gemfile Edited: Just corrected the misspelling on the title "unobtrusive", sorry for that** Ps: I'm using the latest rails 3 beta version while coding** $ ...原创 2014-12-29 22:29:37 · 97 阅读 · 0 评论