目前总结了一下,在iOS平台容易引起循环引用的几个场景:
一、parent-child模式
二、block(编译器会提示警告)
三、NSTimer
四、桥接...
分类:
移动开发 时间:
2014-09-10 17:53:30
阅读次数:
169
首先需要一个Layout界面:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="ver...
分类:
移动开发 时间:
2014-09-10 17:50:10
阅读次数:
197
/* 看一下下面的程序,看是否你的答案和运行的答案是否一致!*/class Parent{ public int x; public Parent p; public Parent(){} public Parent(int x){ t...
分类:
编程语言 时间:
2014-09-09 22:57:49
阅读次数:
306
先不要看结果,看一下你是否真正了解了this指针? 1 #include 2 using namespace std; 3 4 class Parent{ 5 public: 6 int x; 7 Parent *p; 8 public: 9...
分类:
编程语言 时间:
2014-09-09 21:20:19
阅读次数:
250
HTML超链接:
超链接是一个网站的重要元素之一,一个网站由多个页面组成,各页面之间是通过超链接来确定相互关系的,每个页面的地址都不同。
格式:这是一个连接
href设置超链接目标地址URL
name 在html文档中建立特定位置的名称
target设置被链接的网页打开时的窗口_blank/_parent/_self/_top
accesskey设置超链接的快...
分类:
Web程序 时间:
2014-09-09 18:20:49
阅读次数:
199
MongoDB五种树形结构表示法MongoDB五种树形结构表示法第一种:父链接结构db.categories.insert( { _id: "MongoDB", parent: "Databases" } )db.categories.insert( { _id: "dbm", parent: "D...
分类:
数据库 时间:
2014-09-09 15:58:28
阅读次数:
332
activity_main.xml<?xmlversion="1.0"encoding="utf-8"?><TableLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"><TableLayout><TextViewandroid:id="@+id/te..
分类:
移动开发 时间:
2014-09-09 13:48:19
阅读次数:
327
我在学习hadoop,在看陆嘉恒编著的hadoop实战,其中有单表连接的程序,我现在整理一下思路。这个问题是课本上的例子。给出child-parent表,要求输出grandchild-grandparent表样例输入:childparentTomLucyTomJackJoneLucyJoneJackLucyMaryLucyBenJackAliceJackJeseeTerryAliceT..
分类:
其他好文 时间:
2014-09-09 13:46:40
阅读次数:
116
android中布局一般都有两种方式,一种xml声明,另外一种则是程序声明:
xml:
xml version="1.0" encoding="utf-8"?>
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
...
分类:
移动开发 时间:
2014-09-08 02:11:56
阅读次数:
270
网页内操纵iframe内元素:iframe.contentWindow.document.getElementById(id);iframe网页元素操纵外部网页元素:iframe内 window.parent.getElementById(id);多重嵌套的情况下 window.top 表示获取的是...
分类:
其他好文 时间:
2014-09-06 16:00:23
阅读次数:
181