当前位置: 首页>>代码示例>>PHP>>正文


PHP JS::clean方法代码示例

本文整理汇总了PHP中JS::clean方法的典型用法代码示例。如果您正苦于以下问题:PHP JS::clean方法的具体用法?PHP JS::clean怎么用?PHP JS::clean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JS的用法示例。


在下文中一共展示了JS::clean方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testJsOrder

 function testJsOrder()
 {
     JS::clean();
     JS::require_jquery();
     JS::require_script("/js/jquery/pippo.js");
     JS::require_script("/js/jquery/another_js.js");
     $required_javascripts = PageData::instance()->get("/page/headers/required_javascripts/list");
     $this->assertTrue(strstr("/framework/core/js/jquery/jquery.min.js", $required_javascripts[0]["script_path"]) == 0, "Il primo file non corrisponde!!");
     $this->assertTrue(strstr("/js/jquery/pippo.js", $required_javascripts[1]["script_path"]) == 0, "Il secondo file non corrisponde!!");
     $this->assertTrue(strstr("/js/jquery/another_js.js", $required_javascripts[2]["script_path"]) == 0, "Il terzo file non corrisponde!!");
 }
开发者ID:mbcraft,项目名称:frozen,代码行数:11,代码来源:js_test.php

示例2: __classLoaded

 static function __classLoaded($className)
 {
     self::set_title(null);
     self::set_description(null);
     self::set_keywords(null);
     PageData::instance()->set("/page/headers/indexing_tags", array(Block::MARKER_KEY => "head/indexing_tags"));
     PageData::instance()->set("/page/headers/content_type", array(Block::MARKER_KEY => "head/content_type"));
     PageData::instance()->set("/page/headers/meta_tags", array(Block::MARKER_KEY => "head/meta_tags_list"));
     PageData::instance()->set("/page/headers/meta_tags/list", array());
     PageData::instance()->set("/page/headers/page_author", array(Block::MARKER_KEY => "head/author"));
     PageData::instance()->set("/page/headers/comment_tags", array(Block::MARKER_KEY => "head/comment_list"));
     PageData::instance()->set("/page/headers/comment_tags/list", array());
     $year = date("Y");
     $copyright_string = "Copyright " . $year . " (c) MBCRAFT";
     PageData::instance()->set("/page/headers/page_copyright", array(Block::MARKER_KEY => "head/copyright", "copyright_string" => $copyright_string, "year" => $year));
     self::set_layout("ajax");
     CSS::clean();
     JS::clean();
 }
开发者ID:mbcraft,项目名称:frozen,代码行数:19,代码来源:Html.class.php


注:本文中的JS::clean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。