DHTMLConsole Chrome 插件, crx 扩展下载

 收录于6年前 阅读数 40

扩展ID: jojehgiefnbpeljgiofpdmmdeklckbdd

This allows you to send message from your server via headers to the dhtmlconsole developer panelThis plugin allows you to send a message from your web server (directly by running a server script or making an ajax call) to your browser by using an HTTP Header.

The only rule is that you need to send custom HTTP headers from your server with the name of the header starting with X-DHTML-CONSOLE.

To send a message from a PHP script to the browser, this implementation will suffice:

<?php
header('X-DHTML-CONSOLE-MSG: Hello World');
?>

As of version 0.3, you can now do javaScript alerts
<?php
header('X-DHTML-CONSOLE-MSG: alert:Hello World');
?>


As of version 0.3, you can clear the console from server by:
<?php
header('X-DHTML-CONSOLE-MSG: -clear-');
?>


To send multiple messages in PHP:

<?php
function dhtmlconsole($msg='') {
    static $pos=0;
    $pos++;
   header('X-DHTML-CONSOLE-MSG'.$pos.': '.$msg);
}

//implementation
dhtmlconsole("Hello");
dhtmlconsole("World");
?>
名称 DHTMLConsole
插件标识 jojehgiefnbpeljgiofpdmmdeklckbdd
平台 Chrome
评分 0
评分人数 3
插件主页

www.africoders.com

作者 diltony
版本号 0.4
大小 356 KB
官网下载次数 135
分类 查看更多 web开发 分类下的扩展插件
下载地址
更新时间 2016-01-19 00:00:00
举报
回复

相关推荐

大家在找这些插件

相关搜索词