#djangobb之views  show_forum(request, forum_id, full=True)

    default
16.00 ms (21 queries including 15 duplicates ) Query Timeline Time (ms) Action
-
SELECT
"djangobb_forum_forum"."id",
"djangobb_forum_forum"."category_id",
"djangobb_forum_forum"."name",
"djangobb_forum_forum"."position",
"djangobb_forum_forum"."description",
"djangobb_forum_forum"."updated",
"djangobb_forum_forum"."post_count",
"djangobb_forum_forum"."topic_count",
"djangobb_forum_forum"."last_post_id",
"djangobb_forum_forum"."forum_logo" FROM "djangobb_forum_forum" WHERE "djangobb_forum_forum"."id" = ''
#查找id=1的forum Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(338)
forum = get_object_or_404(Forum, pk=forum_id) -
SELECT
"djangobb_forum_category"."id",
"djangobb_forum_category"."name",
"djangobb_forum_category"."position"
FROM "djangobb_forum_category" WHERE "djangobb_forum_category"."id" = ''
#查找id=1的类别 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(339)
if not forum.category.has_access(request.user): -
SELECT (1) AS "a" FROM "auth_group" INNER JOIN "djangobb_forum_category_groups" ON ("auth_group"."id" = "djangobb_forum_category_groups"."group_id") WHERE "djangobb_forum_category_groups"."category_id" = '' LIMIT 1 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(339)
if not forum.category.has_access(request.user):
C:\djbb\mybb\djangobb_forum/models.py in has_access(80)
if self.groups.exists(): -
SELECT
"auth_user"."id",
"auth_user"."password",
"auth_user"."last_login",
"auth_user"."is_superuser",
"auth_user"."username",
"auth_user"."first_name",
"auth_user"."last_name",
"auth_user"."email",
"auth_user"."is_staff",
"auth_user"."is_active",
"auth_user"."date_joined"
FROM "auth_user" INNER JOIN "djangobb_forum_forum_moderators" ON ("auth_user"."id" = "djangobb_forum_forum_moderators"."user_id") WHERE "djangobb_forum_forum_moderators"."forum_id" = ''
#查找出该版块的所有版主 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(343)
request.user in forum.moderators.all() -
SELECT "djangobb_forum_category"."id",
"djangobb_forum_category"."name",
"djangobb_forum_category"."position"
FROM "djangobb_forum_category" ORDER BY "djangobb_forum_category"."position" ASC Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(346)
for category in Category.objects.all(): -
SELECT (1) AS "a" FROM "auth_group" INNER JOIN "djangobb_forum_category_groups" ON ("auth_group"."id" = "djangobb_forum_category_groups"."group_id") WHERE "djangobb_forum_category_groups"."category_id" = '' LIMIT 1
Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(347)
if category.has_access(request.user):
C:\djbb\mybb\djangobb_forum/models.py in has_access(80)
if self.groups.exists(): -
SELECT (1) AS "a" FROM "auth_group" INNER JOIN "djangobb_forum_category_groups" ON ("auth_group"."id" = "djangobb_forum_category_groups"."group_id") WHERE "djangobb_forum_category_groups"."category_id" = '' LIMIT 1
Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(347)
if category.has_access(request.user):
C:\djbb\mybb\djangobb_forum/models.py in has_access(80)
if self.groups.exists(): -
SELECT (1) AS "a" FROM "auth_group" INNER JOIN "djangobb_forum_category_groups" ON ("auth_group"."id" = "djangobb_forum_category_groups"."group_id") WHERE "djangobb_forum_category_groups"."category_id" = '' LIMIT 1
Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(347)
if category.has_access(request.user):
C:\djbb\mybb\djangobb_forum/models.py in has_access(80)
if self.groups.exists(): -
SELECT COUNT(*) AS "__count" FROM "djangobb_forum_topic" WHERE "djangobb_forum_topic"."forum_id" = '' Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(354)
'topics_page': get_page(topics, request, forum_settings.FORUM_PAGE_SIZE),
C:\djbb\mybb\djangobb_forum/util.py in get_page(40)
return Paginator(objects, size).page(request.GET.get('page', 1)) -
SELECT "djangobb_forum_topic"."id",
"djangobb_forum_topic"."forum_id",
"djangobb_forum_topic"."name",
"djangobb_forum_topic"."created",
"djangobb_forum_topic"."updated",
"djangobb_forum_topic"."user_id",
"djangobb_forum_topic"."views",
"djangobb_forum_topic"."sticky",
"djangobb_forum_topic"."closed",
"djangobb_forum_topic"."post_count",
"djangobb_forum_topic"."last_post_id",
"djangobb_forum_forum"."id",
"djangobb_forum_forum"."category_id",
"djangobb_forum_forum"."name",
"djangobb_forum_forum"."position",
"djangobb_forum_forum"."description",
"djangobb_forum_forum"."updated",
"djangobb_forum_forum"."post_count",
"djangobb_forum_forum"."topic_count",
"djangobb_forum_forum"."last_post_id",
"djangobb_forum_forum"."forum_logo",
"djangobb_forum_category"."id",
"djangobb_forum_category"."name",
"djangobb_forum_category"."position",
"auth_user"."id",
"auth_user"."password",
"auth_user"."last_login",
"auth_user"."is_superuser",
"auth_user"."username",
"auth_user"."first_name",
"auth_user"."last_name",
"auth_user"."email",
"auth_user"."is_staff",
"auth_user"."is_active",
"auth_user"."date_joined" FROM "djangobb_forum_topic" INNER JOIN "djangobb_forum_forum" ON ("djangobb_forum_topic"."forum_id" = "djangobb_forum_forum"."id") INNER JOIN "djangobb_forum_category" ON ("djangobb_forum_forum"."category_id" = "djangobb_forum_category"."id") INNER JOIN "auth_user" ON ("djangobb_forum_topic"."user_id" = "auth_user"."id") WHERE "djangobb_forum_topic"."forum_id" = '' ORDER BY "djangobb_forum_topic"."sticky" DESC, "djangobb_forum_topic"."updated" DESC LIMIT 4 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 34
{% for topic in topics_page %}
35
<tr>
36
<td class="tcl">
37
<div class="intd">
38
<div {% if topic.sticky %}class="sticky"{% else %}{% if topic.closed %}class="closed"{% else %}{% if topic|has_unreads:user %}class="inew"{% else %}class="icon"{% endif %}{% endif %}{% endif %}><div class="nosize"><!-- --></div></div> C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_post"."id",
"djangobb_forum_post"."topic_id",
"djangobb_forum_post"."user_id",
"djangobb_forum_post"."created",
"djangobb_forum_post"."updated",
"djangobb_forum_post"."updated_by_id",
"djangobb_forum_post"."markup",
"djangobb_forum_post"."body",
"djangobb_forum_post"."body_html",
"djangobb_forum_post"."user_ip" FROM "djangobb_forum_post" WHERE "djangobb_forum_post"."id" = ''
Duplicated 4 times. Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "auth_user"."id",
"auth_user"."password",
"auth_user"."last_login",
"auth_user"."is_superuser",
"auth_user"."username",
"auth_user"."first_name",
"auth_user"."last_name",
"auth_user"."email",
"auth_user"."is_staff",
"auth_user"."is_active",
"auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_post"."id", "djangobb_forum_post"."topic_id", "djangobb_forum_post"."user_id", "djangobb_forum_post"."created", "djangobb_forum_post"."updated", "djangobb_forum_post"."updated_by_id", "djangobb_forum_post"."markup", "djangobb_forum_post"."body", "djangobb_forum_post"."body_html", "djangobb_forum_post"."user_ip" FROM "djangobb_forum_post" WHERE "djangobb_forum_post"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_post"."id", "djangobb_forum_post"."topic_id", "djangobb_forum_post"."user_id", "djangobb_forum_post"."created", "djangobb_forum_post"."updated", "djangobb_forum_post"."updated_by_id", "djangobb_forum_post"."markup", "djangobb_forum_post"."body", "djangobb_forum_post"."body_html", "djangobb_forum_post"."user_ip" FROM "djangobb_forum_post" WHERE "djangobb_forum_post"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_post"."id", "djangobb_forum_post"."topic_id", "djangobb_forum_post"."user_id", "djangobb_forum_post"."created", "djangobb_forum_post"."updated", "djangobb_forum_post"."updated_by_id", "djangobb_forum_post"."markup", "djangobb_forum_post"."body", "djangobb_forum_post"."body_html", "djangobb_forum_post"."user_ip" FROM "djangobb_forum_post" WHERE "djangobb_forum_post"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = ''
Duplicated 4 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 50
</td>
51
<td class="tc2">{{ topic.reply_count }}</td>
52
<td class="tc3">{{ topic.views }}</td>
53
<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
54
</tr>
55
{% empty %}
56
<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
57
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_forum"."id", "djangobb_forum_forum"."category_id", "djangobb_forum_forum"."name", "djangobb_forum_forum"."position", "djangobb_forum_forum"."description", "djangobb_forum_forum"."updated", "djangobb_forum_forum"."post_count", "djangobb_forum_forum"."topic_count", "djangobb_forum_forum"."last_post_id", "djangobb_forum_forum"."forum_logo" FROM "djangobb_forum_forum" WHERE "djangobb_forum_forum"."category_id" = '' ORDER BY "djangobb_forum_forum"."position" ASC
Duplicated 3 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 79
<select name="id" id="forum_id" onchange="window.location=('{% url 'djangobb:index' %}'+this.options[this.selectedIndex].value)">
80
{% for category in categories %}
81
<optgroup label="{{ category }}">
82
{% for forum in category.forums.all %}
83
<option value="{{ forum.id }}">{{ forum.name }}</option>
84
{% endfor %}
85
</optgroup>
86
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_forum"."id", "djangobb_forum_forum"."category_id", "djangobb_forum_forum"."name", "djangobb_forum_forum"."position", "djangobb_forum_forum"."description", "djangobb_forum_forum"."updated", "djangobb_forum_forum"."post_count", "djangobb_forum_forum"."topic_count", "djangobb_forum_forum"."last_post_id", "djangobb_forum_forum"."forum_logo" FROM "djangobb_forum_forum" WHERE "djangobb_forum_forum"."category_id" = '' ORDER BY "djangobb_forum_forum"."position" ASC
Duplicated 3 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 79
<select name="id" id="forum_id" onchange="window.location=('{% url 'djangobb:index' %}'+this.options[this.selectedIndex].value)">
80
{% for category in categories %}
81
<optgroup label="{{ category }}">
82
{% for forum in category.forums.all %}
83
<option value="{{ forum.id }}">{{ forum.name }}</option>
84
{% endfor %}
85
</optgroup>
86
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html
-
SELECT "djangobb_forum_forum"."id", "djangobb_forum_forum"."category_id", "djangobb_forum_forum"."name", "djangobb_forum_forum"."position", "djangobb_forum_forum"."description", "djangobb_forum_forum"."updated", "djangobb_forum_forum"."post_count", "djangobb_forum_forum"."topic_count", "djangobb_forum_forum"."last_post_id", "djangobb_forum_forum"."forum_logo" FROM "djangobb_forum_forum" WHERE "djangobb_forum_forum"."category_id" = '' ORDER BY "djangobb_forum_forum"."position" ASC
Duplicated 3 times.
0%
0.00 Connection: default C:\djbb\mybb\djangobb_forum/views.py in show_forum(358)
return render(request, 'djangobb_forum/forum.html', to_return) 79
<select name="id" id="forum_id" onchange="window.location=('{% url 'djangobb:index' %}'+this.options[this.selectedIndex].value)">
80
{% for category in categories %}
81
<optgroup label="{{ category }}">
82
{% for forum in category.forums.all %}
83
<option value="{{ forum.id }}">{{ forum.name }}</option>
84
{% endfor %}
85
</optgroup>
86
{% endfor %} C:\djbb\mybb\djangobb_forum\templates\djangobb_forum\forum.html

djangobb之debug-toolbar查看其sql的更多相关文章

  1. 部署前准备--使用Mysql之Django Debug Toolbar安装以及配置

    python -c "import django ;print(django.__path__);" 查看python的全局配置 vi /usr/local/lib/python3 ...

  2. Django学习——图书相关表关系建立、基于双下划线的跨表查询、聚合查询、分组查询、F查询、Q查询、admin的使用、使用脚本调用Django、Django查看源生sql

    0 图书相关表关系建立 1.5个表 2.书籍表,作者表,作者详情表(垂直分表),出版社表,书籍和作者表(多对多关系) 一对一 多对多 本质都是一对多 外键关系 3.一对一的关系,关联字段可以写在任意一 ...

  3. 查询某库所有表的rows &查看当前sql的注册信息

    查询某库所有表的rows &查看当前sql的注册信息 1 2 3 4 5 6 7 select sobj.name,spar.rows FROM sys.objects sobj  INNER ...

  4. script:查看历史sql执行信息

    script:查看历史sql执行信息 SELECT *     FROM (SELECT '1.v$sql'||'实例号:'||GV$SQL.inst_id source,               ...

  5. SQLSERVER图片查看工具SQL Image Viewer5.5.0.156

    原文:SQLSERVER图片查看工具SQL Image Viewer5.5.0.156 SQLSERVER图片查看工具SQL Image Viewer5.5.0.156 在2013年某一次北京SQL ...

  6. MySQL - 查看慢SQL

    查看MySQL是否启用了查看慢SQL的日志文件 (1) 查看慢SQL日志是否启用 mysql> show variables like 'log_slow_queries'; +-------- ...

  7. Django之Django debug toolbar调试工具

    一.安装Django debug toolbar调试工具 pip3 install django-debug-toolbar 如果出错命令为 pip install django_debug_tool ...

  8. db2 性能查看top sql

    DB2 V10.3    查看top sql ,类似oracle 这篇文章是对之前有篇db2 v9的简化更新,总体还是觉得DB2TOP比较好用直观,不过需要导出SQL时,或自动化脚本时,还是建议执行S ...

  9. 查看慢sql语句

    查看慢sql语句 st.text AS SQL_Full --父级完整语句 ,) , ((CASE statement_end_offset THEN DATALENGTH(st.text) ELSE ...

  10. 【Django】Django Debug Toolbar调试工具配置

    正在发愁怎么调试Django,就遇到了Django Debug Toolbar这个利器. 先说遇到的问题: 网上也有教程,不过五花八门的,挨个尝试了一遍,也没有成功运行.最后终于找到问题所在: 从开发 ...

随机推荐

  1. 黄聪:如何使用钩子定制WordPress添加媒体界面,去除不需要的元素

    原文:http://www.solagirl.net/customize-wordpress-media-upload-ui.html WordPress编写文章界面的添加媒体按钮允许用户上传多媒体文 ...

  2. DS二叉树--二叉树之父子结点

    题目描述 给定一颗二叉树的逻辑结构如下图,(先序遍历的结果,空树用字符‘0’表示,例如AB0C00D00),建立该二叉树的二叉链式存储结构. 编写程序输出该树的所有叶子结点和它们的父亲结点 输入 第一 ...

  3. 玄学曲线并不玄 教你如何看懂GPU呈现

    红色代表了“执行时间”,它指的是Android渲染引擎执行盒子中这些绘制命令的时间,假如当前界面的视图越多,那么红色便会“跳”得越高.实际使用中,比如我们平时刷淘宝App时遇到出现多张缩略图需要加载时 ...

  4. 【Darwin学习笔记】之TaskThread

    [转载请注明出处]:http://blog.csdn.net/longlong530 学习TaskThread主要有三个类要关注: TaskTreadPool: 任务线程池 TaskThread:任务 ...

  5. java设计模式-State模式

    1.背景: MM的状态是非常不固定的,说不定刚才还非常高兴,没准一会就生气了.就跟六月的天似的,说变就变. 封装一下MM的状态:smile,cry,say:MM的状态决定了这些方法该怎么执行.   2 ...

  6. 峰Redis学习(5)Redis 数据结构(Set的操作)

    第五节:Redis 数据结构之Set 类型 存储Set,这里的Set是无序的:  和List类型不同的是,Set集合中不允许出现重复的元素  Set可包含的最大元素数量是4294967295   存储 ...

  7. 跨域的案例 以百度接口/手写接口为例,还有jQuery写法

    仅在js部分输入即可 百度接口的案例 <script> function fn(data){ console.log(data) } </script> <script ...

  8. 找出N个无序数中第K大的数

    使用类似快速排序,执行一次快速排序后,每次只选择一部分继续执行快速排序,直到找到第K个大元素为止,此时这个元素在数组位置后面的元素即所求 时间复杂度: 1.若随机选取枢纽,线性期望时间O(N) 2.若 ...

  9. typescript泛型接口

    //函数类型接口 /* interface ConfigFn{ (value1:string,value2:string):string; } var setData:ConfigFn=functio ...

  10. 1-自己动手编写ArrayList集合

    学习集合的原理,这是一个很简单的代码,没有索引下标越界判断,异常处理等,不够健壮,后面会继续更新完善代码..... 只是入门学习一下 package my; /*** * 自己动手编写一个ArrayL ...