打开/关闭菜单
切换首选项菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

测试20:修订间差异

来自珠海交通维基
(创建页面,内容为“<!DOCTYPE html> <html> <head> <title>图片搜索</title> <style> body { display: flex; flex-direction: column; a…”)
 
无编辑摘要
第1行: 第1行:
<!DOCTYPE html>
<html>
<html>
<head>
<head>
第30行: 第29行:
<body>
<body>
     <div class="search-container">
     <div class="search-container">
         <input type="text" id="searchInput" placeholder="请输入图片名称">
         <input type="text" id="searchInput" placeholder="请输入你要查询的车牌号">
         <button onclick="searchImage()">搜索</button>
         <button onclick="searchImage()">搜索</button>
     </div>
     </div>
第38行: 第37行:
         function searchImage() {
         function searchImage() {
             const input = document.getElementById('searchInput').value;
             const input = document.getElementById('searchInput').value;
             const imageUrl = `http://xxx.com/${encodeURIComponent(input)}.jpg`;
             const imageUrl = `https://w.zhbus.org/images/thumb/0/07/%E6%B9%96%E5%BF%83%E8%B7%AF%E5%8F%A3520.jpg/${encodeURIComponent(input)}.jpg`;
             const imgElement = document.getElementById('resultImage');
             const imgElement = document.getElementById('resultImage');
              
              

2025年2月28日 (五) 09:12的版本

图片搜索

搜索结果