JavaScript

From mmmv_kos
Jump to: navigation, search

Programmeerimiskeeled


Dojo YUI pre3d jQuery
node.js Backbone.js Flot TufteGraph
jqPlot Rickshaw simile-widgets.org RGraph
dygraphs AwesomeChartJS Chart.js sigmajs.org
Smoothie Charts JavaScript InfoVis Toolkit canvasXpress elycharts
abor.js mootools bonsai RequireJS
Meteor IvanK Babylon Engine o3d kui VRML'i järglane
glMatrix Apache Cordova x x
x x x x
Raphaël D3.js Protovis Google Chart Tools


Spetsifikatsioone


Teekide dokumentatsioon


Rakenduste Raamistikke

Open Cooperative Web Framework Example Example Example Example Example
Example Example Example Example Example Example
Example Example Example Example Example Example
Example Example Example Example Example Example
Example Example Example Example Example Example


Strings

JavaScript uses UTF-8 by default.

var s_0="abcdb";
//      "01234";
var s_1=s_0.indexOf("b",0);
var s_2=s_0.indexOf("b",1);
var s_3=s_0.indexOf("b",2);
var s_4=s_0.indexOf("b",4);
var s_5=s_0.indexOf("c",4);
var s_6=s_0.substring(1,3);
var s_7=s_0.substring(1,1);
document.write("s_0=="+s_0+
"\n<br/>s_1=="+s_1+
"\n<br/>s_2=="+s_2+
"\n<br/>s_3=="+s_3+
"\n<br/>s_4=="+s_4+
"\n<br/>s_5=="+s_5+
"\n<br/>s_6=="+s_6+
"\n<br/>s_7==\""+s_7+"\"");

// Output:
// s_0==abcdb
// s_1==1
// s_2==1
// s_3==4
// s_4==4
// s_5==-1
// s_6==bc
// s_6==""