function tijiao(abc){
document.form1.action="/bbs/admin/topic.do?method=piLiang&state="+abc;
document.form1.submit();
}
<form name="form1" method="post" >
<input type="button" value="批量设置为普通" onclick=tijiao(1) >
<input type="button" value="批量设置为置顶" onclick=tijiao(2)>
</form>
分享到:
相关推荐
代码如下: ”javascript” name=”code”>function check(txt){ $j(“form”).submit(function(){ if($txt==”提交”){ this.action=”doAddMessage.action?button=提交”; this.submit(); }else{ this.action=”...
本文实例讲述了Web表单提交之disabled问题js解决方法。分享给大家供大家参考。具体分析如下: 例如,有如下表单 代码如下:<form id=”inputForm” action=”shorttermrental.action” method=”post”> <...
From this book you will learn how to write maintainable server-side JavaScript using Node.js, how to test your code and deploy it on the internet. Table of Contents Chapter 1: Setting up for Node.js...
using JavaScript and p5.js and secondarily in creating visuals. The main focus is to teach you how to program so that you can choose to pursue whatever field that you would like with your newly ...
Microservices enable us to develop software in small pieces that work together but can be developed separately; this is one reason why enterprises have started embracing them. For the past few years, ...
This book starts off with an introduction to JavaScript security and gives you an overview of the basic functions JavaScript can perform on the Web, both on the client side and the server side....
Most important, basing inheritance on JavaScript's prototypal chain is possible, but is not the best choice for prototypal inheritance or classical inheritance. What You'll Learn What are objects, ...
Chapter 5: Using Underscore.js in the Browser, on the Server, and with the Database Chapter 6: Related Underscore.js Libraries and ECMAScript Standards Chapter 7: Underscore.js Build Automation and ...
Node.js is a JavaScript runtime-based, scalable platform used to develop web applications and network programs on the server side. It allows web designers to access the backend of their projects while...
Hosting a Node.js application in a production environment usually means turning to PaaS hosting, but this approach brings problems. Deploying Node.js directly to AWS solves the problems you encounter...
As well as focusing on client-side JavaScript, you will also learn how to work with the Browser Object Model, the Document Object Model (DOM), how to use XML and JSON as well as communicate with ...
I wrote it for readers with at least some prior programming experience who want to learn JavaScript and also for programmers who already use JavaScript but want to take their understanding to a new ...
textures, Textures.js 是一个用于创建SVG模式的JavaScript库 textures.jsTextures.js 是一个用于创建SVG模式的javascript库。 它是以英镑为代价的,它是为数据可视化而设计的。阅读更多关于 ...
Building web applications with maintainable and performant user interfaces is a challenge that many have faced for more than a decade, but no one has risen to this challenge quite like React.js....
Getting started with a new Single Page Application (SPA) JavaScript framework can be an overwhelming task, but Vue.js makes this daunting task simple and easy to learn, allowing you to start ...
Getting started with a new Single Page Application (SPA) JavaScript framework can be an overwhelming task, but Vue.js makes this daunting task simple and easy to learn, allowing you to start ...
JavaScript is one of the most important technologies on the web. It provides the means to add dynamic functionality to your web pages and serves as the backbone of Ajax-style web development. ...
But there is more power waiting to be unlocked--JavaScript is capable of full object-oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can ...
While some web developers dismiss JavaScript as a flawed language, this succinct book shows you how to make the best of it by practicing a functional style of JavaScript programming. Written by ...