码迷,mamicode.com
首页 >  
搜索关键字:script syntax    ( 25337个结果)
JavaScript使用Max函数返回两个数字中较大数的代码
JavaScript使用Max函数返回两个数字中较大数的代码。JavaScript的Math对象带有一个max函数用于获取两个数字的较大数代码:<pid="demo">Clickthebuttontoreturnthehighestnumberof5and10.</p><buttonit</button><script>functionmyFunction(){documen..
分类:编程语言   时间:2015-04-06 18:56:18    阅读次数:154
JavaScript弹出窗口并且向父窗口输出内容代码
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
JavaScript数组前面插入元素代码
JS数组带有一个unshift方法可以再数组前面添加若干个元素,下面是详细的代码演示<pid="demo">Clickthebuttontoaddelementstothearray.</p><buttonit</button><script>functionmyFunction(){varfruits=["Banana","Orange","Apple","Mango"];fruits.u..
分类:编程语言   时间:2015-04-06 18:54:17    阅读次数:215
isMobile 一个简单的JS库,用来检测移动设备
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
【龙书笔记】语法分析涉及的基础概念简介
本篇笔记是我对龙书第2.3-2.5节内容的理解,主要介绍编译器前端关于语法分析的众多基础概念。下篇笔记将根据本篇笔记的主要内容,实现一个针对简单表达式的后缀式语法翻译器Demo(原书中是java实例,我给出的将是逻辑一致的Python版本的实现)。 1. 语法分析(Syntax Analysis) 简单来说,语法分析的任务是分析输入的符号字符串(string of symbols, 通常是词法...
分类:其他好文   时间:2015-04-06 10:11:33    阅读次数:129
Aircrack-ng官方文档翻译[中英对照]---Airmon-ng
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
Markdown语法中文版
文章翻译自Markdown创始人JOHN GRUBER的个人博客, 英文原文请参见Markdown Syntax;原文是用Markdown格式写的, 但是cnblogs不支持Markdown(或者是我不知道), 只能重新排版了, Github原文可以参见这里;个人水平有限, 如有发现错误, 欢迎通过...
分类:其他好文   时间:2015-04-05 13:10:07    阅读次数:199
XBMC 最新版本号错误
1.Syntax error: "(" unexpected 改动 tools/depends下的makefile.include 将NDK_VER=0x9d
分类:其他好文   时间:2015-04-04 15:09:10    阅读次数:162
挖掘angularjs "controller as" 语法
原文:http://toddmotto.com/digging-into-angulars-controller-as-syntax/AngularJS Controllers have recently gone under some changes (version 1.2 to be prec...
分类:Web程序   时间:2015-04-03 23:41:24    阅读次数:219
输入框提示自动提示类似百度,淘宝的输入框
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!