如何在JavaScript中使用JSTL表达式
下列代码,如何在蓝色语句处使用红色语句定义的对象的相关操作(比如说将蓝色语句换成 pic.getFileName()方法取得的字符串)
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" %>
<%@ page language="java" import="com.lnsytc.news.model.*" %>
<%@ page language="java" import="java.text.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>焦点图 </title>
</head>
<%
List list = (List)request.getAttribute("allpicnews");
Picnews pic = (Picnews)list .get(0);
%>
<body style="margin:0">
<input type="text" value="fgfdgfd"/>
<script type="text/javascript">
imgUrl1="img/flash01.jpg";
imgtext1="佛挡杀佛的是非得失"
imgLink1=escape("http://ett.edaedu.com/21010000/show_show/tv_kejiao.asp&
相关问答:
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
C#写JAVASCRIPT 数组
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......
1.看到《精通javascript》上说:javascript是完全异步的,那么是不是每条语句都不会执行完,下条语句就开始执行呢,实际上不是这样,也不可能是这样,不然怎么写程序?
2.代码如下,为什么不可行呢:
JScript ......
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getSch ......
后台有一个函数 protected string Fun1(int a, string b)
我想在javascript代码中调用它,怎么做?
function GridBind()
{
var a = 1;
var b='s';
& ......