我正在使用Windows PowerShell ISE编写PowerShell脚本.当我更改脚本中的某些内容并运行脚本时,不会执行最后保存的脚本版本,而是执行旧版本.只有当我第二次运行脚本时,它才会使用当前版本.如何始终运行最新版本的脚本?
我有一个表,并希望第一列有一个垂直滚动条.这适用于Chrome,IE9,iPad上的Safari但不适用于Firefox?为什么不?我究竟做错了什么?
HTML:
<table>
<tbody>
<tr>
<td class="col1">
<div class="wrapper">
<p>Test</p>
<p>Test</p>
<p>Test</p>
<p>Test</p>
<p>Test</p>
<p>Test</p>
...
</div>
</td>
<td class="col2">
</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
CSS:
html, body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
table {
width: 100%;
height: 100%;
}
table .col1 {
width: 20%;
height: 100%;
}
table .col1>div.wrapper {
width: 100%;
height: 100%;
overflow: auto;
}
table .col2 {
width: 80%;
height: 100%;
background-color: red;
}
Run Code Online (Sandbox Code Playgroud) 我有一个问题,包括我的网页中的jQuery脚本.我总是在第6行中得到错误"$ is not a function".我将脚本简化为以下非常简单的:
$(document).ready(function(){
myTest();
});
function myTest(){
window.console && console.log($("#test"));
}
Run Code Online (Sandbox Code Playgroud)
为什么第6行出现错误?为什么不在第1行呢?