文章列表
var MODULE = function () {
var my = {};
privateProperty = 'Hello Closure';
function privateMethod() {
document.write(privateProperty + "<br />");
};
my.publicProperty = 'Hello ';
my.publicMethod = function () {
privateMethod();
...
<?php
$unsorted = array();
for ($i = 0; $i < 10; $i++) {
$unsorted[] = rand(0,1000);
}
print "Unsorted Array. <br />";
print implode(',', $unsorted);
print "<br />";
print "Sorted Array. <br />";
$sort = select_sort($unsorted);
...
<?php
$unsorted = array();
for ($i = 0; $i < 10; $i++) {
$unsorted[] = rand(0,1000);
}
print "Unsorted Array. <br />";
print implode(',', $unsorted);
print "<br />";
print "Sorted Array. <br />";
$sort = quick_sort($unsorted);
...
<?php
$unsorted = array();
for ($i = 0; $i < 10; $i++) {
$unsorted[] = rand(0,1000);
}
print "Unsorted Array. <br />";
print implode(',', $unsorted);
print "<br />";
print "Sorted Array. <br />";
$sort = bubble_sort($unsorted ...