看到有人要就发布一个咯 代码如下 ? <script type=”text/javascript”> $(“div.block_3″).addClass(“fl”); $(“div.block_3:eq(1)”).addClass(“bk10″); $(document).ready(function () { $(“.s_text”)...
分类:
其他好文 时间:
2015-04-06 23:23:35
阅读次数:
933
JavaScript使用Max函数返回两个数字中较大数的代码。JavaScript的Math对象带有一个max函数用于获取两个数字的较大数代码:<pid="demo">Clickthebuttontoreturnthehighestnumberof5and10.</p><buttonit</button><script>functionmyFunction(){documen..
分类:
编程语言 时间:
2015-04-06 18:56:18
阅读次数:
154
练习19:写一个脚本:可以接受一个参数,其使用形式如下:script.sh{start|stop|restart|status}如果参数为start,创建空文件/var/lock/subsys/script,并显示“Startingscriptsuccessfully.”;如果参数为stop,则删除文件/var/lock/subsys/script,并显示“Stopscriptfinishe..
分类:
其他好文 时间:
2015-04-06 18:56:03
阅读次数:
162
JavaScript弹出窗口并且向父窗口输出内容代码<script>functionopenWin(){myWindow=window.open(‘‘,‘‘,‘width=200,height=100‘);myWindow.document.write("<p>Thisis‘myWindow‘</p>");myWindow.focus();myWindow.opener.document.write("<p>Thisistheso..
分类:
编程语言 时间:
2015-04-06 18:55:49
阅读次数:
112
JS数组带有一个unshift方法可以再数组前面添加若干个元素,下面是详细的代码演示<pid="demo">Clickthebuttontoaddelementstothearray.</p><buttonit</button><script>functionmyFunction(){varfruits=["Banana","Orange","Apple","Mango"];fruits.u..
分类:
编程语言 时间:
2015-04-06 18:54:17
阅读次数:
215
github地址:https://github.com/kaimallea/isMobileExample UsageI include the minified version of the script, inline, and at the top of the. Cellular conne...
分类:
移动开发 时间:
2015-04-06 12:46:40
阅读次数:
1538
Aircrack-ng官方文档翻译---Airmon-ngDescription【简介】 This script can be used to enable monitor mode on wireless interfaces. It may also be used to go back fro...
分类:
其他好文 时间:
2015-04-05 21:48:10
阅读次数:
261
1.需要的js和样式(jquery?是必选的) ?? <script?src="${ctx}/js/jquery/jquery-1.7.2.js"?type="text/javascript"></script>
<script?src="${ctx}/js/jquery/jquery-ui-1.9.2.custom.js"?type="text/ja...
分类:
其他好文 时间:
2015-04-03 22:37:47
阅读次数:
201
这一轮答的并不理想,很有可能挂掉。回来之后自己又答了一遍,没有参考任何资料,居然全部答上了。到底还是自己的基本功不扎实,遇见没做过的东西,没有调试环境就慌了,再努力提高吧。一、实现jsonp,传入URL,callback和callbackName 三个参数我先说下思路,jsonp是借由script标...
分类:
其他好文 时间:
2015-04-03 20:56:52
阅读次数:
209
安装node 虽然官网提供了单文件bin的版本 但是并不知道怎么安装npm于是乎还是得安装msi (坑当使用coffee -w -c . 监视文件改变 即时编译的时候会 提示Error: The two following source files have the same output file...
分类:
其他好文 时间:
2015-04-03 18:43:18
阅读次数:
124