Jquery是优秀的Javascrīpt框架。我们现在来讨论下在 Jquery 中两个页面载入后执行的函数。 $(document).ready(function(){ // 在这里写你的代码...});在DOM加载完成时运行的代码 可以简写成 jQuery(function(){ }); (fun ...
分类:
Web程序 时间:
2016-09-10 13:12:08
阅读次数:
143
#include <iostream> using namespace std; int (*ptr)(int a,int b);int fun(int x,int y){ int z; z=x>y?x:y; return z; } int fun3(int a){//传的是副本 cout<<"** ...
分类:
其他好文 时间:
2016-09-09 20:50:51
阅读次数:
174
thinphp中前台后台都有互相调用方法,这样可以省去重复内容。 thinphp中前台后台都有互相调用方法,这样可以省去重复内容。 1 2 $hello = new \Admin\Common\Fun\hello(); $hello->hehe(); 调用其他地方的方法同理。 如果是在同控制器里模块 ...
分类:
Web程序 时间:
2016-09-09 10:07:22
阅读次数:
206
一个C语言竞赛题目: 输出: unix 知识点 :1. \012 是一个字节对应 回车2. printf("%c",2["abcd"]); 输出 c3. int i=2; printf("%c",i["abcd"]); 输出 b4. printf("%s\n",1+"fun"); 输出 un5. p ...
分类:
编程语言 时间:
2016-09-09 00:37:39
阅读次数:
301
// //////////////////////////优惠券开始////////////////////////////// 给附加条件选择框添加事件function inputFuJia() { hideLable(); $.each($("input[id^='fujia_']"), fun ...
分类:
Web程序 时间:
2016-09-08 11:17:29
阅读次数:
176
Description Your task in this problem is to determine the number of divisors of Cnk. Just for fun -- or do you need any special reason for such a usef ...
分类:
其他好文 时间:
2016-09-08 00:35:20
阅读次数:
370
刚刚开始我是这么写的 char* fun(QString data){ QByteArray byte = data.toLocal8Bit(); char* charData = byte.data(); return charData;} 这样子写调用一次是可以的,不过多次调用后 char* b ...
分类:
其他好文 时间:
2016-09-06 18:19:50
阅读次数:
165
原文地址:https://css-tricks.com/fun-times-css-pixel-art/#article-header-id-4 友情提示:由于国内网络的原因,CodePen可能会打不开或者非常慢,请耐心等待,多多谅解! 像素艺术作为一种遗失的艺术形式,与超清晰,高分辨率图片相比黯然 ...
分类:
Web程序 时间:
2016-09-04 01:38:13
阅读次数:
390
Edit TIJ读书笔记05-this关键字 TIJ读书笔记05-this关键字 概述 this的用法 static方法 概述 两个对象同时调用一个方法,那么jvm怎么知道是哪个方法调用的呢. 我们在书写的时候会写成a.fun(1) 或者b.fun(1)如果按照更容易理解的角度来看的话,或许可以写成... ...
分类:
其他好文 时间:
2016-09-04 01:35:53
阅读次数:
213
只有函数的定义,没有函数体的函数被称为抽象函数 1.抽象函数就是没有函数体的函数 2.抽象类使用abstract来定义 3.抽象类不能生产对象,但是可以拥有构造函数 abstract void fun(); 以下代码编译不过: class Person { String name; int age; ...
分类:
其他好文 时间:
2016-09-03 18:05:46
阅读次数:
127