javascript封装到类里面的方法

OpenClaw界面操作手册:命令行与交互模式的正确打开方式 "test": {"description": "运行项目的测试套件","prompt": "请执行项目的测试命令,并分析测试结果。如果有失败的测试,请提供修复建议。},"lint": {"description": "运行代码检查","prompt": "请运行代码检查工具,分析所有警告和错误,并提供修复建议。},"doc": {"description": "为当前文件生成文档","prompt": "请为当前打开的文件生成完整的API文档,包括函数说明、参数描述、返回值类型和使用示例。 阅读详情

/**
  * 在页面上弹出窗口
  * @param showModal 是否弹出模式窗口。如果为true则弹出模式窗口;否则弹出非模式窗口。
  * @param refreshParent 当关闭弹出的模式窗口时,是否刷新父窗口。如果为true则刷新父窗口;否则不刷新父窗口。该参数只对弹出模式窗口有效。
  * @param url 弹出窗口的URL
  * @param feature 弹出窗口的特征。特征值间用分号分隔,可设置的特征值有:
  *      dialogHeight
  *     dialogLeft
  *         dialogTop
  *         dialogWidth
  *         center:{ yes | no | 1 | 0 | on | off }
  *         dialogHide:{ yes | no | 1 | 0 | on | off }
  *         edge:{ sunken | raised }
  *         help:{ yes | no | 1 | 0 | on | off }
  *         resizable:{ yes | no | 1 | 0 | on | off }
  *         scroll:{ yes | no | 1 | 0 | on | off }
  *         status:{ yes | no | 1 | 0 | on | off }
  *         unadorned:{ yes | no | 1 | 0 | on | off }
  * @throws IOException
  */
public void showDialog(boolean showModal, boolean refreshParent, String url, String Width,String Height) throws IOException {
  FacesContext ctx = FacesContext.getCurrentInstance();
     String contentType = "application/octet-stream;charset=gb2312";
     HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
     response.setContentType(contentType);
     ServletOutputStream out = response.getOutputStream();
     StringBuffer buf = new StringBuffer();
     buf.append("<base target=/"_self/">/n");
     buf.append("<script type=/"text/javascript/">/n");
     buf.append("<!--/n");
     if (showModal) {
      //弹出模式窗口
      buf.append("var rtn=window.showModalDialog('");     
     } else {
      //弹出非模式窗口
      buf.append("var rtn=window.showModelessDialog('");
     }
     buf.append((url == null || url.length() == 0)?"":url+"?"+System.currentTimeMillis());
     buf.append("', 'showModel' ,'");
     buf.append("dialogTop:200px;dialogLeft:300px;dialogHeight:"+Height+"px;dialogWidth:"+Width+"px;status:no;resizable:no");
     buf.append("');/n");
     if (showModal && refreshParent) {
      //模式窗口关闭后,刷新父窗口,要强制刷新
      //buf.append("if(rtn!=null){/n");
      //buf.append("window.parent.location.href=window.parent.location.href;/n");
      //buf.append("alert(window.parent);/n");
      //buf.append("window.parent.location.href=window.parent.location.href;/n");
      buf.append("window.parent.document.getElementById(/"hiddenReloadLink/").click();/n");
      //buf.append("location.href=window.dialogArguments;/n");
      //buf.append("}/n");
     }
     buf.append("window.document.location.href=window.parent.hiddenReloadLink.href;/n");
     buf.append("//-->/n");
     buf.append("</script>");  
     out.print(buf.toString());
     out.flush();
     ctx.responseComplete();
}

/**
  * 适用弹出一个摩态子窗口,选择保存以后关闭,父窗口跳转到下一个页面
  * 适合场合:下个页面是预先知道,而且固定的
  * @param dialogUrl 弹出窗口地址
  * @param destinationUrl 子窗口关闭后,父窗口跳转到的地址
  * @param Width 弹出窗口宽度
  * @param Height 弹出窗口高度
  * @throws IOException
  */
public void showDialogAndTurnOnePage(String dialogUrl,String destinationUrl, String Width,String Height) throws IOException {
  FacesContext ctx = FacesContext.getCurrentInstance();
     String contentType = "application/octet-stream;charset=gb2312";
     HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
     response.setContentType(contentType);
     ServletOutputStream out = response.getOutputStream();
     StringBuffer buf = new StringBuffer();
     buf.append("<base target=/"_self/">/n");
     buf.append("<script type=/"text/javascript/">/n");
     buf.append("<!--/n");
     //弹出模式窗口
     buf.append("var rtn=window.showModalDialog('");     
     buf.append((dialogUrl == null || dialogUrl.length() == 0)?"":dialogUrl+"?"+System.currentTimeMillis());
     buf.append("', '' ,'");
     buf.append("dialogTop:200px;dialogLeft:300px;dialogHeight:"+Height+"px;dialogWidth:"+Width+"px;status:no;resizable:no");
     buf.append("');/n");
     //模式窗口关闭后,父窗口跳转到destinationUrl
     buf.append("if(rtn!=null){/n");
      //buf.append("window.parent.location.href=/""+destinationUrl+"/";/n");
      buf.append("window.parent.document.getElementById(/"hiddenReloadLink/").href=/""+destinationUrl+"/";/n");
      buf.append("window.parent.document.getElementById(/"hiddenReloadLink/").click();/n");
     buf.append("}/n");
     buf.append("window.document.location.href=window.parent.hiddenReloadLink.href;/n");
     buf.append("//-->/n");
     buf.append("</script>");  
     out.print(buf.toString());
     out.flush();
     ctx.responseComplete();
}

/**
  * 适用弹出一个摩态子窗口,选择保存以后关闭,父窗口跳转到下一个页面,下个页面来源返回值
  * @param dialogUrl
  * @param Width
  * @param Height
  * @throws IOException
  */
public void showDialogAndTurnNextPage(String dialogUrl,String Width,String Height) throws IOException {
  FacesContext ctx = FacesContext.getCurrentInstance();
     String contentType = "application/octet-stream;charset=gb2312";
     HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
     response.setContentType(contentType);
     ServletOutputStream out = response.getOutputStream();
     StringBuffer buf = new StringBuffer();
     buf.append("<base target=/"_self/">/n");
     buf.append("<script type=/"text/javascript/">/n");
     buf.append("<!--/n");
     //弹出模式窗口
     buf.append("var rtn=window.showModalDialog('");     
     buf.append((dialogUrl == null || dialogUrl.length()== 0)?"":dialogUrl+"?"+System.currentTimeMillis());
     buf.append("', '' ,'");
     buf.append("dialogTop:200px;dialogLeft:300px;dialogHeight:"+Height+"px;dialogWidth:"+Width+"px;status:no;resizable:no");
     buf.append("');/n");
     //模式窗口关闭后,父窗口跳转到destinationUrl
     buf.append("if(rtn!=null){/n");
     // buf.append("window.parent.location.href=rtn;/n");
     buf.append("window.parent.document.getElementById(/"hiddenReloadLink/").href=rtn;/n");
     buf.append("window.parent.document.getElementById(/"hiddenReloadLink/").click();/n");
     buf.append("}/n");
     buf.append("window.document.location.href=window.parent.hiddenReloadLink.href;/n");
     buf.append("//-->/n");
     buf.append("</script>");  
     out.print(buf.toString());
     out.flush();
     ctx.responseComplete();
}

/**
  * 关闭窗口,没有定义父窗口跳转
  * @throws IOException
  */
public void closeWindow() throws IOException
{
   FacesContext ctx = FacesContext.getCurrentInstance();
       String contentType = "application/octet-stream;charset=gb2312";
       HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
       response.setContentType(contentType);
       ServletOutputStream out = response.getOutputStream();
       out.print("<base target=/"_self/">");
       out.print("<form name=/"form1/">/n");
       out.print("<input type=/"submit/" onclick=/"javascript:window.returnValue='ok';window.close();/" name=/"close/"/>/n");
       out.print("</form>/n");
       out.print("<script type=/"text/javascript/">/n");
       out.print("<!--/n");
       out.print("document.form1.close.click();/n");
       out.print("//-->/n");
       out.print("</script>");
       out.flush();
       ctx.responseComplete();      
}

/**
  * 关闭并且父窗口跳转到下个页面
  * @param dialogUrl
  * @param destinationUrl
  * @param Width
  * @param Height
  * @throws IOException
  */
public void closeAndReturnNextPage(String destinationUrl) throws IOException {
    FacesContext ctx = FacesContext.getCurrentInstance();
       String contentType = "application/octet-stream;charset=gb2312";
       HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
       response.setContentType(contentType);
       ServletOutputStream out = response.getOutputStream();
       out.print("<base target=/"_self/">");
       out.print("<form name=/"form1/">/n");
       out.print("<input type=/"submit/" onclick=/"javascript:window.returnValue='"+destinationUrl+"';window.close();/" name=/"close/"/>/n");
       out.print("</form>/n");
       out.print("<script type=/"text/javascript/">/n");
       out.print("<!--/n");
       out.print("document.form1.close.click();/n");
       out.print("//-->/n");
       out.print("</script>");
       out.flush();
       ctx.responseComplete();
}

/**
  * 弹出窗口并等待返回值,返回以后更新页面值(例如放大镜)
  * @param dialogUrl 弹出的窗口地址
  * @param Width 宽
  * @param Height 高
  * @param param 返回需要更新的对象,多个以逗号分割。
  * @throws IOException
  */
public void showAndWaitReturn(String dialogUrl,String Width,String Height,String param) throws IOException {
  FacesContext ctx = FacesContext.getCurrentInstance();
     String contentType = "application/octet-stream;charset=gb2312";
     HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
     response.setContentType(contentType);
     ServletOutputStream out = response.getOutputStream();
     StringBuffer buf = new StringBuffer();
     buf.append("<script type=/"text/javascript/">/n");
     buf.append("<!--/n");
     //弹出模式窗口
     buf.append("var rtn=window.showModalDialog('");     
     buf.append((dialogUrl == null || dialogUrl.length() == 0)?"":dialogUrl);
     buf.append("', '' ,'");
     buf.append("dialogTop:200px;dialogLeft:300px;dialogHeight:"+Height+"px;dialogWidth:"+Width+"px;status:no;resizable:no");
     buf.append("');/n");
     //模式窗口关闭后,父窗口跳转到destinationUrl
     buf.append("if(rtn!=null){/n");
   
     for(int i=0;i<param.split(",").length;i++)
     {
      String[] params=param.split(",");
      buf.append(" replace(/""+params[i]+"/",rtn."+params[i]+");/n");     
     }
     buf.append("}/n");
     buf.append("function replace(param,paramvalue) /n");
          buf.append("{/n");
     buf.append(" for(var k=0;k<window.parent.document.all.length;k++)/n");
     buf.append(" {/n");
     buf.append("  if(window.parent.document.all(k).name!=/"/"&&window.parent.document.all(k).name!=null&&window.parent.document.all(k).value!=null)/n");
     buf.append("   {/n");
     buf.append("    var name=window.parent.document.all(k).name;/n");
     buf.append("       if(name.lastIndexOf(param,name.length)==name.length-param.length&&name.length-param.length!=-1)/n");
     buf.append("     {/n");
     buf.append("     window.parent.document.all(k).value=paramvalue;/n");
     buf.append("     }/n");
     buf.append("   }/n");
     buf.append(" }/n");
     buf.append("}/n");
    
     buf.append("window.document.location.href=window.parent.hiddenReloadLink.href;/n");
     buf.append("//-->/n");
     buf.append("</script>");  
     out.print(buf.toString());
     out.flush();
     ctx.responseComplete();
}

/**
  * 关闭窗口并返回一个object对象
  * @param param 要返回的参数列表,多个以“,”分割
  * @throws IOException
  */
public void closeAndReturnObject(String param,String paramValue) throws IOException {
    FacesContext ctx = FacesContext.getCurrentInstance();
       String contentType = "application/octet-stream;charset=gb2312";
       HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
       response.setContentType(contentType);
       ServletOutputStream out = response.getOutputStream();
       StringBuffer buf = new StringBuffer();
       //out.print("<input type=/"submit/" onclick=/"javascript:window.returnValue='"+destinationUrl+"';window.close();/" name=/"close/"/>/n");
       buf.append("<script type=/"text/javascript/">/n");
       buf.append("<!--/n");
      
      buf.append("function find(param) /n");
      buf.append("{/n");
      buf.append(" for(var k=0;k<window.document.all.length;k++)/n");
      buf.append(" {/n");
      buf.append("  if(window.document.all(k).name!=/"/"&&window.document.all(k).value!=null)/n");
      buf.append("   {/n");
      buf.append("    var name=window.document.all(k).name;/n");
      buf.append("       if(name.lastIndexOf(param,name.length)==name.length-param.length&&name.length-param.length!=-1)/n");
      buf.append("     {/n");
      buf.append("     var rtn=window.document.all(k).value;/n");
      buf.append("     }/n");
      buf.append("   }/n");
      buf.append(" }/n");
      buf.append("return rtn;/n");
      buf.append("}/n");
     
      buf.append("function rtn() /n");
      buf.append("{/n");
      buf.append("var rtn = new Object();/n");
      String[] params=param.split(",");
       for(int i=0;i<params.length;i++)
       {
        buf.append("rtn."+params[i]+"=find('"+params[i]+"');/n");
        //buf.append("rtn."+params[i]+"='"+new String(paramValues[i])+"';/n");
        //buf.append("rtn."+new String(params[i].getBytes("ISO8859_1"),"GB2312")+";/n");
       }
   
       buf.append("window.returnValue = rtn;/n");
       buf.append("window.close();");
       buf.append("}/n");
       buf.append("//-->/n");
      
       buf.append("</script>/n");
       buf.append("<body onload=/"rtn()/">");
       out.print(buf.toString());
       out.flush();
       //ctx.responseComplete();
}  

SAP-ABAP:SAP Open SQL 分页技术深度解析:语法、性能陷阱与最佳实践 SAP Open SQL 分页技术深度解析:语法、性能陷阱与最佳实践 阅读详情

相关推荐

SAP固定资产原值与净值取值逻辑全解析:从数据表到ABAP实战

在企业资源计划(ERP)系统中,固定资产的价值管理是财务会计的核心模块,其关键在于准确核算资产原值与净值。从技术原理上看,这涉及对资产全生命周期业务(如购置、折旧、转移、报废)的财务建模,以及底层数据表(如ANLC、ANEP)的精准关联与计算。掌握这一逻辑的技术价值在于,能够确保财务报表数据的准确性,满足合规性要求,并为管理决策提供可靠依据。在SAP ECC或S/4HANA系统的应用场景中,ABAP开发者与财务顾问常需通过编写报表程序,从复杂的数据结构中提取资产价值信息。本文聚焦于SAP资产会计模块,深入剖

weixin_30984001的博客 393

多个接口可以封装成一个接口处理

在开发中会遇到这样的修求,可能一个页面会根据不同的情况会请求多个接口,返回一样的结果。如果各个接口分别编写一次,先的很搂,并且代码冗余。那么分装成一个方法来请求。 解决办法:其实就是将写一个方法,return请求接口,用另一个方法来接收结果 分装后的代码 import {saleDeptAnalysis,userAnalysis,contractIndustry} from '@/api/bi/customer' //接口 /** * 查询表格数据,接口接口返回的数据 * @par.

bigdargon的博客 1984

大模型应用开发面试全流程实录:RAG、上下文工程与多Agent协作技术深度解析

Transformer 依靠多头自注意力和位置编码实现高效序列建模。Prompt Engineering包含多种设计思路,如 Zero-shot、Few-shot、Chain-of-thought,提升模型泛化和推理。Token 和上下文窗口直接影响模型性能与成本,选择需结合实际业务场景(如客服对话需长窗口)。Embedding 技术是 RAG 的基础,决定了语义检索效果。向量数据库如 FAISS、Milvus等分别适用于本地/分布式检索。

m0_52114506的博客 828

js常用方法

我在项目中常用的一些技js方法(因为是我自己用的所以某些方法不是很严谨 见谅 另外就是提供个参考) 1.阻止事件 //阻止事件冒泡 function stopBubble(e) { var evt = e ? e : window.event; //如果提供了事件对象,则这是一个非IE浏览器 if (evt.stopPropagation) //因此它支...

招来红月的博客 314

STM32F407通过SMBus协议精准读取BQ40Z50电池电量

本文详细介绍了STM32F407通过SMBus协议精准读取BQ40Z50电池电量的实现方法。从硬件连接到软件驱动开发,再到通信异常排查,提供了完整的解决方案。重点解析了SMBus协议的特殊时序要求、GPIO模拟驱动的关键代码,以及实际调试中的常见问题与对策,帮助开发者高效完成电池管理系统开发。

weixin_29189003的博客 251

WandB本地部署踩坑指南:从Docker启动到License更新的完整流程(附常见错误解决方案)

本文详细介绍了Weights & Biases(WandB)机器学习实验管理平台的本地化部署全流程,涵盖从Docker环境搭建、许可证管理到常见错误排查的实战经验。针对企业级应用场景,文章还提供了性能优化、高可用架构设计及开源替代方案Trackio的评估与迁移策略,为构建安全、可控的内部实验追踪平台提供完整解决方案。

potato的博客 568

javascript通用方法封装

工作上常用方法每次重写,便想封装一起,方便调用,也当作备忘录。比如默认转字符串,比如各种兼容问题。

tang31415926的博客 567

抖音风控参数‘bd-ticket-guard-client-data’深度解析:从X.509证书到请求签名的完整链路

本文深度解析抖音风控参数‘bd-ticket-guard-client-data’的技术实现,从X.509证书体系到请求签名的完整安全链路。通过Python代码示例,揭示证书生成、签名算法及票据封装等核心机制,帮助开发者理解现代平台风控系统的多层防御架构设计。

weixin_42525738的博客 432

js删除字符串最后一个字符_JS常用方法和一些封装:字符串、数组

题外话我始终认为,学习编程最好的方式就是去写,甭管写的怎样,也要去练习。当初学完了数组,我记得自己是先把里面的每一个方法都敲了一遍,然后反复思考,通过这些方法,我能够做些什么?很多语法我一开始也是很不理解的,然而在不断地运用过程中,慢慢地就开始明白过来了。只要抓住一个大方向,然后不断地练,就一定能深入理解!正如国外一个有名的数学家所言,只有抓住了主树干,枝叶方面的细节便会奇迹般地丰富起来。很多初学...

weixin_39788740的博客 240

VS Code 重大更新:Agent Skills完美支持!

代码不会骗人,但你的 LLM 可能会编个故事——除非你给它一本《技能手册》。——某位深夜调试成功的 Go 工程师。

weixin_44058951的博客 3459

innovus:给channel加soft blockage

dbGet [dbGet top.fplan.pBlkgs.name finishfp_place_blkg_* -p].boxes就可以获得channel坐标。意思是给30um以下的channel加soft blk,至于channel的坐标,通过抓取该soft blk去获取,比较容易。工具自己加入的placement blockage命名上叫finishfp_place_blkg_*ICC2中有给channel自动加soft blockage的命令,相应的innovus也有类似的命令,我们可以使用。

m0_61544122的博客 482

常用的一些函数封装,JS简单实现

记录一些日常开发需要用到的函数,节流、防抖、函数柯里化、缓存...

nkxrb 477

51单片机 驱动有源/无源蜂鸣器+Proteus仿真

51单片机 驱动有源/无源蜂鸣器+Proteus仿真 相关篇《51单片机 Proteus仿真有源蜂鸣器始终不响原因及解决方法》 电路搭建 采用NPN管驱动有源蜂鸣器电路 采用PNP管驱动有源蜂鸣器电路 采用PNP管驱动无源蜂鸣器 采用NPN管驱动无源蜂鸣器 Proteus元器件列表 实例代码 /************************************************************************************* * 实验现象:下载程序

perseverance51博客 2万+

php如何把代码封装成一个类,javascript,_新手请教,如何将一段JS代码封装成一个方法?,javascript - phpStudy...

新手请教,如何将一段JS代码封装成一个方法?$("#plate-1").mouseenter(function() {$("#plate-1hover").addClass("plate-1after")}).mouseout(function(){$("#plate-1hover").removeClass("plate-1after")});$("#plate-2").mouseenter(f...

weixin_33514163的博客 206

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

JS学习笔记(七)class类、对象的方法、面向对象(封装、多态、继承)、原型

class类、对象的方法、面向对象(封装、多态、继承)、原型

Yeee_F 830

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

面向对象简介、类的简介、属性、方法、构造函数、封装、多态、继承——JS面向对象

面向对象简介、类的简介、属性、方法、构造函数、封装、多态、继承

weixin_70320000的博客 397

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

JS 实现 创建类、继承、方法添加、对象克隆、数组封装操作

一.对象的创建以及方法的添加 /** * Created with JetBrains WebStorm. * User: markeluo * Date: 12-8-1 * Time: 下午2:30 * To change this template use File | Settings | File Templates. */ /* * 1.类创建,可继...

weixin_30666401的博客 147

Javascript实现类似C#类的封装

对Javascript研究不深,虽然有许多自己的C#类库,却没有一个自己的js类库,一直都是用到了再去找去写。以后要像封装C#类一样,把常用的js方法也封装起来。JsClass.js文件 //定义一个类function_HY_JsClass(){}//定义类的属性_HY_JsClass.prototype={p1:0,p2:{a:0,b:1}}//定义类的方法_HY_JsCla...

weixin_34090562的博客 100

js获取class类封装方法

function getClass (classname,obj) {//obj就是找的标签范围; var obj=obj||document;//如果obj没有参数传进来的话就为假,就返回document; var arr=[];//设置一个数组来存储在ie下标签的className属性值等于类名的元素; if(document.getElementsByClassName){

kongjiea笔记 6696

使用 js 类封装项目中音频播放功能的工具方法utils

封装音频播放功能的工具方法,js,es6,前端,工程化

qq_40868156的博客 605

js代码如何封装

1. 定义js类js并不是一种面向对向的语言, 没有提供对类的支持, 因此我们不能像在传统的语言里那样 用class来定义类, 但我们可以利用js的闭包封装机制来实现j...

frontend_frank的博客 823

JS类的封装

js并不是一种面向对向的语言, 没有提供对类的支持, 因此我们不能像在传统的语言里那样 用class来定义类, 但我们可以利用js的闭包封装机制来实现js类 1. 定义js类js并不是一种面向对向的语言, 没有提供对类的支持, 因此我们不能像在传统的语言里那样 用class来定义类, 但我们可以利用js的闭包封装机制来实现js类, 我们来封装一个简的Shape类. functio...

LEE123321123456的博客 206

php 用js 封装,二 JS类 封装常用Javascript以便PHP快速调用-PHP教程,PHP应用

//// +———————————————————————-+// | jsjavascript 类|// +———————————————————————-+// | copyright (c) 2001 netfish software...

weixin_31445167的博客 163

JS封装类的get方法

get

m0_57996540的博客 645

js 封装获取class的值、添加class、删除class

在base.js文件的基础上 继续封装 js 封装获取class  * 1.调整封装  * 2.设置获取innerHTML里面的值  * 3.设置获取CSS样式并且设置  * 4.获取某个元素并设置  * 5.获取某一区域的CSS(这里获取ID的区域)并设置 base.js /*前台调用*/ var $=func

csdn_chenli 6712

javascript 文字闪烁

早上突然看到CSS里面的text-decoration属性的时候,发现blink仅有的火狐浏览器都不支持了.于是想使用js来实现这一效果. 1 <script type="text/javascript"> 2 var i = 0; 3 function getColor(){ 4 i++; 5 switch(i)...

weixin_30595035的博客 126
上一篇: Oracle to_date()与24小时制表示法及mm分钟的显示
下一篇: 非常不错的Javascript脚本
FoxGit
博客等级 码龄20年 1粉丝 4原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值