随笔分类 -  JQuery

JQuery
摘要:js 实现 string.format 功能 <script type="text/javascript"> var errorHtml = "<a title=\"{1}\" href=\"#\" onclick=\"\" class=\"ml-5\" style=\"text-decoratio 阅读全文
posted @ 2024-09-30 10:05 VipSoft 阅读(107) 评论(0) 推荐(0) 编辑
摘要:jquery 将 JSON 列表的 某个属性值,添加到数组中 如果你有一个JSON列表,并且想要将每个对象的某个属性值添加到数组中,你可以使用jQuery的$.each()函数来遍历JSON列表,并获取所需的属性值。以下是一个示例代码: var jsonList = [ { "name": "Joh 阅读全文
posted @ 2023-09-15 14:25 VipSoft 阅读(593) 评论(3) 推荐(1) 编辑
摘要:index.html <!DOCTYPE html> <html> <head> <!-- Contact Form CSS files --> <link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' /> 阅读全文
posted @ 2023-01-09 15:53 VipSoft 阅读(413) 评论(0) 推荐(0) 编辑
摘要:datatable是一个jquery扩展的表格插件。其提供了强大的表格功能。官方地址:http://www.datatables.net/在官方示例中,对于表格的是否可排序是在初始化中设置的一个值来决定的(".datatablesimplified").dataTable("bSort":false);(document).ready(function() { $('#example').dataTable( { "aaSorting": [[ 4, " 阅读全文
posted @ 2013-11-05 22:32 VipSoft 阅读(5907) 评论(0) 推荐(0) 编辑
摘要:asp.net updatepanel 局部刷新,导致JS不能加载,而无法使用,而且 updatepanel会刷两次,郁闷的。解决方法如下: 阅读全文
posted @ 2013-08-12 10:51 VipSoft 阅读(384) 评论(0) 推荐(0) 编辑
摘要://定义Circle类,拥有成员变量r,常量PI和计算面积的成员函数area()//第1种写法 function Circle(r) { this.r = r;}Circle.PI = 3.14159;Circle.prototype.area = function () { return Circle.PI * this.r * this.r;}var c = new Circle(1.0);alert(c.area());//第2种写法 var Circle = function() { var obj = new Object(); obj.PI = 3.... 阅读全文
posted @ 2013-03-07 16:30 VipSoft 阅读(250) 评论(0) 推荐(0) 编辑
摘要:+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++accordion类+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++基于jQuery开发,非常简单的水平方向折叠控件。Horizontal accordion: jQuery热点图书:www.hotbook.cn jQuery-Horizontal Accordion 具有XBOX360 blade界面风格的水平方向Accordion。jQuer 阅读全文
posted @ 2012-04-20 13:42 VipSoft 阅读(363) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示