在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答
萌小萌 回答

你jquery沒有在index.html中引用吧

別瞎鬧 回答

重新編譯,啟用--enable-mbstring

絯孑氣 回答

把相同的功能拎出來,兩邊都調(diào)用就好了

呆萌傻 回答

子模塊可以打成jar包,把頁面等靜態(tài)資源放到META-INF/resources目錄下. 需要注意的這是servlet 3.0標準的一項內(nèi)容. 你的應用也要放到支持servlet 3.0的容器才行(如tomcat 7以上的版本).

具體做法可以用maven的assembly插件.

參考我的的assebly.xml文件:

<assembly>
    <id>bin</id>
    <formats>
        <format>jar</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <dependencySets>
        <dependencySet>
            <useProjectArtifact>false</useProjectArtifact>
            <outputDirectory>/</outputDirectory>
            <excludes>
                <exclude>**</exclude>
            </excludes>
        </dependencySet>
    </dependencySets>
    <fileSets>
        <fileSet>
            <directory>target/classes</directory>
            <outputDirectory>/</outputDirectory>
            <includes>
                <include>**/*.class</include>
            </includes>
            <excludes>
                <exclude>**/DefaultController.class</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>WebContent</directory>
            <outputDirectory>META-INF/resources</outputDirectory>
            <includes>
                <include>/WEB-INF/jsp/**</include>
            </includes>
        </fileSet>    
         
        <fileSet>
            <directory>WebContent</directory>
            <outputDirectory>META-INF/resources</outputDirectory>
            <includes>
                <include>js/**</include>
                <include>plugins/**</include>
            </includes>
        </fileSet>
    </fileSets>
</assembly>

相應的在pom.xml

...
<plugins>
  <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <descriptors>
                        <descriptor>assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
...
</plugins>

打好包的jar會多一個bin的修飾符, 這個才是你要發(fā)布的jar, 別的模塊引用時,也要把修飾符帶上

 <dependency>
        <groupId>com.example</groupId>
        <artifactId>myplugin</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <classifier>bin</classifier>
</dependency>
柒槿年 回答

先原生處理,然后傳給h5

念初 回答

好吧,又要自問自答,大半夜的,還有一大堆后端接口沒擼,扯著看vuex源碼,看的一臉懵逼也沒找到想要的答案。最后想了一個歪方法。(廢話到此為止)

解決方法:

在解決這個問題的時候,絕對不能這樣想:“插件中的vuex是相對與引用插件的項目中的vuex獨立的”,什么意思呢?就是說不能抱著把你插件中的store完全封裝起來,在引用插件的時候,只要注冊插件就好了,然后vuex,store 啥也不管,它就會在它自己的小作用域里面 獨自happy。(其實我最初的打算就是這個樣子的,可是找不到解決辦法。求大神支招啊?。?/p>

基于以上錯誤的思路,半天時間沒了。后來我的解決方案是,

使用 vuex 的 module .

是的,vuex設計之初呢,為了防止把所有的 狀態(tài)(state)都放在一起,導致 state 過于龐大而不好維護,所以使用了 module,是的模塊的狀態(tài)得以很好得分開管理。

這里呢,我是將我所有的 狀態(tài)管理封裝到了一個module當中,而在導出插件的時候,順便將這個module導出。

example

//moduleStore.js
const state={
    editorContent:'editorContent',
};
const mutations={};
const actions={};
const getters={
    getEditorContent(state){
        return state.editorContent;
    }
};

const editorStore={
    state,
    mutations,
    actions,
    getters
}

export default editorStore;
//plugin index.js

import module from './moduleStore.js'

const plugin={
    install:(Vue,options)=>{
    }
}

export const ms=module;    //這里需要以命名方式導出,不能用默認方式導出
export const pl=plugin;

好了,這樣的話,基本上就算是搞定了。那插件使用的時候怎么辦勒?

首先,

// main.js
import {pl} from 'plugin'; //引入插件
Vue.use(pl)  //全局注冊插件

這里,插件的導入注冊完畢,再然后,在全局的 Vuex store 中,

//index.js
import {ms} from 'plugin'   //導入模塊 vuex store


//再然后,將我們的 ms 注冊進全局的 modules
const modules={
    ms,
}

至此,插件完整的與項目整合

貓小柒 回答

@HankBass 兄弟說得很對

總得試試,實在不行就找會同樣的公司對吧^_^
不過人在他鄉(xiāng),辭職前先存錢存夠2~3個月生活費 / 騎驢找馬

乖乖噠 回答

不用格式化輸入,Python查詢數(shù)據(jù)庫有相應的庫,例如:https://pypi.python.org/pypi/...,安裝之后查詢的方法查看官方文檔:https://dev.mysql.com/doc/con...

墨小白 回答

同學,有一種東西叫偽靜態(tài)。

typecho的地址重寫就是要用到偽靜態(tài)。搜索關鍵字 typecho偽靜態(tài),會出來詳細的教程。

https://www.igaga.ga/Data/Typ...

忠妾 回答

同問,能夠進行人工驗證,但是不能點擊上傳,也不能拖動上傳?是部署的問題還是代碼的問題?@梁曉冬 @康益昇

玩控 回答

先把xml讀入一個變量, 如
a = etree.fromstring(your_data)
或者
a = etree.XML(your_data) # 從xml文件讀入
a = etree.HTML(your_data) # 從html文件讀入

然后 a.xpath('/div/text()')
會返回所有div中的文本內(nèi)容的列表

凹凸曼 回答

不會無窮無盡,因為任何對外提供的服務都是有一個交互的起點。
以訪問一個網(wǎng)站的主頁為例,其起點就是請求DNS,DNS服務器由ISP或大型專業(yè)服務公司提供,一般都可以認為這個是100%可靠的。
當DNS返回一個地址給用戶后,用戶請求這個地址,這個地址的可靠性由網(wǎng)站保障,網(wǎng)站可以通過負載均衡技術讓多個服務器(或多個層級的服務器)共同為這個地址的請求提供服務。
這種情況下,只要用戶到達這個地址的網(wǎng)絡路徑是通的就沒問題,如果路徑上存在問題,例如核心交換機故障、機房斷電、光纖被挖等等,這種情況下,這個地址在網(wǎng)絡層面就不可靠了。
那么如果想進一步提高可靠性,就需要配置多個地址,一個地址掛了后,讓DNS解析到另外一個地址,另外一個地址可以在不同的機房、城市、省份甚至國家。

苦妄 回答

看著好像要改rom的樣子,或者framework層的修改了

柒喵 回答

1.你也可以默認寫個這樣彈出框樣式的div放著,點擊事件之后設置vue的實例來控制這個彈出是不是要顯示

有點壞 回答

<style>

  body {
    padding: 0;
    margin: 0;
  }
.box {
  width: 102px;
  height: 102px;
  position: relative;
  box-sizing: border-box;
}
.boxItem{
  height: 100px;
  width: 25px;
  border:1px solid grey;
}
.box > .boxItem:nth-child(1) {
  background: yellow;
  position: absolute;
  left: 0;
}
.box > .boxItem:nth-child(2){
  position: absolute;
  top: -38px;
  left: 38px;
  transform: rotate(-90deg);
  z-index: 4;
  background: red;
}
.box > .boxItem:nth-child(3){
  position: absolute;
  right: 0px;
  top: 0;
  z-index: 3;
  background: pink;
}
.box > .boxItem:nth-child(4){
  position: absolute;
  left: 37px;
  transform: rotate(-90deg);
  z-index: 2;
  top: 38px;
  background: #3c3baa;
}

  
</style>


  <div class="box">
    <div class="boxItem"></div>
    <div class="boxItem"></div>
    <div class="boxItem"></div>
    <div class="boxItem"></div>
  </div>
別逞強 回答

已解決,pom.xml打包排除了web.xml,導致無法加載。

 <build>
        <finalName>personalWebsite-v1.0.0</finalName>
        <!--<plugins>-->
            <!--<plugin>-->
                <!--<groupId>org.apache.maven.plugins</groupId>-->
                <!--<artifactId>maven-war-plugin</artifactId>-->
                <!--<version>2.1.1</version>-->
                <!--<configuration>-->
                    <!--<packagingExcludes>WEB-INF/web.xml</packagingExcludes>-->
                <!--</configuration>-->
            <!--</plugin>-->

        <!--</plugins>-->
    </build>
你的瞳 回答

一般的做法是把父store通過子store的構造函數(shù),傳給子store使用。