sendEvent和execScript与源代码的应用(I)
浏览:862 次

sendEvent和execScript与源代码的应用(I)
关于sendEvent和execScript的使用,由于内容太多,内容将分为两部分,第一部分和第二部分。
SendEvent和execScript是我认为仍然常用的两个API。我经常看到开发人员对论坛中这两个API的使用有一些疑问,所以我分享了一些经验。
首先查看主页:
索引代码(获胜):
 书信电报;meta charset=“utf-8”>;
 书信电报;meta name=“viewport”content=“最大比例=1.0,最小比例=1.0、用户可缩放=0、宽度=设备宽度、初始比例=1.0”/>;
 书信电报;meta name=“格式检测”content=“电话=否,电子邮件=否,日期=否,地址=否”>;
 书信电报;title>索引
 书信电报;link rel=“stylesheet”type=“text/css”href=“./css/aui.css”/>;

 书信电报;header class=“aui-bar aui-bar nav”id=“header”>;主页</header>
 书信电报;footer class=“aui-bar aui-bar tab”id=“footer”>;
 nbsp; ; ; ; ; ;&书信电报;div class=“aui-bar选项卡项aui-active”点击模式>
 nbsp; ; ; ; ; ; ; ;&书信电报;i class=“aui iconfont aui icon主页”>;<;/我>
 nbsp; ; ; ; ; ; ; ;&书信电报;div class=“aui-bar选项卡标签”>;主页</div>
 nbsp; ; ; ; ; ;<;/分区>
 nbsp; ; ; ; ; ;&书信电报;div class=“aui bar tab item”点击模式>
 nbsp; ; ; ; ; ; ; ;&书信电报;i class=“aui iconfont aui icon my”>;<;/我>
 nbsp; ; ; ; ; ; ; ;&书信电报;div class=“aui-bar选项卡标签”>;我的</div>
 nbsp; ; ; ; ; ;<;/分区>
 nbsp; ; ; ;<;/页脚>
Template: main
Session:
Session type: db
[unisoft__unisoft] Array ( [permission] => [passport] => [human_valid] => )
Loaded Class:
Zend_Db: /web/unisoft/web.system/Zend/Db.php
Zend_Db_Adapter_Abstract: /web/unisoft/web.system/Zend/Db/Adapter/Abstract.php
Zend_Db_Adapter_Mysqli: /web/unisoft/web.system/Zend/Db/Adapter/Mysqli.php
Zend_Db_Profiler: /web/unisoft/web.system/Zend/Db/Profiler.php
Zend_Db_Statement_Interface: /web/unisoft/web.system/Zend/Db/Statement/Interface.php
Zend_Db_Statement: /web/unisoft/web.system/Zend/Db/Statement.php
Zend_Db_Statement_Mysqli: /web/unisoft/web.system/Zend/Db/Statement/Mysqli.php
Zend_Registry: /web/unisoft/web.system/Zend/Registry.php
Zend_Db_Table_Abstract: /web/unisoft/web.system/Zend/Db/Table/Abstract.php
Zend_Session_Abstract: /web/unisoft/web.system/Zend/Session/Abstract.php
Zend_Session: /web/unisoft/web.system/Zend/Session.php
Zend_Session_SaveHandler_Interface: /web/unisoft/web.system/Zend/Session/SaveHandler/Interface.php
Zend_Session_SaveHandler_DbTable: /web/unisoft/web.system/Zend/Session/SaveHandler/DbTable.php
Zend_Exception: /web/unisoft/web.system/Zend/Exception.php
Zend_Session_Exception: /web/unisoft/web.system/Zend/Session/Exception.php
Zend_Db_Select: /web/unisoft/web.system/Zend/Db/Select.php
Zend_Db_Table_Select: /web/unisoft/web.system/Zend/Db/Table/Select.php
Zend_Db_Expr: /web/unisoft/web.system/Zend/Db/Expr.php
Zend_Db_Table_Rowset_Abstract: /web/unisoft/web.system/Zend/Db/Table/Rowset/Abstract.php
Zend_Db_Table_Rowset: /web/unisoft/web.system/Zend/Db/Table/Rowset.php
Zend_Db_Table_Row_Abstract: /web/unisoft/web.system/Zend/Db/Table/Row/Abstract.php
Zend_Db_Table_Row: /web/unisoft/web.system/Zend/Db/Table/Row.php
HTTP: /web/unisoft/web.system/class/cls_http.inc.php
Zend_Session_Namespace: /web/unisoft/web.system/Zend/Session/Namespace.php
system_setting_class: /web/unisoft/web.core/system/setting.php
Zend_Cache: /web/unisoft/web.system/Zend/Cache.php
Zend_Cache_Backend: /web/unisoft/web.system/Zend/Cache/Backend.php
Zend_Cache_Backend_Interface: /web/unisoft/web.system/Zend/Cache/Backend/Interface.php
Zend_Cache_Backend_ExtendedInterface: /web/unisoft/web.system/Zend/Cache/Backend/ExtendedInterface.php
site_ip_class: /web/unisoft/web.core/site/ip.php
Zend_Validate_Interface: /web/unisoft/web.system/Zend/Validate/Interface.php
Zend_Validate: /web/unisoft/web.system/Zend/Validate.php
Zend_Loader: /web/unisoft/web.system/Zend/Loader.php
Zend_Validate_Abstract: /web/unisoft/web.system/Zend/Validate/Abstract.php
TPL: /web/unisoft/web.system/class/cls_template.inc.php
Savant3_Error: /web/unisoft/web.system/Savant3/Error.php
package_main_class: /web/unisoft/web.core/package/main.php
iot_hardware_main_class: /web/unisoft/web.core/iot/hardware/main.php
iot_hardware_category_class: /web/unisoft/web.core/iot/hardware/category.php
site_service_main_class: /web/unisoft/web.core/site/service/main.php
site_article_main_class: /web/unisoft/web.core/site/article/main.php
site_article_extra_class: /web/unisoft/web.core/site/article/extra.php
site_keyword_exclude_class: /web/unisoft/web.core/site/keyword/exclude.php
system_content_class: /web/unisoft/web.core/system/content.php
site_article_attachment_class: /web/unisoft/web.core/site/article/attachment.php
site_article_category_class: /web/unisoft/web.core/site/article/category.php
Database [main master]
[ Log time: 1788201825.4361 ] [ Expend time: 0.0049610137939453 ] Connect DB
Cache
[ Log time: 1788201825.449 ] Backend:
[ Log time: 1788201825.4496 ] [ Expend time: 0.000641 ] Get Cache: settings_ef8c7cef1f80fbad45b9ee480e92d03c, result type: array
[ Log time: 1788201825.45 ] [ Expend time: 0.000273 ] Get Cache: crond, result type: boolean
[ Log time: 1788201825.4647 ] [ Expend time: 0.000859 ] Get Cache: model_7ec70ee0360b8a929eb442cbc38dfd27, result type: array
[ Log time: 1788201825.479 ] [ Expend time: 0.013304 ] Get Cache: model_eebc36c56f6ebd5dc315368f04ea4f0d, result type: array
[ Log time: 1788201825.4808 ] [ Expend time: 0.000928 ] Get Cache: model_87644abf3b1d496cbf4b1667422d7d51, result type: array
[ Log time: 1788201825.4844 ] [ Expend time: 0.002238 ] Get Cache: site_service_list_7e49c82f3098f580fb5928807f5e466d, result type: array
[ Log time: 1788201825.5128 ] [ Expend time: 0.006129 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788201825.5338 ] [ Expend time: 0.004584 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788201825.5438 ] [ Expend time: 0.002878 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788201825.5684 ] [ Expend time: 0.002917 ] Get Cache: site_keyword_exclude_b2c64c08a5048d87cc4904022274c118, result type: array
[ Log time: 1788201825.5872 ] [ Expend time: 0.000228 ] Get Cache: 1123d504bd0a76ff0f60b732e5f9c983, result type: boolean
[ Log time: 1788201825.5911 ] [ Expend time: 0.001918 ] Save Cache: 1123d504bd0a76ff0f60b732e5f9c983, result type: integer
Database [core master]
[ Log time: 1788201825.4536 ] [ Expend time: 0.0017609596252441 ] Connect DB
[ Log time: 1788201825.4547 ] [ Expend time: 0.00086307525634766 ] SELECT `z_ip`.* FROM `z_ip` WHERE (ip = '216.73.217' AND visit_time = 1788201780) LIMIT 1
[ Log time: 1788201825.4565 ] [ Expend time: 0.0017600059509277 ] UPDATE z_ip SET visit_count = visit_count + 1 WHERE ip = '216.73.217' and visit_time = 1788201780
[ Log time: 1788201825.4577 ] [ Expend time: 0.001129150390625 ] DELETE FROM z_ip WHERE visit_count < 120 and visit_time <= 1788201600
[ Log time: 1788201825.4589 ] [ Expend time: 0.00092697143554688 ] SELECT SUM(visit_count) AS `n0` FROM `z_ip` WHERE ((ip = '216.73.217') AND is_delete = 0)
[ Log time: 1788201825.493 ] [ Expend time: 0.0059549808502197 ] SELECT `z_article`.* FROM `z_article` WHERE (no = '0cfcd73d467603b3') LIMIT 1
[ Log time: 1788201825.5058 ] [ Expend time: 0.011538982391357 ] SELECT `z_article_extra`.* FROM `z_article_extra` WHERE (is_delete = 0 AND article_id IN(7614))
[ Log time: 1788201825.5408 ] [ Expend time: 0.001168966293335 ] SELECT `z_article_extra`.* FROM `z_article_extra` WHERE (article_id = 7614) LIMIT 1
[ Log time: 1788201825.5625 ] [ Expend time: 0.0016500949859619 ] SELECT `z_article_attachment`.* FROM `z_article_attachment` WHERE (article_id = 7614 AND is_delete = 0) ORDER BY `id` DESC
[ Log time: 1788201825.5654 ] [ Expend time: 0.002532958984375 ] SELECT `z_article`.* FROM `z_article` WHERE (is_delete = 0 AND category_id = 34 AND is_enable = 1) ORDER BY `id` DESC LIMIT 5
[ Log time: 1788201825.5891 ] [ Expend time: 0.001856803894043 ] UPDATE z_article SET view_count = view_count + 1 WHERE id = 7614
[ Log time: 1788201825.5929 ] [ Expend time: 0.00082802772521973 ] SELECT `z_article_category`.* FROM `z_article_category` WHERE (id = 34) LIMIT 1
Escape time: 0.17405390739441, 0 queries, PHP Memory usage: 5587.546875 KB, Server time: 2026-09-01 02:43:45