码迷,mamicode.com
首页 >  
搜索关键字:script scriptreplay    ( 23182个结果)
Decode Ways
Description Description A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 ...
分类:其他好文   时间:2019-12-21 22:40:11    阅读次数:101
Stone Game II
Description Description There is a stone game.At the beginning of the game the player picks n piles of stones in a circle. The goal is to merge the st ...
分类:其他好文   时间:2019-12-21 22:30:37    阅读次数:83
关于JS 的原型和原型链
原型 JavaScript规定,每一个函数都有一个prototype对象属性,指向另一个对象。prototype对象属性的所有属性和方法都会被构造函数的实例继承。这意味着我们可以把那些公用的属性和方法,直接定义在prototype对象属性上。 prototype就是调用构造函数所创建的实例对象的原型 ...
分类:Web程序   时间:2019-12-21 22:17:41    阅读次数:145
Maximum Subarray
Description Description Given an array of integers, find a contiguous subarray which has the largest sum. The subarray should contain at least one num ...
分类:其他好文   时间:2019-12-21 22:17:06    阅读次数:99
k Sum
Description Description Given n distinct positive integers, integer k (k <= n) and a number target. Find k numbers where sum is target. Calculate how ...
分类:其他好文   时间:2019-12-21 22:15:15    阅读次数:74
什么是跨域
1.同源策略是浏览器的安全策略协议名、域名、端口号必须一致2.跨域违背了同源策略就会产生跨域3.解决跨域jsonpcors服务器代理模式第一步创建script标签varscript=docuemnt.createElement("script")第二步设置回调函数fuctiongetData(data){//数据请求回来会被触发的函数consol.log(data)}第三步设置
分类:其他好文   时间:2019-12-21 21:02:48    阅读次数:89
javaweb使用button的onclick属性访问servlet
1.定义一个servlet: 如我定义了一个名称为Choose_class.java的servlet 2.定义一个button <input type="button" value="确定" onClick="fun1()" ; 3.在script中定义fun1()方法: <script type= ...
分类:编程语言   时间:2019-12-21 20:38:57    阅读次数:392
python中super的用法实例解析
概念 super作为python的内建函数。主要作用如下: 允许我们避免使用基类 跟随多重继承来使用 实例 在单个继承的场景下,一般使用super来调用基类来实现: 下面是一个例子: 输出结果: ? super git:(master) ? py super_script.py Dog has fo ...
分类:编程语言   时间:2019-12-21 18:54:36    阅读次数:91
深入了解js函数
<script> //深入了解函数1.函数参数;2.函数的返回值;3. 变量的作用域;4.自调用函数 //函数的定义 function test(){ console.log("hellor wold"); }; var test = function(){ console.log('hello w ...
分类:Web程序   时间:2019-12-21 18:49:51    阅读次数:115
call,apply,bind的用法及区别
<script> function test(){ console.log(this) } // new test(); //函数调用call方法的时候,就会执行。 //call的参数:第一个参数:方法执行的时候,方法中的this的指向。第二个参数:表示方法执行所需要的实际参数。 var obj = ...
分类:移动开发   时间:2019-12-21 18:43:48    阅读次数:96
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!