遇到同樣的問(wèn)題,需要導(dǎo)入iview以及table的樣式才能顯示正常,node_modules/iview/dist/styles/iview.css
我用的print.js 第三方
現(xiàn)在我在研究如何導(dǎo)入table的樣式,現(xiàn)在的想法是把table的less文件轉(zhuǎn)化為css文件,然后引入,不知道是否可行,如有進(jìn)展 及時(shí)聯(lián)系,謝謝
附上代碼
this.printLoading = true
setTimeout(() => {
PrintJS({
printable: this.pageId,
documentTitle: '詳情',
type: 'html',
targetStyle: ['*'],
ignoreElements: [this.actionId],
maxWidth: 1200,
css: ['../../../node_modules/iview/dist/styles/iview.css'],
style: '.main-head {font-size: 16px;font-weight: bold;color: #464c5b}',
onLoadingEnd: () => {
this.printLoading = false
}
})
}, 300)
沒(méi)問(wèn)題。babel本質(zhì)就是 ES6 轉(zhuǎn)換為 ES5,ES5的變量聲明,怎么樣都會(huì)變量提升啊。
試試ngxtop
安裝
pip install ngxtop
使用
$ ngxtop
或按ip統(tǒng)計(jì)
$ ngxtop top remote_addr
總流量前十的請(qǐng)求
$ ngxtop --order-by 'avg(bytes_sent) * count'
參見(jiàn):
漏了theme(),犯了個(gè)2b錯(cuò)誤。。。
當(dāng)然是的。有 maven
插件可以讓你在打包的時(shí)候自動(dòng)完成這個(gè)事情,不過(guò)前提是要安裝 protoc
<plugin>
<groupId>com.github.igor-petruk.protobuf</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.3</version>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<protocCommand>/usr/local/bin/protoc</protocCommand>
</configuration>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>mixedJavaAndGroovy</artifactId>
<version>0.01-SNAPSHOT</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.targetEncoding>UTF-8</project.build.targetEncoding>
</properties>
<repositories>
<repository>
<id>Sonatype</id>
<name>Sonatype Repository</name>
<url>http://repository.sonatype.org/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>artima</id>
<name>Artima Maven Repository</name>
<url>http://repo.artima.com/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.4.14</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.spockframework/spock-core -->
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-core</artifactId>
<version>1.1-groovy-2.4</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- test -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/groovy</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/groovy</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.6</version>
<configuration>
<stubsOutputDirectory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}/stubs</stubsOutputDirectory>
<testStubsOutputDirectory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}/test-stubs</testStubsOutputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
<version>3.7.0</version>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
net.alchim31.maven
</groupId>
<artifactId>
scala-maven-plugin
</artifactId>
<versionRange>
[3.3.1,)
</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.theoryinpractise
</groupId>
<artifactId>
clojure-maven-plugin
</artifactId>
<versionRange>
[1.8.1,)
</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.gmavenplus
</groupId>
<artifactId>
gmavenplus-plugin
</artifactId>
<versionRange>
[1.6.0,)
</versionRange>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
你的Mysql表類(lèi)型是 innodb 還時(shí) myisam 后者是不支持事務(wù)的
geojson 可以轉(zhuǎn)化成平面多邊形數(shù)據(jù),然后你平均分布的點(diǎn)可以依次跟這個(gè)多邊形對(duì)比。
boostrap比較流行吧
bower可以把所需要的庫(kù)通過(guò)一個(gè)命令行一次性下載,方便
你有把整個(gè)andimnLTE全部文件放在同一個(gè)目錄下嗎,他用的是相對(duì)路徑,需要放在同一個(gè)目錄下保證路徑正確
上面兩個(gè) synchronized 塊是互斥的.
所以基于這種鎖對(duì)象可能被誤用的情況, 建議用單獨(dú)的 final 對(duì)象做鎖, 而不要用與業(yè)務(wù)相關(guān)的變量:
final Object lock = new Object();
postcss里有一個(gè)插件 postcss-pxtorem
emmm...也是挺無(wú)語(yǔ)的,當(dāng)懟著這個(gè)問(wèn)題來(lái)找原因的時(shí)候反而找不到,在解決別的問(wèn)題的時(shí)候卻湊巧解決了這個(gè)問(wèn)題。
解決方法如下:
因?yàn)?code>fixed定位的按鈕是屬于nav
標(biāo)簽的內(nèi)容,而在它下面的div
是屬于另外一個(gè)父標(biāo)簽。當(dāng)在做動(dòng)畫(huà)的過(guò)程中div
所在層級(jí)被提高了,恰巧大于了nav
的層級(jí),所以按鈕標(biāo)簽也就被div
蓋住了。解決方法可以是給nav
標(biāo)簽添加屬性z-index
,只要保證它的值大于div
動(dòng)畫(huà)時(shí)的值即可解決這個(gè)問(wèn)題。
也不知道解釋的對(duì)不對(duì),如果說(shuō)錯(cuò)了希望大家指正。
$_POST["key"]
的寫(xiě)法是錯(cuò)誤的
正確的是isset($_POST["key"]) ? htmlspecialchars($_POST["key"]) : null;
其他的,不想說(shuō)什么了
有項(xiàng)目的
https://gitee.com/HOHD/termux...
可以的話(huà)一起探討一下
下面這個(gè)才是你想要的
https://gitee.com/HOHD/irssic...
看不出來(lái)什么問(wèn)題啊,加點(diǎn)日志,看一下是不是哪個(gè)方法沒(méi)跑完。
之前通過(guò)redis處理map的更新時(shí),高并發(fā)會(huì)有鎖住的情況。后續(xù)把map中更新頻繁的值取出來(lái)直接放redis就好了。
不一定要netty來(lái)背鍋
這個(gè)問(wèn)題終于被哥攻克了
在Menu里添加@on-select="routeTo"
然后在
methods: {
routeTo(e) {
this.$router.push(e);
}
}
如果你想用slf4j的日志模塊,引入org.mongodb.morphia的時(shí)候,要排除掉其日志部分。
出現(xiàn)該現(xiàn)象的原因是,log找實(shí)現(xiàn)類(lèi)的時(shí)候,先找到了mongodb的日志實(shí)現(xiàn)類(lèi)并做了實(shí)例化。
maven配置引用排除:
<exclusions>
<exclusion>
<groupId> XXXXXX </groupId>
<artifactId> XXXXXX </artifactId>
</exclusion>
</exclusions>
北大青鳥(niǎo)APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專(zhuān)業(yè)的國(guó)家
北大青鳥(niǎo)中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過(guò)二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
曾工作于聯(lián)想擔(dān)任系統(tǒng)開(kāi)發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_(kāi)發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫(kù),具有快速界面開(kāi)發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁(yè)制作和網(wǎng)頁(yè)游戲開(kāi)發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開(kāi)發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問(wèn),美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。