摘要:
package cn.dbd; import javax.swing.JPanel;//1. import javax.swing.JFrame; //游戏窗口 public class World extends JPanel { //2. public static void main(Stri
阅读全文
posted @ 2023-08-11 15:38
是程序喵哇
阅读(24)
推荐(0)
摘要:
1、随机生成字符串 const randomStr = () => Math.random().toString(20).slice(2); randomStr(); 2、实现字符串的翻转 const reverseStr = str => str.split('').reverse().join(
阅读全文
posted @ 2023-08-10 14:35
是程序喵哇
阅读(37)
推荐(0)
摘要:
1.返回顶部按钮 你可以利用 animate 和 scrollTop 来实现返回顶部的动画,而不需要使用其他插件。 // Back to top // Back to top $('a.top').click(function () { $(document.body).animate({scrol
阅读全文
posted @ 2023-08-07 14:31
是程序喵哇
阅读(68)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
posted @ 2023-08-03 15:12
是程序喵哇
阅读(1311)
推荐(0)
摘要:
function getparams() { var params = location.search.substring(1); var Arrparams = params.split('&'); if(Arrparams.length ==2){ var mao = Arrparams[1].
阅读全文
posted @ 2023-08-03 09:14
是程序喵哇
阅读(50)
推荐(0)
摘要:
/* * .::::. * .::::::::. * ::::::::::: * ..:::::::::::' * '::::::::::::' * .:::::::::: * '::::::::::::::.. * ..::::::::::::. * ``:::::::::::::::: * ::
阅读全文
posted @ 2023-08-01 15:58
是程序喵哇
阅读(632)
推荐(0)
摘要:
数组能够在单独的变量名中存储一个或多个值。 实例 数组在单个变量中存储多个值: <?php $cars=array("porsche","BMW","Volvo"); echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] .
阅读全文
posted @ 2023-07-26 11:49
是程序喵哇
阅读(38)
推荐(0)
摘要:
PHP 的真正力量来自它的函数:它拥有超过 1000 个内建的函数。 PHP 用户定义函数 除了内建的 PHP 函数,我们可以创建我们自己的函数。 函数是可以在程序中重复使用的语句块。 页面加载时函数不会立即执行。 函数只有在被调用时才会执行。 在 PHP 创建用户定义函数 用户定义的函数声明以单词
阅读全文
posted @ 2023-07-26 11:10
是程序喵哇
阅读(37)
推荐(0)
摘要:
PHP for 循环执行代码块指定的次数。 PHP for 循环 如果您已经提前确定脚本运行的次数,可以使用 for 循环。 语法 for (init counter; test counter; increment counter) { code to be executed; } 参数: ini
阅读全文
posted @ 2023-07-26 10:45
是程序喵哇
阅读(150)
推荐(0)
摘要:
PHP while 循环在指定条件为 true 时执行代码块。 PHP 循环 在您编写代码时,经常需要反复运行同一代码块。我们可以使用循环来执行这样的任务,而不是在脚本中添加若干几乎相等的代码行。 在 PHP 中,我们有以下循环语句: while - 只要指定条件为真,则循环代码块 do...whi
阅读全文
posted @ 2023-07-26 09:38
是程序喵哇
阅读(54)
推荐(0)