我需要一种方法使用 Laravel Mix 将文件夹中的每个 JS 文件编译为另一个文件作为单独的文件。
yum -y install phpmyadmin
Run Code Online (Sandbox Code Playgroud)
出现错误:
Error: Package: phpMyAdmin-4.4.15.10-2.el7.noarch (epel)
Requires: php-zip
Available: php-common-5.4.16-42.el7.x86_64 (base)
php-zip
Available: php-common-5.4.16-43.el7_4.x86_64 (updates)
php-zip
Available: php-pecl-zip-1.15.1-2.el7.remi.7.2.x86_64 (remi-php72)
php-zip = 1:1.15.1-2.el7.remi.7.2
Available: php-pecl-zip-1.15.2-1.el7.remi.7.2.x86_64 (remi-php72)
php-zip = 1:1.15.2-1.el7.remi.7.2
Available: php55w-common-5.5.38-1.w7.x86_64 (webtatic)
php-zip
Available: php56w-common-5.6.31-1.w7.x86_64 (webtatic)
php-zip
Available: php56w-common-5.6.31-2.w7.x86_64 (webtatic)
php-zip
Available: php56w-common-5.6.32-1.w7.x86_64 (webtatic)
php-zip
Available: php70w-common-7.0.22-2.w7.x86_64 (webtatic)
php-zip
Available: php70w-common-7.0.23-1.w7.x86_64 (webtatic)
php-zip
Available: php70w-common-7.0.23-2.w7.x86_64 (webtatic)
php-zip
Available: php70w-common-7.0.24-1.w7.x86_64 (webtatic)
php-zip
Available: php70w-common-7.0.25-1.w7.x86_64 (webtatic)
php-zip
Available: php71w-common-7.1.8-2.w7.x86_64 (webtatic)
php-zip
Available: php71w-common-7.1.9-1.w7.x86_64 (webtatic)
php-zip
Available: php71w-common-7.1.9-2.w7.x86_64 (webtatic)
php-zip
Available: …Run Code Online (Sandbox Code Playgroud) 我的 appSearch 组件在我的布局文件中有此代码:
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/app.css" />
<title>title</title>
</head>
<body>
<div id ='app' >
<app-search ref='search'></app-search>
@include('layouts/header')
@yield('content')
</div>
<script type="text/javascript" src="js/app.js" ></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
在组件中,我想引用 body 标记并将其设置为一些将应用溢出的类:隐藏。但是 vue 不能在 div 之外使用。我首先想到的是 document.querySelector。但这不是执行此操作的“vue-ish”方式。有什么办法可以解决吗?