我正在尝试在隐藏的 iframe 中托管 pdf,并且它们在 chrome 中呈现小问题。我必须刷新页面才能正确加载。
JSfiddle 这里https://jsfiddle.net/464xo40f/
JavaScript
=====================
$(document).ready(function(){
$("#evidence-frame").hide();
$("#toggle").click(function(){
$("#evidence-frame").toggle();
});
});
HTML
======================
<h4>Ethics</h4>
<h5>CST 373: Ethics in Major</h5>
<p class="description">
<span class="description-title">Description</span><br />
Investigates through an ethical perspective how communication technology affects our lives. Discusses individual and institutional values represented through technological choices. Using case studies and current events, explores such issues as intellectual property rights, information access and privacy, and the digital divide.
<br />
<span id="evidence">Evidence: </span><a id="toggle" href="#">Ethical Challenge Presented: …Run Code Online (Sandbox Code Playgroud) 我正在使用binwalk,它的查找文件,但事后我没有提取任何内容,并且没有问题.这些不是文件吗?
babak@G750JHA ~/Desktop $ binwalk -Me ./Cottonelle.bin
Scan Time: 2016-06-18 23:19:58
Target File: /home/ubuntu/babak/Desktop/Cottonelle.bin
MD5 Checksum: f330370ed549c30bb301b42e7363ce32
Signatures: 345
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
16560 0x40B0 PEM RSA private key
18608 0x48B0 PEM certificate
20484 0x5004 PEM certificate
32944 0x80B0 PEM RSA private key
34992 0x88B0 PEM certificate
36868 0x9004 PEM certificate
301529 0x499D9 Certificate in DER format (x509 v3), header length: 4, sequence length: 177
414737 0x65411 Boot section Start 0x42423242 End 0x0
414741 0x65415 Boot section Start 0x0 End …Run Code Online (Sandbox Code Playgroud) 我不确定如何说出来,对不起,如果不是直截了当的话.
当用户在浏览器地址栏中输入www.example.com或运行node.js的服务器的ip时,我想获取传入请求并决定从那里做什么:
var express = require('express');
var app = express();
app.get('/', function(req, res){
var target=app.get('host');
console.log(target);
});
app.listen(8088,"0.0.0.0");
Run Code Online (Sandbox Code Playgroud)
结果我看到控制台上印有"未定义",而不是我预期的在浏览器中输入的内容.我做错了什么?