活到老学到老  

记录遇到问题的点点滴滴。

0

jquery.chosen.js查询时,chosen默认从第一个字符搜索,所以写中间的字符搜索时,是搜索不出来的若想实现中间字符的模糊查询,下面的js中(search_contains属性为true即可)可以让chosen搜索选项的中间及末尾字符no_results_text是搜索不到内容时,显示的提示语placeholder_text是...

6年前发布  · 1295 次阅读
  chosen 
0

超级链接a的target属性已经是不被新规范支持了,其值有四个保留字: 1._blank    <a href="document.html" target="_blank">my document</a> 浏览器会另开一个新窗口显示document.html文档  2._parent    <a href=...

6年前发布  · 1146 次阅读
  a  target 
0

示例: if($(this).hasClass('editable')){ $(this).editable({ params: function(params) { //params already contain `name`, `value` and `pk`...

7年前发布  · 2027 次阅读
0

$.ajaxPrefilter(function(options, originalOptions, jqXHR) { if (originalOptions.type.toLocaleUpperCase() != 'POST' || options.type.toLocaleUpperCase() != 'POS...

7年前发布  · 935 次阅读
0

<form ng-submit="myFunc()" ...>或者<input ng-keyup="$event.keyCode == 13 && myFunc()" ...>

7年前发布  · 1299 次阅读
0

When deep $watch is needed on an array, but not for the entire object, you can strip off irrelevant data, this way you make the comparison much faster.$scope.$watch(funct...

7年前发布  · 943 次阅读
0

解释以下rgba    rgba的含义,r代表red,g代表green,b代表blue,a代表透明度。       rgba(0,0,0,.5) 这样就代表了黑色,透明度为0.5 要想解决在IE8下的透明度问题,可以增加这样一句话:filter:progid:DXImageTransform.Microsoft.gradient(star...

7年前发布  · 889 次阅读
0

PHP<?php function f(&$r, $t, $a, $depth, $end) { if ($depth == $end) { if (count($t)) { $r[] = $t; } } else { $count =...

7年前发布  · 1259 次阅读
0

PHP<?php function f(&$r, $t, $a, $n) { if ($n == 0) { if (count($t)) { $r[] = $t; } } else { $count = count($a[$n - 1]...

7年前发布  · 1162 次阅读
0

搭建web app常用的样式/组件等收集列表(移动优先)0. 前端自动化(Workflow)前端构建工具Yeoman – a set of tools for automating development workflowgulp – The streaming build systemgrunt – the JavaScript Tas...

7年前发布  · 1468 次阅读
  jquery 
0

1.选择器 (1)通配符:$("input[id^='code']");//id属性以code开始的所有input标签 $("input[id$='code']");//id属性以code结束的所有input标签 $("input[id*='code']");//id属性包含code的所有input标签 (2)根据索引选择$("tbo...

7年前发布  · 1234 次阅读
  jquery  not  children  next  keyup  trim  even  odd 
0

select2 https://github.com/select2/select2一个html select美化模拟类jquery插件,但是select2.js又远非简单的模拟美化那么简单,它还具有搜索功能,多选功能(可限制选择数量),ajax方式加载数据,可以设置placeholder。演示:https://select2.githu...

7年前发布  · 1574 次阅读
1

bxslider https://github.com/stevenwanderski/bxslider-4bxSlider 是一款免费的感应式 jQuery 幻灯,可以自适应屏幕大小,支持PC、手机客户端,支持单图切换、多图滚动演示:http://bxslider.com/examples文档:http://bxslider.com/o...

7年前发布  · 2923 次阅读
0

使用jQuery的.prop()方法:// Check #x $( "#x" ).prop( "checked", true ); // Uncheck #x $( "#x" ).prop( "checked", false );不能使用attr('checked', true)只有第一次选中和反选有效 

7年前发布  · 1460 次阅读
  jquery  prop  attr  checked 
0

现在主流浏览器基本上实现了全屏效果,但是不同浏览器实现不一样:【进入和退出全屏】// Webkit (works in Safari5.1 and Chrome 15) element.webkitRequestFullScreen(); document.webkitCancelFullScreen(); // Firefox 10...

0

.state('mystate', { params: [ {param1: {default: 'xyz', type: 'integer'}}, {param2: {type: 'string'}} ] }) or (with url) .state('mystate', { url : '/path/...

7年前发布  · 1730 次阅读