码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
JS textarea
<script type="text/javascript"> function copyUrl2() { var Url2=document.getElementById("biao1"); Url2.select(); // 选择对象 document.execCommand("Copy"); ...
分类:Web程序   时间:2016-06-28 16:57:17    阅读次数:170
solr 5.3 提取pdf数据创建索引
solr-data-conofig.xml <dataConfig> <script><![CDATA[ id = 1; function GenerateId(row) { row.put('id', (id ++).toFixed()); return row; } ]]></script> < ...
分类:其他好文   时间:2016-06-28 14:31:41    阅读次数:232
[李景山php]每天laravel-20160908|Dispatcher-8
/** *Createtheclassbasedeventcallable. * *@paramstring$listener *@param\Illuminate\Container\Container$container *@returncallable */ protectedfunctioncreateClassCallable($listener,$container) {//createtheclassbasedeventcallable. list($class,$method)=$this-&..
分类:Web程序   时间:2016-06-28 13:19:28    阅读次数:190
Java源代码分析之Vector数组
Vector源码分析 每个Java程序员应该的特性可变长数组(grow or shrink) 能够使用索引获取值(accessed using an integer index) 多线程环境下线程安全 类图 package java.util;import java.util.function.Consumer; import java.util.function.Predicate; import...
分类:编程语言   时间:2016-06-28 13:00:47    阅读次数:265
LeetCode:Valid Perfect Square
Valid Perfect Square Total Accepted: 1976 Total Submissions: 5317 Difficulty: Medium Given a positive integer num, write a function which returns True if num is a perfect squ...
分类:其他好文   时间:2016-06-28 11:04:11    阅读次数:163
js 的点击事件
<button id="btn">click</button> var btn=document.getElementById('btn'); 第一种: btn.onclick=function(){ alert('hello world'); } 消除事件:btn.onclick=null;//就 ...
分类:Web程序   时间:2016-06-28 10:51:30    阅读次数:142
12.写一个函数,算出两个文件的相对路径
//计算出 c.php相对于e.php的相对路径应该是../../12/34 $a = '/a/b/c/d/e.php'; $b = '/a/b/12/34/c.php'; getpathinfo($a, $b); function getpathinfo( $a, $b ) { $a2array ...
分类:其他好文   时间:2016-06-28 08:09:25    阅读次数:147
Javascript获取随机数
<script type="text/javascript"> function getRandom(n,m){ var n=Number(n); //强制转换成数字 var m=Number(m); if(isNaN(n)||isNaN(m)){ //判断是否为有效数字 ,其中一个不是有效数字就返 ...
分类:编程语言   时间:2016-06-28 02:01:12    阅读次数:162
JS把命名空间传递给模块形式
//方法依赖 jquery 或者其他 有扩展方法 extend() 类库 例如: underscore.js 链接地址 http://underscorejs.org var app = {}; (function(exports){ (functions ( exports ) { var api ...
分类:Web程序   时间:2016-06-28 00:44:50    阅读次数:155
【leetcode】367. Valid Perfect Square]
题目描述: Given a positive integer num, write a function which returns True if num is a perfect square else False. 解题分析: 这种找数字的题一般都用类似与二分查找的算法。需要注意的是比较平方和 ...
分类:其他好文   时间:2016-06-28 00:38:07    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!